what is mean of resourceSelectCode in the function FLASH_DRV_ReadResource()

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

what is mean of resourceSelectCode in the function FLASH_DRV_ReadResource()

646 Views
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 Kudos
Reply
1 Reply

543 Views
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 Kudos
Reply