This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832 Flash programming time via SWD

Hi

I'm using nRF52832 and trying to make programming patterns via SWD myself, and want to make programming time short.

I have a question about flash programmng time via SWD.

How long does it take to write 512kB flash area via SWD ?

Now I see "nRF52832 Production Programming (nWP-027).

In chap 6, it takes around 10seconds to write entire flash.

But it seems more.

Writing data via SWD, I think  it needs at least 6 commands.(TAR/DRW/RDBUFF × 2( Write Flash and READ READY reg).

If SWD running at 3MHz, 6 commands takes 92ns to send only commands.

To write 512kB, it needs over 12s without CPU wait,  resend command etc.

It seems effective time will be more, quite longer than 10 s.

I have misunderstanding ? 

Best Regards.

Related