Part Number: TMS570LS1227
We are developing a product with bootloader + application.
We have referenced the (SPNA186) SafetyMCUBootloader code, where the sys_core.asm file contains an assembly function by the name _copyAPI2RAM_.
We've been using this successfully for years, but have recently made some minor modifications to the flash that is written to RAM and have been experiencing a persistent Undefined Abort.
After some debugging, we think we've identified the issue - the _copyAPI2RAM_ function defines 3 constants at the beginning of the function, and during execution those constants are treated as instructions before reaching the true instructions (i.e. copy loop, etc). Our modifications changed the size of the bytes to be written to flash, which subsequently changed the apparent assembly instructions that size represented.
From what we've found, the solution is to move the definition of those 3 constants, flash_load, flash_run, and flash_size, to the end of the function.