S32K148 Flash driver: Issue is writing to Flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K148 Flash driver: Issue is writing to Flash

3,298件の閲覧回数
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,065件の閲覧回数
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,065件の閲覧回数
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,065件の閲覧回数
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 件の賞賛
返信