I am using ARM Optimizing C/C++ Compiler v5.1.6 on TMS570. I need to insert the debug labels in source code to set breakpoint for testing purpose. This debug label should provide just address. For this, I am using assembly code inside c file and expecting TSTLBL_File_Switch_Start in .map file. But it is not listed in map file. Please suggest how to generate address for the debug label or open to take new apporach. Thanks.
I defined the following macro:
#define DEBUGLABEL(n) asm(" .global TSTLBL_"n" ");asm("TSTLBL_"n":");
I used the above macro whereever i need to insert debug lable. For example,
/* Wait to complete the CRC verification process */
do
{
crcResult =
CRC_Process(CRC1);
} while (crcResult == CRC_ERR_BUSY);
DEBUGLABEL("File_Switch_Start");
/* Set Failure flag based on return value */
switch (crcResult)
{
/* CRC Failure */
case CRC_ERR_COMPARE:
....
...
}