Unable to toggle some pins on nrf52840dk

I am trying to toggle pins on my nrf52840dk based on the blinky example. I can toggle the led pins (p0.013/p0.14 ect), but if I try to toggle other pins like p0.17 using the same code it doesn't work. Can someone tell me if I need to add something? 

void main(void)
{
	const struct device *dev;
	int ret;

	dev = DEVICE_DT_GET(DT_NODELABEL(gpio0));
    ret = gpio_pin_configure(dev, 17, GPIO_OUTPUT_ACTIVE);

	while (1) {
		gpio_pin_toggle(dev, 17);	
		k_msleep(SLEEP_TIME);
	}
}

Related