nRF52833 (P0.18) nRST cannot be used as GPIO

I am using nRF52833DK, zephyr v2.7.0.

I want to disable hardware nRST to use P0.18 as GPIO.

What I did

Added to Kconfig : CONFIG_GPIO_AS_PINRESET=n

Removed : gpio-as-nreset

But it is still enabled.

When I check UICR,

nrfjprog --family NRF52 --memrd 0x10001200

0x10001200: 00000012

It seems to be attached.

Please tell me how to use nRST (P0.18) as GPIO.

Parents Reply Children
  • I don't know the exact cause, but I was able to use P0.18 as a GPIO.
    Apparently, in my environment, when building with the GUI, code changes are sometimes not reflected.
    It works fine by building with the CLI.

    However, my real goal is to assign it to the SPI MOSI pin, which is still not working.
    SPI is not working on other ports either, so I will look into it a bit more.
    Also, is it possible to use P0.18 as the SPI MOSI pin?

Related