This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS0432: CAN Bootloader Development- flag at flash memory

Part Number: TMS570LS0432

Tool/software: Code Composer Studio

I want to develop CCP (can calibration protocol) based Bootloader for TMS570LS0432.

I want to have a reference code for the development purpose.

And how can I  check the flag at 0x0007FF0. If the flag is a valid number (0x5A5A5A5A), the bootloader will jump to the application code.

Could you please share the demo code to how to write a 1 byte number as a flag in flash memory so that I can read the value at that address and jump to application code from boot code and vice versa.

  • Hello,

    I suggest to write the flags to a separate flash sector from the bootloader, or write the flags to FEE (EEPROM).

    Please download the TI CAN bootloader example code. It contains the flags read/write.

    In the example code, it read the flags at the beginning. If the flags are valid, the code will jump to the application and execute the application. The flags are not valid, the code will download data from CAN/UART/SPI/Ethernet and program the received the code to flash. After that, it will write the flags to flash.