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/TMS570LS0332: Bootloader project and APP project into one project, so I can share FEE code

Part Number: TMS570LS0332

Tool/software: Code Composer Studio

Now,The way to update the program is  create a boot project, and an APP project, jump from the boot project to the APP project,use    ((void (*)(void))0xE000)();  is run very well.

But the boot project needs to use FEE, APP project also need to use FEE, so the amount of code is very large,

What can be used to merge the boot project and the APP project into one project?

  • Hello Xu,

    Both bootloader and the application can use FEE, and each can have different size.

    The bootloader is used to update the application code. Why do you want to merge the bootlaoder and the application code?

    Regards,

    QJ

  • Thank you for your answer,QJ.
    I am developing UDS function, because the bootloader and appliacation need to use FEE to read and write data, but FEE take too much flash, resulting in flash is not enough, so I would like to be able to boot project and APP projects into a project, so that I can Share the FEE code to reduce the use of Flash.Is there such a way?
  • Hello Xu,

    LS0332 device has internal SRAM(32K), Flash(256K), and Data Flash (FEE, 16KB). The flash is to store and execute your code, and data flash (FEE) is an emulated EEPROM used to store data. Code can not be stored in data flash (FEE).  

    Data flash is Bank 7. It has 4 sectors, each sector is 4KB. You can create 2 EEPROMs, and each EEPROM has 2 sectors. One EEPROM is for bootloader, and other EEPROM is for Application.

    Flash (256KB) is for code of bootloader and application. Normally size of bootloader is very small, and 2~3 sectors (8KB/sector) is enough. The remaining flash (>230K) can be used for your application. How big is your application? LS0432 has a bigger flash (384KB). 

    Regards,

    QJ