Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN, LAUNCHXL2-RM46,
Tool/software: TI C/C++ Compiler
I'm attempting to use the --entry_hook compiler feature described in SPNU151 to monitor stack usage in my program. My program also uses the self-test code generated by HALCoGen. I've found that when I build using the --entry_hook feature, my program reboots somewhere inside the call to memoryInit(0x1U). This occurs even if my entry hook function does absolutely nothing.
I suspect the compiler is dutifully inserting calls to my entry hook function in all of the HALCoGen-generated C functions, including memoryInit() and that calling this function is somehow causing the processor to reset. I don't really need to invoke the entry hook function inside the HALCoGen code and would be happy to just disable it, but the compiler doesn't seem to offer that degree of control. The --entry_hook feature is either on or off. Is there any other way to tell the compiler to not insert the entry hook calls into the HALCoGen functions?
HALCoGen 04.07.00
TI ARM C/C++ Compiler v18.1.3.LTS