SLAU927 March 2024 MSPM0G3507
The user can optionally use the MSPM0 Sensorless FOC GUI as a host to send commands to the MSPM0 MCU at the target to control the motor using either SWD or UART interface.
When SWD is used, the onboard XDS110 debugger on the MSPM0 LaunchPad kit sends the values from the modified GUI variables. These values are linked to variables and expressions in the motor control software and directly updates those values during run time. When UART is used, the GUI includes a USB-to-UART codec that can send UART commands as a host to the MSPM0 LaunchPad kit. The application software includes a configurable UART register map and data format that translates the UART data into simplified motor control commands.
Connection | Interface | Hardware Connections |
---|---|---|
GUI to target MSPM0 MCU | SWD (serial wire debug) | SWDIO, SWCLK |
GUI to target MSPM0 MCU | UART | UART3_TX, UART3_RX |
To set up the GUI: