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.

MSPM0G3519: Flash Write

Part Number: MSPM0G3519


Hello E2E Experts,

I'm trying to write some data in the Flash memory through UART, before writing i'm flashing the .s19 or elf file which contain the 0xFF on that location. i'm trying to write the data first time it writen data what i'm sending. on the second go/third/...n times if i send the FLASHCTL STATUS shows INPROGRESS: completed PASS: Pass(1), DONE: 1(done). 

As my understanding before erasing the flash we can't write, if i write i'll get some exception. but how i'm able to write first time then i'm not getting the error/exception in the further write operation?

Regards,

TICSC

  • Hi CSC,

    You can not directly write value to the flash address which is already programmed with 0xFF.

    When it programmed with 0xFF, then the flash is not empty (the ECC value is programmed with 0xFF flash value).

    Then, the next time your flash write will success, but remains the ECC error in the flash address, and next read from this flash address, the FLASHDED might be triggered (depends on the ecc check, as it only can detect the double bit error) and NMI interrupt is entered.

    Always write to flash with its flash value and ecc value are both 0xFF.

    B.R.

    Sal