Re: nRF52832 General purpose retention register (GPREGRET) and Zephyr FOTA


Rodrigo Peixoto <rodrigopex@...>
 

Thank you very much. 

I was taking a look at the NVS system. 
Let's see if it could solve the problem to me. 

Best regards,

Rodrigo Peixoto
Co-founder and Technical guru

+55 (82) 98144-8585
http://ayna.tech | Skype: rodrigopex



2018-05-20 21:26 GMT-03:00 Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...>:

Hi Rodrigo,

I am not an expert on persistent storage, but if your system undergoes frequent cold resets then the system will need to write to flash. You may refer to flash API, circular buffer or filesystem implementations in Zephyr.
More details to help you could be provided by Andrzej (cc-ed).

Regards,
Vinayak

On 21 May 2018, at 05:28, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@nordicsemi.no> wrote:

Hi Rodrigo,

GPREGRET is general purpose retention register in the SoC, which only retains value across warm resets.


The value is lost for reset behaviours like watchdog reset, pin reset, etc. Do not use this register in applications requiring persistent storage.

Regards,
Vinayak

On 21 May 2018, at 05:16, Rodrigo Peixoto <rodrigopex@...> wrote:

Hi fellows, I am developing an application that counts pulses from a source. I need this system to be the lowest power possible. I was wondering if I could use the GPREGRET register do store this counting. Can I? My concern is that, as the documentation says, the DFU feature from Nordic also uses that retention register. Is the mcumgr + MCUBoot (FOTA) using that as well? Note that I would like to use the FOTA feature in this project.

By the way, I took a look at the Zephyr repo and the only mentions to this register is on the NRFX Nordic hal. Is that a good signal?

Thank you. Best regards, Rodrigo Peixoto.




Join users@lists.zephyrproject.org to automatically receive all group messages.