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 件の賞賛
返信