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

nRF52832 ram_retention demo not working with factory supplied hex file

Hello. We are now starting our review to customize code for the pending use of the Nordic devices in low power mode. Have a mix of Nordic kits now. Using the nRF52832 (PCA10040) kit, downloaded the nRF5_SDK_14.2.0 which offers the ram_retention demo for PCA10040 and PCA10056 (nRF52840 based kit).

The nRF52840 pre-compiled hex file appears to work as documented when applied on the PCA10056 nRF52840 Preview DK.

LED #1 turns ON upon a reset -> a few seconds later -> LED #1 turns OFF. All LEDs are OFF. PB # 1 press turns on LED #2. This is the correct behavior.

Repeat the above using the factory PCA10040 firmware (nRF5_SDK_14.2.0_17b948a\nRF5_SDK_14.2.0_17b948a\examples\peripheral\ram_retention\hex) on the nRF52832 kit and the results are:

LED #1 turns ON upon a reset -> a few seconds later -> ALL LEDs turn ON (this is wrong behavior). PB # 1 press turns on LED #2. This is the correct behavior.

In attempting to debug to the best of our limited knowledge, the hard fault is being triggered - if we comment out that routine, the "all leds on" is no longer being enabled.

What is the issue here? Something local with our kit or silicon revision?

What we wish to achieve is to place the pending nRF52832 based module to sleep to save power (wish to run off coin cell battery for as long as possible) -> upon receiving a port pin toggle / trigger -> wake up the Nordic based module and broadcast a value of xx and than back to sleep again. For now, wish to evaluate the power down / up modes.

Will keep testing and update this post if the results change for the better Slight smile

Thanks in advance for any feedback.

Parents Reply Children
  • Hello Martin. This post is to confirm that using nRFgo studio works perfectly with the factory demo. Repeated again with the drag & drop and it failed. Very strange since the PCA10056 kit works fine with drag & drop. Coming from using mbed tools, thought this method was acceptable but now we know better Slight smile

    Thanks for your prompt assistance and also your comments on the PPK. We will order one today so we can review the current draw and make our attempts to run this board (soon to be replaced with one of your design partner's module) off a coin cell battery.

Related