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.

Compiler/TMS570LS1114: How to start my bootloader based on TMS570LS1114

Part Number: TMS570LS1114


Tool/software: TI C/C++ Compiler

Hello,

I want to develop the bootloader of TMS570LS1114 in order to use CAN Calibration Protocal. Now I have a confusing problem:Which modules can be used for it ,whether it is Flash or EEPROM?

How to make sure the bootloader can work?

Looking forward to your reply

Qiuchi 

  • Hello Qiuchi,

    I think the decision on whether to use Flash or Flash Emulated EEPROM is up to you and depends on your system implementation. There are limitations regarding programming Flash on the device that could impact this decision. Notable, is the requirement that you cannot program to the same bank from which you are executing. Second is the granularity of programming. i.e., to what level can you program the flash (i.e., byte, word, sector, bank?). I think it should be possible to incorporate the CAN calibration protocol into the CAN based boot loader and locate the section in either Flash or Flash emulated EEPROM (Bank7).

    In regard to how to make sure the boot loader can work is, again, up to you. A good starting point would be to program the "calibration block" into a device that already has code executing in it. If the calibration block is part of the executable binary, be sure to reserve the area by defining it as a const block of all F's since 0xF is the normal unprogrammed state of the Flash this will reserve the space for use by the tool.

    If you choose to use Bank7, you can again use the boot loader to program data into this area of the device. If you are also using bank 7 for other application data, you should take care not to overwrite the data in that bank that is related to your calibration.

    In case you need help with the boot loader implementation, there is an application note and sample code that should help you get started on your project but will need updates to accmodate the limited block of data to be programmed and to add the calibration protocol to it. The appnote can be found at this link: CAN Bus Bootloader for TMS570LS12X MCU