S32K148 Flash driver: Issue is writing to Flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K148 Flash driver: Issue is writing to Flash

3,296 次查看
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 项奖励
回复
3 回复数

3,063 次查看
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 项奖励
回复

3,063 次查看
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 项奖励
回复

3,063 次查看
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 项奖励
回复