Hello,
I've a problem with handling interruption on nrf51dk (SDK12.1.0). I set GPIOTE to handle interruption based on the example code "pin_change_int". I work with the gyroscope of a LSM9DS0 sensor who generate interruption after a specified amount of measure.
When i flash the nrf51dk with my soft and connect the wire to the pin i configure to handle the interruption all work fine (i have a led who blink if an interruption is handle). But if i reset the nrf51dk with the reset button and with the wire already connect i handle no interruption. (idem with re-flashing the nrf51 or if i shutdown/poweron). In this situation if i unplug and replug the wire all work fine and the interruption is handle.
I have do some electric test:
- When the wire are not plug i have around 0V on the pin
- When i start the nrf51 with wire pluged i have around 2,7V on the pin
- When i plug the wire (the interrupt was handle) i have a value who varied between 0,7 and 0,9V (because the sensor generate a lot of interruption i think).
So... Someone have an idea on why it doesn't work when plugged at start ?
Thanks