52832 weird Reset pin behaviour

I have a project which started life as ble_app_uart as a template which I've developed on the nRF52DK and is working fine. Now I am transferring it to my custom PCB.

When I first built upthe PCB nothing wold run, which looks like was because of the RESET pin unconnected so for troubleshooting I have a pullup resistor and pushbutton like this article NRF52 pin RESET

1. With the project as-is nothing would run unless I press the reset button. This doesn't sound right as I would expect the brownout / power-on reset to reset the CPU.

2. I've now removed CONFIG_GPIO_AS_PINRESET from the project preprocessor directives, now the project starts. BUT - I notice that the button still resets??? Is this correct, if so how do I disable reset on the pin?

Using Segger Embedded Studio BTW

Parents
  • 2. I've now removed CONFIG_GPIO_AS_PINRESET from the project preprocessor directives, now the project starts. BUT - I notice that the button still resets??? Is this correct, if so how do I disable reset on the pin?

    Are you sure that you removed CONFIG_GPIO_AS_PINRESET and erased the whole chip before reprogramming it? it is important that you erase the whole flash including the UICR registers (nrfjprog -e   or   nrfjprog --recover).

    For me it seems like you are reprogramming using --sectorerase which keeps the UICR value as is.

Reply
  • 2. I've now removed CONFIG_GPIO_AS_PINRESET from the project preprocessor directives, now the project starts. BUT - I notice that the button still resets??? Is this correct, if so how do I disable reset on the pin?

    Are you sure that you removed CONFIG_GPIO_AS_PINRESET and erased the whole chip before reprogramming it? it is important that you erase the whole flash including the UICR registers (nrfjprog -e   or   nrfjprog --recover).

    For me it seems like you are reprogramming using --sectorerase which keeps the UICR value as is.

Children
Related