Part Number: TMS320F280049
Hi team,
I have noticed some of my customer is combining codestart.asm into their source file like this:
This is a .cpp source file where a few functions is defined and no main() is included. In MainSwitch() function, they check the data in a certain flash address to determine whether to execute the flash operation. In the end of the function, they use the LB command to jump to the starting address of app code.
My question is: Regarding these code is in a .cpp source code, why the asm command can be executed at the beginning? And if the PC jump to mainswitch() and then to app code. The asm("LB _c_int00") will not be executed at all. So how is the C environment established?
This is not the first time I noticed this operation, could you help to explain the internal principle?
Regards,
Brian
