S32K146 Flash read

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

S32K146 Flash read

跳至解决方案
1,230 次查看
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

标记 (2)
0 项奖励
回复
1 解答
1,129 次查看
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 项奖励
回复
2 回复数
1,130 次查看
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 项奖励
回复
1,129 次查看
adria
Contributor I

Hi Daniel,

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

Best regards,

Adria

0 项奖励
回复