I need to be able to reserve some flash to permanently store manufacturing values that will never change. I did this on an nRF51 by reserving a 4KB block and setting the necessary PROTENSET bit in the bootloader to avoid a chance of unintended modification of this flash. I haven't come across a different method to do this on the NRF52, so still operating under the assumption that this is the safest way to store manufacturing values. Assuming this, what is the recommended flash space to reserve to have it play nicely with the DFU project?
I was thinking I could grab a 4KB block below MBR storage. To do this and have everything with the DFU project work ok, do I just make sure UICR.NRFFW[1] is set 4KB lower, and NRF_UICR_PARAMS_PAGE_ADDR is still set to the MBR storage block?
A second question is: My bootloader may grow substantially over the lifetime of the product and therefore it would be better to store APP data above the bootloader since I have a better idea of the maximum size of app data over the lifetime of the product. Would something like this violate any assumptions in the DFU libraries or other flash storage libraries?
Thanks.