AnsweredAssumed Answered

LPC55S69 : disable interrupts while FLASH

Question asked by Eugene Hiihtaja on Jan 21, 2020
Latest reply on Feb 7, 2020 by Felipe García

Hi !

 

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);
}
else
{
assert(VERSION1_FLASH_API_TREE);
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 ?

 

Regards,

Eugene

Outcomes