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: Application of Flash API



Tool/software: Code Composer Studio

hello

I now use the F021 Flash API provided by the official website to establish a project to read and write Flash. The test environment is a Demo board of the TMS570S series. Currently, bank7 can be erased, written, and read.
But now I operate on Bank1 and Bank0 and write data errors. The following registers display 0x00004010. Check the manual. These two flags are illegal address and command status error flags. Bank0 and Bank1 are library functions that cannot use Flash API. Set up?

 thanks

  • Hello Xiaohong,

    The F021 Flash API library cannot be executed from the same bank as the active bank selected for the API commands to operate on. On single bank devices, the F021 Flash API must be executed from RAM.

    You can execute the Flash API in Bank 0 to erase/program bank. You can't execute the Flash API in bank 0 to erase/program sectors in bank 1.

    Please refer to the bl_flash.c in CAN bootloader example: