I managed to narrow it down by looking at the generated assembly code - it seems like for some reason, GPIO_COUNT is set to 1, thus causing the wrong branch to be taken in nrf_gpio_pin_port_decode() in nrf_gpio.h.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I managed to narrow it down by looking at the generated assembly code - it seems like for some reason,
GPIO_COUNT
is set to1
, thus causing the wrong branch to be taken innrf_gpio_pin_port_decode()
innrf_gpio.h
.