I am trying to use a microcontroller(KL16) to program another microcontroller (KL02) via SWD.
I followed AN4835. after successfully mass erase the KL02. The program also seems to works fine with nether Flash Access Error Flag nor Flash Read Collision Error Flag.
The FTFA cmd I used was Program Longword
After the programming finished I try to read back and verify. Everything matched up but the following 3 register.
0x0000_0000 0 — — ARM core Initial stack pointer
0x0000_0004 1 — — ARM core Initial program counter
0x0000_0008 2 — — ARM core Non-maskable interrupt (NMI) .
They all read 0xFFFFFFFF.