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.

TMS570LS1114: Some problems about Bootloader?

Part Number: TMS570LS1114
Other Parts Discussed in Thread: HALCOGEN

Dear Expert:

         I am working on the development of bootloader, but several problems appears when I root the code from forums.

         I downloaded the code safetyMCU_bootloader and TMS570LS_canbootloader_Test.Now I have copied the code from flash to RAM successful. I divided three fileds, CAL_ROM is used to restore calibration information.FLASH0  default and Bootloader is used to restore the copy code.

My problems as the follow:

  1. CCS V5 will build a new project whether I can continue to use the HalCoGen to generate the code and how to solve the problem of two sys_link cmd about their complexed configuration?
  2. safetyMCU_bootloader

My code is base on this example due to its code from” CAN BUS Bootloader for TMS570LS12X MCU.” g_pulDataBuffer[BUFFER_SIZE] is databuffer? That is to say, My calibration data should adding to it?

  1. TMS570LS_canbootloader_Test

In this example, I discover some operation that is used to open file, By this way,I can add lots of data into CAL_ROM, but its code structure is not same as the pdf” CAN BUS Bootloader for TMS570LS12X MCU”?

  1. In fact, I have to use the function of bootloader,but I still have the final question if a quick way to load calibration data to CAL_ROM except for developing the bootloader?

Best and Regards

Qiuchi

  • Hello Qiuchi,

    I am forwarding your question to one of our bootloader experts. They should be able to provide additional help on this topic.
  • Hello Qiuchi,

    Yes, you can use the low level driver generated through the HALCoGen for your CAN bootloader. You need to add memory region and sections for flash API related code:

        FLASH_API  (RX)  : origin=0x00000020 length=0x000014E0   //create a region for flash operation related objects

      flashAPI :

      {

        Fapi_UserDefinedFunctions.obj (.text)

        bl_flash.obj (.text)

        --library= ..\..\..\lib\F021_API_CortexR4_BE.lib (.text)

      } load = FLASH_API, run = SRAM, LOAD_START(api_load), LOAD_END(api_end), RUN_START(api_run), SIZE(api_size)

    2. Normally the bootloader is used to update your application code located in flash. If you just want to store the calibration data to the FEE, you can use different way to program the data to FEE. 

    3. The g_pulDataBuffer[BUFFER_SIZE] is the data buffer used for the data received from CAN bus.