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?
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
hello can you pllease guide how to read data from flash (NVRAM) base address using pointer in s32k144evb-q100.
thanks ,I've worked it out.