I am trying to access the flash of target "Kinetis KEAZN64" in terms of erasing sectors, flashing words, .. etc.
I found out that launching command (FTMRH_FSTAT = 0x80;) after configuring command by "Erase command", CPU stalls for 20ms.
I.e. In code, at line [ FTMRH_FSTAT = 0x80; ], this operation takes 20ms to move to the next line of code.
I do not know why CPU is halted in that way while the flash controller should run in parallel to the CPU.
Any solutions please ?
Thank you in advance.