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.

TMS320F28335: Question about flashAPI

Part Number: TMS320F28335

Dear team:

My customer wants to know whether the flash API function can be used to erase the sector where the running program is located?

For example, flashAPI function is written into flashA, then can we use flashAPI to erase flashA?

Cause flashAPI function will "copy" to run in RAM from FLASH when running, I do not know whether the above approach is feasible?

Best regards,

Green

  • Green,

    The Flash API must be executed from RAM on this device.  So in this case we can't allow the API to be running from any flash sector when there are operations involving the flash.  It doesn't matter if the API is in a different sector or not, code cannot be executed from the flash while it is being programmed or erased.

    Best,
    Matthew

  • Hi Matthew:

    This is because the flashAPI function must be copied to the RAM on the device for execution, the customer wants to know whether the flash sector containing the flashAPI code can be erased when the flash API program is executed?

    In other words, when the chip is running in standalone mode, can we use the flash API function to erase all flash sectors?

  • Green,

    Yes, if the Flash API is running from RAM, then customer is free to erase all sectors.  I think they would write the API back to flash for any future erase that is needed as part of the programming action?

    Best,

    Matthew