Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN
__TI_auto_init and gcc questions for tms570ls3137:
As a basic understanding the __TI_auto_init should initialize all the global variables, constructors and stack.
While searching in the library files, I found definition for "__TI_auto_init" which is invoked from sys_startup.c.
1. Can you please briefly tell me what the below functions does
run_binit
run_cinit
run_pinit
What I understood is that it compares the Base and Limit addresses and invokes handler(load_addr, run_addr);
I could not find the definition of handler function. Can you please help me what this function does so that I can write my own implementation to initialize the data.
2. Where do I find the __TI_BINIT_Limit/__TI_CINIT_Limit/PINIT_LIMIT and the respective base addresses or do let me know which section they refer to so that I can take the values from linker file.