C preprocessor macros are generally not included in the debug information of the ELF file. Therefore, the debugger normally cannot determine their values.
However, you can manually declare macros in TRACE32 using:
sYmbol.CREATE.MACRO MACRO_1 <contents>
sYmbol.CREATE.MACRO MACRO_2 <contents>
sYmbol.CREATE.DoneYou can display the list of manually created macros with:
sYmbol.List.MACROSome compilers can also include macro information in the ELF file. For example, GCC includes macro information when compiled with the -g3 option. This information is stored in the .debug_macinfo section.
When loading such an ELF file with Data.LOAD.Elf, use the /MACRO option to import the macro information into TRACE32:
Data.LOAD.Elf <file> /MACRO
Comments (2)
You should use &temp=Var.Value(MACRO_1) instead of &temp = MACRO_1
I also do not recommend to use white spaces in PRACTICE expressions.