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

Programming nRF52832 always sets readback

I’ve been developing the FW for an nRF52832-based module that controls a simple lighting product.

The capabilities include support for secure DFU and a modified version of the Nordic BLE UART example for communicating with and configuring the light bar.

I’ve been using SDK 16 and the makefile environment along with nrf tools. To debug, I’ve been using a Segger JLink Plus and RTT. I’ve been developing using this setup with previous SDKs for about 3 years now, so kind of know my way around.

All that has been going very well. Making the bootloader was not too bad and works reliably. The main application compile, flash, debug cycle using nrfjprog —-program xxx.hex —-sectorerase following by connecting with JLinkExe always worked.

However, earlier today, I started to see errors involving readback protection. And now it’s to the point where everytime I have to wipe the chip, put back the bootloader, and then program it. If I then try to use JLinkExe, as soon as I connect it says “CTRL-AP indicates that the device is secured.” and then its automatically erased.

I am pretty sure that I am not mucking with APPROTECT or anything in UCIR, so am mystified.

What I am afraid of is that after many flashings of the chip I have a FLASH problem.

Any thoughts from you experts?

Thanks,

steven

Related