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.

TMS570 - MPU for Flash Bank 1

Other Parts Discussed in Thread: TMS570LC4357

Hello,

I'm trying to use MPU on TMS570LC4357 for protection of Flash Bank 1.
Even though I enabled MPU and set Flash Bank1 as read-only region (no region after refers to memory of Flash Bank 1), I did not notice any data abort or interrupt caused by write to Flash Bank1. Writing to Flash Bank1 is performed using Fapi.

Is there something I miss?

Thanks for help,
Piotr

  • Piotr,


    When the Flash API is used to program (write) to the flash, the CPU does not directly write to the Flash address.
    The physical write to the flash is performed by the Flash State Machine in the flash wrapper.

    That the reason why the MPU cannot detect and block this write access.

    In the flash configuration, there is way to protect sector or even bank to be erase or programmed.
    If a sector or bank is accessed for program or erase, the flash API will return an error, and your application will have to take care of it.

    Please let me know if I've answered your question.

  • Thank you for reply. It answers my question.