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/TMS570LS1114: Flash API Question

Part Number: TMS570LS1114


Tool/software: Code Composer Studio

Hi Team,

I have a customer with the following question about the TMS570LS1114

we are using a system with an OS including memory protection. If the memory protection is active, the F021 Flash API execution is aborted by exception. The flash api library is called in a OS task that runs in user mode. The MPU allows RW access to “Bank 7 0xF020_0000 0xF03F_FFFF” and “Flash Module 0xFFF8_7000 - 0xFFF8_7FFF”.

The controller TMS570LS1114 is used.

Which address range are used by the F021 Flash Api?

Which registers are used by the F021 Flash Api?

What can we do read, to write and to erase the data flash (flash bank 7) when the code is executed in user mode?

Regards

Mihir

  • Hello Mihir,

    The F021 Flash API is a library of routines that when called with the proper parameters in the proper sequence, erases, programs, or verifies flash memory. On Hercules MCU, these routines must be run in a privileged mode (a mode other than user) to allow access to the Flash memory controller registers.