FLASH_DRV_EraseSector(&flashSSDConfig,0x10000000,4096); INT_SYS_EnableIRQGlobal();INT_SYS_DisableIRQGlobal(); FLASH_DRV_Program(&flashSSDConfig, 0x10000000,8,bufferii);INT_SYS_EnableIRQGlobal();uint8_t* readbuff; readbuff = 0x10000000;...
status_t hal_init_flash (void){return FLASH_DRV_Init (&Flash1_InitConfig0, &ssdConfig);} status_t hal_erase_flash_sector (uint32_t address, uint32_t length){return FLASH_DRV_EraseSector (&ssdConfig, address, length);} status_t hal_write_to_flash (uint32_t address, const uint8_...
pCallBack = (flash_callback_t)CCIF_Callback; flashSSDConfig.CallBack = pCallBack; /* Erase the last PFlash sector */ size = FEATURE_FLS_PF_BLOCK_SECTOR_SIZE; ret = FLASH_DRV_EraseSector(&flashSSDConfig, (uint32_t)&Flash_data[0], size); DEV_ASSERT(STATUS_SUCCESS == ret); /*...
Function calls to erase and program flash memory(address = 0x6000, size = 2000) is all success. After writing hello.bin to pflash, I see only zeroes at 0x6480(below screenshot). I have doubt on whether bin file was properly generated from elf file. After pressing F8, I see program ...
FLASH_DRV_EraseSector(&flashSSDConfig,0x10000000,4096); INT_SYS_EnableIRQGlobal();INT_SYS_DisableIRQGlobal(); FLASH_DRV_Program(&flashSSDConfig, 0x10000000,8,bufferii);INT_SYS_EnableIRQGlobal();uint8_t* readbuff; readbuff = 0x10000000;...
status_t hal_init_flash (void){return FLASH_DRV_Init (&Flash1_InitConfig0, &ssdConfig);} status_t hal_erase_flash_sector (uint32_t address, uint32_t length){return FLASH_DRV_EraseSector (&ssdConfig, address, length);} status_t hal_write_to_flash (uint32_t address, const uint8_...
Ian using S32K144 I made partition of flash memory 4kB as EEE Memory and 64kb of flex-NVM. I used this for sector erase but it's showing status error. address = flashSSDConfig.DFlashBase; size = FEATURE_FLS_DF_BLOCK_SECTOR_SIZE; ret = FLASH_DRV_EraseSector(&flashSSDConfig, address,...
I modify the demo like below,I add the "FLASH_DRV_EraseAllBlock" command . I change the target to Debug_RAM and I can see the function is located to the RAM. I debug the demo step by step .But when it run to the line FTFx_FSTAT |= FTFx_FSTAT_CCIF_MASK;in the function "FLA...
At this point, the code erases a block of D-Flash Invoke the FLASH_DRV_VerifySection, that verifies the "erase operation at margin level value of 1, user read". What is it the margin level? (same as 4) It writes some data to the erased D-Flash sector Invoke the FLASH_DRV_Program...
I modify the demo like below,I add the "FLASH_DRV_EraseAllBlock" command . I change the target to Debug_RAM and I can see the function is located to the RAM. I debug the demo step by step .But when it run to the line FTFx_FSTAT |= FTFx_FSTAT_CCIF_MASK;in the function "FLA...