Setting up your XM132¶
For detailed instructions, visit our developer page.
Finding the serial port¶
On Windows, use device manager to find the port which will be listed as
USB Serial Port. It’s most likely
x is 3 or higher. On Linux, it’s likely
x is 0 or some other integer.
PySerial has a simple tool for listing all ports available:
python -m serial.tools.list_ports
Note that the XM132 has two serial ports. Usually, the first port is the one to use.
Download the module software from our developer page. In the archive
bin, you’ll find
acc_module_server_xm132.bin which is the file to flash.
We recommend flashing using the Python library stm32loader. Install it with:
python -m pip install --user stm32loader
Enter the bootloader by doing the following:
- Hold down the DFU button
- Push the RESET button
- Release the RESET button
- Let go of the DFU button
Now you should be able to flash:
stm32loader -p /dev/ttyUSB0 -e -w -v -g 0x08000000 acc_module_server_xm132.bin
/dev/ttyUSB0 with the serial port of your XM132.