All Flash programming code is hidden in ROM and it is not clear some preconditions for have this call in case of interrupts.
/*! See fsl_iap.h for documentation of this function. */
status_t FLASH_Program(flash_config_t *config, uint32_t start, uint8_t *src, uint32_t lengthInBytes)
if (versionMajor == 2U)
runCmdFuncOption.commandAddr = 0x1300419dU; /*!< get the flash program api location adress in rom*/
return runCmdFuncOption.programCommend(config, start, src, lengthInBytes);
return VERSION1_FLASH_API_TREE->flash_program(config, start, src, lengthInBytes);
Flash memory is not banked and code execution is only possible from SRAM whiel FLASH_Erase/Program operation.
Is this so ?
But I have system with multiple interrupt sources and ISR routines located in Flash memory .
Should I disable all interrupts by myself or ROM handle this some how in other way ?
Also I have heavy security requirements and should partitioning whole memory in known way.
Where located that small buffer what FLASH_Program is used for wait end of program operation ?
In stack or where ?