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

Setting XL1 & XL2 as GPIO does not work.

Hi there,

We are not using external Crystal for this design and thinking of reusing XL1 & XL2 (Pin 0 and Pin 1) for SPI (MISO & MOSI).  But I found that I can't set properly set these pins as GPIO output.

Something as simple as:

nrf_gpio_cfg_output(0);
nrf_gpio_pin_set(0);

will not bring the line up (I checked with a scope).  Are there additional steps needed to make these pins GPIO? Or, it's not possible to use them as regular GPIO?


Thanks,
Cecylia

Parents Reply Children
Related