AnsweredAssumed Answered

writing flash of KEAZN64 M0+ device via SWD

Question asked by Daniel Rickers on Mar 19, 2019
Latest reply on May 7, 2019 by Daniel Rickers
Hello,

I want to flash a KEAZN64 M0+ device via SWD. This should be realized by a host processor instead of a programmer so I have to implement the host code.

The protocol basics are working and I'm already able to write and verify data in the RAM via AHB-AP but not yet into flash.

To do that I have to erase the flash first, but what is the correct sequence?

 

I use an appnote from another vendor AN0062 link as base and try to adapt it to the NXP KEA M0+ target.

I chose the simple variant (direct write to msc registers) without a flash driver that is loaded into the target RAM to keep it as simple as possible.

I traces the communication between the KEAZN64 and a programmer (PE Micro universal FX) but it’s hard to find the correct sequence part for erase and flash.

Maybe you can help me?

 

Thanks a lot

Daniel

Outcomes