S32K148 write and read P_FLASH

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

S32K148 write and read P_FLASH

1,444 Views
347996379
Contributor III

I've programed P_FLASH,but reading P-FLASH failed,

I'm not sure which funtion reads P_FLASH?

• status_t FLASH_DRV_ReadOnce (const flash_ssd_config_t pSSDConfig, uint8_t recordIndex, uint8_t p -
DataArray)
Flash read once.
• status_t FLASH_DRV_ProgramOnce (const flash_ssd_config_t pSSDConfig, uint8_t recordIndex, const
uint8_t
pDataArray)
Flash program once.
• status_t FLASH_DRV_Program (const flash_ssd_config_t pSSDConfig, uint32_t dest, uint32_t size, const
uint8_t
pData)
Flash program.
• status_t FLASH_DRV_ProgramCheck (const flash_ssd_config_t pSSDConfig, uint32_t dest, uint32_t size,
const uint8_t
pExpectedData, uint32_t pFailAddr, uint8_t marginLevel)

Flash program check

or more?

0 Kudos
3 Replies

1,225 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

if you want to just simply read the content of flash, use pointers. There's no such general function.

Mentioned functions FLASH_DRV_ReadOnce and FLASH_DRV_ProgramCheck are used for something different:

FLASH_DRV_ReadOnce - it is used for reading of Program Once field in IFR section of PFlash. It can't be used for normal PFlash.

FLASH_DRV_ProgramCheck - this command tests a previously programmed program flash or data flash longword to see if it reads correctly at the specified margin level. 

Regards,

Lukas

0 Kudos

293 Views
gopichauhan
Contributor I

hello can you pllease guide how to read data from flash (NVRAM) base address using pointer in s32k144evb-q100.

0 Kudos

1,225 Views
347996379
Contributor III

thanks ,I've worked it out.

0 Kudos