This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430 realtime debugging?

Other Parts Discussed in Thread: MSP430F5172, MSP430F5438

I have a power application with a MSP430F5172 and would like to log some information, like the step response of an 1 kHz control loop, but I am new to MSP430 and not sure what debugging options exist. On another project, I am working with an STM32 Cortex M3 device, which has extensive realtime logging support, with different possibilities for zero or low overhead data transfer to the host PC. What options are there to transfer debug information from a running MSP430 to the host PC? Are there any "realtime view" possibilities or background data transfers?

  • The possibilities are only limited by your imagination. You can attach an LC-display to the MSP, use one of the various comm interfaces (I2C, SPI, UART), let LEDs blink morse codes, everything. The only thing that's not possible in a realtime applicaiton is to use the debugger, as it will use JTAG to stop the processor codre and inspect the memory. Which will break any realtime behavior.

    When I started with the MSP430F5438, all I had was an LED. Once I got the timers running, I used the LED to signal debugging codes using the PWM circuit. (on-time = value). Worked perfectly. Not very informative, but good enough to do all the necessary debugging outputs until I got the UARTs running.

**Attention** This is a public forum