Other Parts Discussed in Thread: LAUNCHXL2-TMS57012
I have used Application Report SPNA241 (Aug 2019) - CAN Bus Bootloader for Hercules Microcontrollers - successfully to flash an application binary to my LaunchXL2-TMS57012, but I have not been able to make my application successfully write to location 0x00010000 to trigger a new update. I used the bootloader's linker cmd file as a reference to load the flashAPI library into RAM, but attempting to write to 0x00010000 results in the nERROR LED flashing and the board resetting continuously. I'm sure I'm missing something minor, but up until now I have not had to mess around with linker files or pulling in assembler files.
Is there an *application* code example demonstrating writing to the magic word location? I may have missed it in the TI git repo for the Hercules bootloaders, but I don't think so.
By the way, I wound up writing the PC side application in Python since I don't have a National Instruments adapter and the Python CAN library simplified things for me. Everything works great except triggering a new update within my application. The application itself runs fine after the first load via the bootloader.
Thanks!
- Tom