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

nrf gpio config

my led connect whit a pin like this: the led positive connect whit VCC and the negative connect whit a pin through a resistors.

when I config the pin as a output like this nrf_gpio_cfg_output(GREEN_LED_PIN_NO); but sometime s the program will dies, I do not kown why? At this case the pin will Into the current, this will cause the nrf51822 die???

If i use the the UART,the program will not die.but if i close the UART the problem may be die.

We use CR3032 battary as power,whe the CR2032 is low power,the problem die times will add.

Related