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.

TMS320F28035: Can flash operation driver download by external communication?

Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE

Can download flash memory operation driver from external communication(ex. CAN) to RAM, when bootloader needed in update process?
In other words when didn't download flash driver, the bootloader also don't have the function to erase or program flash memory.
And when bootloader finish using memory operation, it can release the flash driver in RAM to avoid flash driver erase memory in accident.
I found an example called f2803x_can_flash_kernal in C2000ware , but it looks like receive whole bootloader and execute it in RAM, so maybe it's different to needed.

Dose anyone have idea?
Many Thanks,
Marcus

  • Marcus,

    On the F2803x devices the Flash API is stored in a section of the on chip ROM, so that you don't need to take up space in the RAM for programming.  For the bootloader example this is meant to be sent across via the native CAN bootloader and placed in RAM as you said.  Once this is copied over control can be given to it to initiate receive of the real flash image over can and it will program it accordingly.

    Let me know if you have more questions on the bootloader/boot process.

    Best,

    Matthew

  • Hi Matthew,

    Thanks for your reply.

    On this project, the customer propose this demand that the flash driver can't saving anywhere on chip and needed to release after using,
    so maybe it can't use ROM to saving.

    Is it other else way to reach this demand?

    Many Thanks,
    Marcus

  • Marcus,

    They can load the API to the RAM as part of a kernel, either loading it from the ROM so they don't have to scan it across or as part of the comms then delete it when they are finished.

    It will just take up room in the device memory that is not needed if using the ROM. 

    Best,

    Matthew

  • Hi Matthew,

    Thanks for your reply.

    If used communication to transmit and delete it after using, is it any way to reach?
    On customer demand, Flash API can only saving on RAM, and can't saving on flash or ROM, so the method that saving on flash and execute on RAM can't used.

    Many Thanks,
    Marcus

  • Marcus,

    If the customer programs a password in the DCSM module(last 8 words of Flash Sector A), and leaves the device secure, then the API in the ROM will not be able to erase the flash.  This is because the ROM is unsecured memory.  In this condition either the CSM would need to be unlocked, or the API would need to be ran from secure SRAM.  

    So, even if there was an accidental call to the API ROM, it would have no effect if the CSM is active.

    Best,

    Matthew

  • Hi Matthew,

    Thanks for your reply.

    So that the way I originally before isn't can be achieve on f28035, is it ?
    The most close method by now is like using DCSM, does any else way to achieve ?

    Many Thanks,
    Marcus

  • Marcus,

    You are correct, the API is always going to be in the ROM on this device so the only complete way to guard against an accidental call to this area would be to enabled the CSM.

    Best,

    Matthew