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

disabling Pin 21 of nrf52832

Hi,

I want to use pin21 as normal GPIO ?How to disable reset on Pin 21 of nrf52832?

Parents
  • Simply define globally CONFIG_GPIO_AS_PINRESET, as per explanation in components\toolchain\system_nrf52.c file:

    /* Configure GPIO pads as pPin Reset pin if Pin Reset capabilities desired. If CONFIG_GPIO_AS_PINRESET is not
      defined, pin reset will not be available. One GPIO (see Product Specification to see which one) will then be
      reserved for PinReset and not available as normal GPIO. */
    
Reply
  • Simply define globally CONFIG_GPIO_AS_PINRESET, as per explanation in components\toolchain\system_nrf52.c file:

    /* Configure GPIO pads as pPin Reset pin if Pin Reset capabilities desired. If CONFIG_GPIO_AS_PINRESET is not
      defined, pin reset will not be available. One GPIO (see Product Specification to see which one) will then be
      reserved for PinReset and not available as normal GPIO. */
    
Children
Related