How do write the data to the flash memory in s32k148

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do write the data to the flash memory in s32k148

Jump to solution
1,909 Views
joshfx
Contributor II

what is the problem?Screenshot 2023-02-21 092953.png

Labels (1)
0 Kudos
Reply
1 Solution
1,886 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @joshfx,

Instead of FLASH_DRV_EEEWrite(), use FLASH_DRV_Program().

The FLASH_DRV_EEEWrite() is for the emulated EEPROM (FlexRAM in EEPROM mode) only.

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
4 Replies
1,887 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @joshfx,

Instead of FLASH_DRV_EEEWrite(), use FLASH_DRV_Program().

The FLASH_DRV_EEEWrite() is for the emulated EEPROM (FlexRAM in EEPROM mode) only.

 

Regards,

Daniel

0 Kudos
Reply
1,876 Views
joshfx
Contributor II
How can i read data
0 Kudos
Reply
1,867 Views
danielmartynek
NXP TechSupport
NXP TechSupport

There is no API for reading the flash.

You can simply use a pointer to the flash location.

 

Regards,

Daniel

0 Kudos
Reply
1,903 Views
joshfx
Contributor II

I want to write a random data to spesific address in the flash memory but i can't

0 Kudos
Reply