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

Multiple button interrupts: NRF_BREAKPOINT_COND

Hello

I am trying to read a multiplexed button matrix, using the BSP button interrupt example. I am doing this on a custom made PCB with an NRF52840 on-board. This is my code in the gpio_init() function:

When using only one button in the code, it works perfectly. However, as soon as I use the code above and go into debug mode, I get stuck on NRF_BREAKPOINT_COND. I have seen this error popping up with UART, but it is not yet configured. What might be the cause of this?

  • Hi,

    One of the function calls probably report an error code and puts your in the error handler. Please debug the application, for instance following this video tutorial if you are using SES, to see which function returns the error, and what the error code is. 

    One initial idea is that you have not modified the GPIOTE driver config that set how many pins can be used as low power inputs (GPIOTE PORT event) in sdk_config.h:

    Best regards,
    Jørgen

  • Thank you very much, that solved my issue!