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.

LAUNCHXL2-570LC43: Updating flash tms570lc43

Part Number: LAUNCHXL2-570LC43

Good day. I need to update the whole program for my tms570 in runtime and restart it with new one. If i understand correct, my 'program' is in binary file that CCS make. It's about 800 kb's. 
So first i should probably somehow transer my bin file to EMIF sdram or some other external memory. That's ok. 


What should i do next? I didnt find any good examples on how to update whole flash memory. What i saw is only updating some parts of data in the F021 examples (they 're stored in the f021 dir).

I would be very thankfull if you have some example project to upload here, thanks. 

  • Hello Roman,

    The code can be executed in Flash, internal SRAM, or external SDRAM. TMs570LC43x has 4MB flash.

    To update your application in the flash, a bootloader (CAN, UART, Ethernet) can be used. The bootloader is a small piece of data at the beginning of the flash (address is 0x00000000). The application is located in different sectors of the flash. If you want to update the application, the bootloader gets data from the host through UART/CAN/Ethernet, and program the data to the flash.

    You don't have to erase the bootloader when updating the application.

    We provide several bootloader examples:
    www.ti.com/.../spna186.pdf
  • So to update the application i should get  data only from host?

    But what if i have this data somewhere in the external memory already and want to update application? How can i update the whole bootloader in runtime using only software? 
    If you have code example i would be very thankful.

    If i understand correctly, presented example shows updating bootloader throuhg PC. 


  • Hi Roman,

    The application can be in the external memory, for example using USB bootloader to load file from a USB flash.

    Sorry I don't have example code for updating the bootloader.