Hello,
When I do Program Flash Sector Erase, bit1 (Lockup) in the RCM bloc is set.
Here is my example:
=========
FTFA_FCCOB0 = 0x09;
FTFA_FCCOB1 = 0x01;
FTFA_FCCOB2 = 0xFF;
FTFA_FCCOB3 = 0xF0;
/* All required FCCOBx registers are written, so launch the command */
FTFA_FSTAT = FTFA_FSTAT_CCIF_MASK;
/* Wait for the command to complete */
while(!(FTFA_FSTAT & FTFA_FSTAT_CCIF_MASK));
=========
The Lockup Reset always happens when system auto run or I set a breakpoint at the line, "while(!(FTFA_FSTAT & FTFA_FSTAT_CCIF_MASK));". However, it seems to happen less if I set a breakpoint at the line, "FTFA_FSTAT = FTFA_FSTAT_CCIF_MASK;" and then do single step.
Could anyone give me a big favor to teach me how to solve the issue???
Thanks.
Regards,
Chris.