When handlers are used in BLE codes, in order to check different events (connection, disconnection and discovery), after a few connections the Portenta stops working, showing a blinking red led on the board.
In my case I used the Portenta H7 as central and the Nicla Sense ME as peripheral.
What is causing this behaviour? Because I tried to debug it but there are no errors in the code... am I using the library in a wrong way or there is a problem with the software of the board?