Other Parts Discussed in Thread: HALCOGEN, TMDX570LC43HDK, TMS570LS3137, TMS570LC4357
Hi,
I'm having issues running my application from bootloader with the HalcoGen startup code.
The bootloader and application are separate projects each with there own Halcogen configuration and each run fine standalone.
When the application code is programming with the bootloader before running it the bootloader verifies the flash to prove the Linker CRC of the application is correct so I know the application is not corrupt.
The initial jump to the start of the application _c_int00() from the bootloader works and stepping through the disassembler I found a system reset occurs in the Halcogen code at __TI_auto_init().
I created a basic rtiBlinky project which I have attached to demonstrate the issue of the _c_int00() function being called a second time which replicates jumping to an application from booloader.
Running the project the first time simulates being in the bootloader and the LED will be blinking, by pressing the GIOA7 pushbutton on the TMDX570LC43HDK the code will then jump to the _c_int00() function and run the Halcogen initialisation again to simulate running the application startup. The LED then stops blinking and the code gets stuck in a never ending loop of resets every time __TI_auto_init() is called.
I have tried various initialisations in the Reset handler switch statement to see if this resolves the issue but with limited success.
Please help explain why calling the HalcoGen _c_int00() function multiple times causes the system resets?
Kind regards,