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/TMS570LS1224: About flash write protection that triggers MPU?

Part Number: TMS570LS1224

Tool/software: Code Composer Studio

At present, I have set the 1kb of flash address 0X000FFC00 to read-only permission, then I try to write data to this address (via F021_API), but actually does not enter _dabort, but the direct address operation assignment (*(volatile uint8 * )(0X000FFC00)) = 3; but _dabort will be triggered, why?

  • Hello BJ,

    Your observation is correct. The MPU is located in CPU. Your MPU settings can protect the flash from CPU write, but doesn't block flash wrapper to erase and program the flash.
  • Hello BJ,

    It is possible to prevent a write operation on a sector by the software configuration of the Flash wrapper. The sector protection registers, Bank Sector Enable Register (BSE), contain a bit for each sector in the Flash bank, which enables or disables a sector for write operation. The BSE register can only be written in privilege mode while the software PROTLIDIS protection bit (FBPROT register) is set high. This mechanism can reduce probability of unintended programming of Flash memory.