This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Disabling interrupts while working with IAP!!!

Hello everybody,

Quoted from the user manual of LPC178:
" The on-chip flash memory is not accessible during erase/write operations. When the user
application code starts executing the interrupt vectors from the user flash area are active.
The user should either disable interrupts, or ensure that user interrupt vectors are active in
RAM and that the interrupt handlers reside in RAM, before making a flash erase/write IAP
call. The IAP code does not use or disable interrupts."

I do not completely understand the purpose of this paragraph. Is it enough to disable interrupts using __disable_irq() function before starting to use IAP?
And how can "I ensure that interrupt vectors are active in RAM" ?

Thank you all for helping