I have a problem erasing data written to the NRF_UICR->CUSTOMER registers.
I want to store the hardware version and serial number in these registers, but the serial number may change once in the lifetime of the product. Thus I would like to be able to update it.
The function I've written works on the NRF52832 chip, but doesn't seem to work on the NRF52840.
The infocenter says that when the erase bit in the confic register is set, I could erase all customer registers.
But I cannot get this to work on the NRF52840.
I've also disabled the protection registers using;
But that doesn't seem to help.
Any help would be appreciated.
The function in question;