Hello Alexey Usoltsev:
I guess this is caused by SysTick interrupt firing. The interrupt handler is in the same flash block and it leads to a "Read-while-write error".
- Try setting the OSA timer to None as discussed in the next thread:
Guidance on fsl_flash Processor Expert component usage
- Or enable the ESFC bit as explained in the next discussion:
Writing flash memory with KL27Z256
Let me know it the problem is not solved.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------