Can one change the RESET pin from 18 to other numbers?

Hi,

For the nRF52840, can we use another pin than P18 to realise the Pin RESET functionnality?

I can write the register NRF_UICR->PSELRESET with numbers other than the default 18 but I cannot do the pin reset.

Thanks.

Parents
  • Hi, Is it possible to completely disable the PSELRESET routine attached to pin 18?
    I'm working on a board with only one reset button which attached to pin 0.18 of the nrf52840 processor. as a result, pressing this button always causing the system to reset (as should be).
    We want in our project to execute some functions before prompting the Nordic nrf52840 system reset routine. 

    I've tried doing it by performing this steps:
    1. remove the  CONFIG_GPIO_AS_PINRESET definition from the pre-processor definitions for both the bootloader and the BLE firmware

    2. use bsp_init() function (from the bsp.h module) to initialize pin 0.18 to execute a callback function (named "_button_handle()" when pressed. I also used bsp_button_enable() to enable it.

    3. implement my own routine inside the "_button_handle()" function , which performing some actions before prompting the Nordic's nrf52840 system reset routine.

    for some reason not only does my bsp routine doesn't executed, but the nrf52840 system reset routine hadn't been disabled and it still performed once the button is pressed.

    Note: I've tested the above on a different board which has 2 buttons and it succeeded (Fanstel dual-band BGW840X).

Reply
  • Hi, Is it possible to completely disable the PSELRESET routine attached to pin 18?
    I'm working on a board with only one reset button which attached to pin 0.18 of the nrf52840 processor. as a result, pressing this button always causing the system to reset (as should be).
    We want in our project to execute some functions before prompting the Nordic nrf52840 system reset routine. 

    I've tried doing it by performing this steps:
    1. remove the  CONFIG_GPIO_AS_PINRESET definition from the pre-processor definitions for both the bootloader and the BLE firmware

    2. use bsp_init() function (from the bsp.h module) to initialize pin 0.18 to execute a callback function (named "_button_handle()" when pressed. I also used bsp_button_enable() to enable it.

    3. implement my own routine inside the "_button_handle()" function , which performing some actions before prompting the Nordic's nrf52840 system reset routine.

    for some reason not only does my bsp routine doesn't executed, but the nrf52840 system reset routine hadn't been disabled and it still performed once the button is pressed.

    Note: I've tested the above on a different board which has 2 buttons and it succeeded (Fanstel dual-band BGW840X).

Children
No Data
Related