Hello !
Does flash_iap1 example should work on EVK A2 revision ?
I have read community and see this example might corrupt FPR and I have changed
erase/write address :
//destAdrss = pflashBlockBase + (pflashTotalSize - (PAGE_INDEX_FROM_END * PflashPageSize));
destAdrss = 0x2C000;
//destAdrss = 0x98000; // OR
PRINTF("\r\nCalling FLASH_Erase( 0x%x ) API...\r\n", destAdrss);
And I have activated hardfault and it hapens immideatelly:
Initializing flash driver...
Flash init successfull!!. Halting...
PFlash Example Start
kFLASH_PropertyPflashBlockBaseAddr = 0x0
kFLASH_PropertyPflashSectorSize = 32768
kFLASH_PropertyPflashTotalSize = 655360
kFLASH_PropertyPflashPageSize = 0x200
Calling FLASH_Erase( 0x2c000 ) API... // Added address print
Entering HardFault interrupt!
Does this example should work with A2 and can flash API even to be used on nonsecure world ?
Regards,
Eugene