S32K148 Flash driver: Issue is writing to Flash

cancel
Showing results for 
Search instead for 
Did you mean: 

S32K148 Flash driver: Issue is writing to Flash

533 Views
masoud_zahedi
Contributor I

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

0 Kudos
3 Replies

300 Views
masoud_zahedi
Contributor I

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!

0 Kudos

300 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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 

0 Kudos

300 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos