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

P0.17 on nRF52840

Hi,

I designed a customer board and defined my own board header file, which is pretty much copied from pca10056.h. One question I encountered is I somehow couldn't toggle p0.17. 

int main(void)
{
    /* Configure board. */
    nrf_gpio_cfg_output(17);

    /* Toggle LEDs. */
    while (true)
    {
            nrf_gpio_pin_toggle(17);
            nrf_delay_ms(2000);
    }
}

I tried something like this, but it doesn't toggle. It always stays low. I'm sure this is some software config I need to change, but couldn't find it. Can someone point me the right direction?

Thanks,

Parents Reply Children
Related