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

nRF52 reset issue

Hello, I discovered strange behaviour related to reset pin on my nrf52833 prototype and SDK17. My board has only reset button connected to reset input and 10K pull-up resistor.
App is built with CONFIG_GPIO_AS_PINRESET and BOARD_CUSTOM directives and #define BSP_BTN_BLE_ENABLED 0 in sdk_config.h. My custom_board.h is just a copy of pca10100.h.

My application blinks LED once at start of main. When I apply reset, I noticed that LED blinks only every second time I push reset button.
When I investigate using power profiler, "failed" reset shows some activity lasting around 200ms where average current is around 330uA and after that current drops to 0.7uA and app hangs forever. I presume device is in system off state at this stage, based on such low current. In this state I apply reset again and app starts working fine.
By the way, before target programming using Jlink, I do "erase all" before download, making sure that my previously installed DFU secure bootloader is removed.
Is there any explanation for this behaviour?
thanks

Parents
  • Hi,

    My board has only reset button connected to reset input and 10K pull-up resistor.

    Could you share the schematic instead, it's easier to understand how exactly that you've connected it. 

    What happens if you pull the reset pin by connecting it directly to GND with a wire? How long are you pressing the button when you try to reset it the first time, is behavior dependent on how long you push the button?

    regards

    Jared

  • Hi Jared,

    I've fixed the issue, it was in fact caused by combination of two bugs:

    1. PCB silkscreen wrongly indicates reset button, but in fact it is another button connected to P0.11 - same pin on DK is connected to BLE button 1. Function of BLE Button 1 is to force application to sleep and also to wakeup application from sleep (with reset on wakeup) - exactly what I was experiencing. First button push forces app to system off, second push causes reset and LED blink. What a coincidence.
    2. There seem to be a bug in SDK, because BSP_BTN_BLE_ENABLED 0 has no effect. This bug was also reported in this post devzone.nordicsemi.com/.../134605

    Regards

    Kerim

Reply
  • Hi Jared,

    I've fixed the issue, it was in fact caused by combination of two bugs:

    1. PCB silkscreen wrongly indicates reset button, but in fact it is another button connected to P0.11 - same pin on DK is connected to BLE button 1. Function of BLE Button 1 is to force application to sleep and also to wakeup application from sleep (with reset on wakeup) - exactly what I was experiencing. First button push forces app to system off, second push causes reset and LED blink. What a coincidence.
    2. There seem to be a bug in SDK, because BSP_BTN_BLE_ENABLED 0 has no effect. This bug was also reported in this post devzone.nordicsemi.com/.../134605

    Regards

    Kerim

Children
No Data
Related