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.

break on assertion



I've found only:
http://processors.wiki.ti.com/index.php/Software_Breakpoints_in_the_IDE

It's a little bit confusing. Is this only for DSP's?

I have CCS 5.5.

The Test

#if defined( _54_ ) 
....

doesn't work. Should this get the CCS Version?

Do you have a runnable example?

regards,
Steffen
  • Steffen,

    The _54_ in the wiki topic is for a TMS320C54x DSP.  Each of the _54_ _55_ _64P_ maps to a processor architecture.  The embedded breakpoint opcodes are different for each architecture.

    #if defined( _54_ ) 
    #define UTL_STOPWORD asm( " ESTOP" )
    #elif defined( _55_ )
    #define UTL_STOPWORD asm(" ;\n .if (.MNEMONIC)\n ESTOP_1\n .else\n ESTOP_1()\n .endif\n NOP")
    #elif defined(_64P_) /* Joule */
    #define UTL_STOPWORD asm( " SWBP 0")
    #elif defined( _6x_ ) 
    #define UTL_STOPWORD asm( " NOP\n .word 0x10000000" )
    #else
    #define UTL_ASSERTCCS 0 /* unknown platform => no CCS breakpoint */
    #endif


    This topic was written before MSP430 was supported by CCS.  The concept is not limited to DSPs but it does require there to be an equivalent way to insert an embedded breakpoint.  I will have to do some checking to see if there is something similar for MSP that could be used.

    Regards,

    John

  • I asked around and their isn't a true equivalent to this on MSP430.  You would need to instead insert an infinite loop.

    Regards,

    John

  • It's a pity.

    Nevertheless thanks

    Steffen