what is mean of resourceSelectCode in the function FLASH_DRV_ReadResource()

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

what is mean of resourceSelectCode in the function FLASH_DRV_ReadResource()

967 次查看
xzw
Contributor I

FLASH_DRV_ReadResource(const flash_ssd_config_t * pSSDConfig,
uint32_t dest,
uint8_t * pDataArray,
uint8_t resourceSelectCode)

 the function is in s32ds'demo of flash.  

I want to  read  flash data, which function I can  use;

0 项奖励
回复
1 回复

864 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

I cannot find the FLASH_DRV_ReadResource() function somehow.

Nevertheless, to read Flash you can simply use a pointer to the address you can read

data = *(unsigned int*)address;

or use DMA or use memcpy function (string.h)

memcpy(&destination, &source, number_of_bytes)

 

Regards,

Daniel

0 项奖励
回复