Hello all,
Here's my customer question: S32K148 Flash driver: Issue is writing to Flash
Initially we face issue with writing to Flash. We couldn’t simulate the issue at the later stage.
However while testing we could simulate the issue again.
Description of the issue is detailed in the document enclosed and the code is also enclosed for your reference.
Please guide if we are missing any step is writing to flash.
Thanks a bunch!
Masoud
Thanks Daniel!
The Flash operation is in the flash driver provided in the SDK “S32SDK_S32K1xx_BETA_2_9_0” in the file “flash_driver.c” and the function is “FLASH_DRV_CommandSequence”.
Tried another experiment.
If the same code is flashed, flash erase and program works successfully (verified through LED indication if erase and program is successful).
But the same does not work if it is debugged.
Any specific reason for such behavior?
Thanks!
Hello Masoud,
If possible, could you please share a test project?
You can send it via a ticket as well. https://community.nxp.com/docs/DOC-329745
Hello Masoud,
Where is the function that launches the flash operations (FTFC->FSTAT |= 0x80) located?
It looks like the code is executed from the same flash block you are programming.
Please find the function and check with the map file.
Thanks,
Daniel