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.

Profiling & Code coverage in MSP430

Other Parts Discussed in Thread: MSP430F2617

I need to do profiling and code coverage in real time (not simulated) for an MSP430 (for now the MSP430F2617). I understand that it is not possible using the MSP-FETU430IF (correct me if i am wrong). Is there any way to perform what i am looking for?

I saw that there are some devices like DProbe430 - DBox16 which can do the task but i think that it substitutes the microcontroller (I dont want this) and it is not for the microcontroller 2617.

Thank you for any help.

Sebastián

  • Sebasti��n Alpuy said:
    Is there any way to perform what i am looking for?

    An easy way is to setup a port pin that is set and reset on start/end of profiling and measure it by using a logic analyzer. The impact on the code is negligible (one instruction, 4 or 5 clock cycles per port access). Sure, it requires an unused port pin, but it doesn't require additional hardware, nor does it influence the code flow by JTAG access.
    Of course it doesn't work well for more complex profiling.

    For code coverage, well, I think this is possible too by adding macros at the start and and of every funciton that collect the necessary info and provide it in an area that can be read later by the debugger. Or printed through serial interface or such. However, it's not as easy and convenient as with other systems that replace the CPU or wher eth eCPU provides the required information through boundary scan or similar.

**Attention** This is a public forum