Hello, When I restart my application with debugger, i have strange IRQs called (TWI, ...) before init. Possibly IRQ still active and debug don't touch them.
Can I disable all IRQ on restart ? Is there a magic cleaning function ? :-)
Hello, When I restart my application with debugger, i have strange IRQs called (TWI, ...) before init. Possibly IRQ still active and debug don't touch them.
Can I disable all IRQ on restart ? Is there a magic cleaning function ? :-)
Hi,
__disable_irq();
I think this is ARM CMSIS funtion and it will disable all IRQ. This should be ok as you are doing it before enabling softdevice.
True, SVC interrupt needs to be enabled before calling sd_softdevice_enable. __disable_irq seems more dangerous than i thought :). Just disable all peripheral interrupts instead
I did it and i have a CPU that i cannot recover with SWD...