Dear all,
I´m trying to test Flash IFR reading/writing on a K82 Kinetis MCU and I´m stuck on reading (not yet tried to write, which I guess is more complex).
I´m using MCUXpresso and fsl_ftfx_flash driver to just:
- Init flash driver (FLASH_Init(&config) --> OK)
- get properties (FLASH_GetSecurityState(&config, &securityStatus)-->OK-->UNSECURE)
- read IFR bytes (FLASH_ReadOnce and FLASH_ReadResource --> ACCESS ERROR)
I receive this access error whatever index, start values or read size I try. I also tried in DEBUG mode (PEMicro probe) and "normal" run mode (erase all flash and program firmware with KinetisFlashTool).
Could someone give a clue on this? I´m only trying to read the user available IFR bytes from firmware, which I think should be possible. Or is this funtionality restricted to ROM bootloader?
Regards,