S32K146 Flash read

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

S32K146 Flash read

Jump to solution
928 Views
adria
Contributor I

Hi,

I am using the SDK RTM 3.0.0.

After writing into Flash (no matter whether it is P or D without the Eeprom functionality enabled) and reseting the MCU, I would like to read the written data, which API should I use to do so? I have taken a look at FLASH_DRV_ReadResource() but I am not sure if it is the correct one.

Best regards,

Adria

Tags (2)
0 Kudos
1 Solution
827 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Adria,

The SDK Flash Driver doesn't have any function for reading.

But knowing the address of the data, you can simply read it with a pointer.

The FLASH_DRV_ReadResource() function is executing READ_RESOURCE flash command as you can see in the flash_driver.c file. The S32K1xx series doesn't have such a flash command though.

BR, Daniel

View solution in original post

0 Kudos
2 Replies
828 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Adria,

The SDK Flash Driver doesn't have any function for reading.

But knowing the address of the data, you can simply read it with a pointer.

The FLASH_DRV_ReadResource() function is executing READ_RESOURCE flash command as you can see in the flash_driver.c file. The S32K1xx series doesn't have such a flash command though.

BR, Daniel

0 Kudos
827 Views
adria
Contributor I

Hi Daniel,

Thanks a lot. I could read D-Flash by simply accessing it through a pointer.

Best regards,

Adria

0 Kudos