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 ? :-)
Why did you do that???? We were talking about disabling peripheral interrupts and not using __disable_irq because it was disabling SVC exception also. Clearing all bits in ICER register means everything except reset, NMI and hardfault are disabled. This is out of my knowledge of to what debugger needs to halt the CPU here. I will talk to few other guys here tomorrow and see if there is any possibility to unbrick your device.
Why did you do that???? We were talking about disabling peripheral interrupts and not using __disable_irq because it was disabling SVC exception also. Clearing all bits in ICER register means everything except reset, NMI and hardfault are disabled. This is out of my knowledge of to what debugger needs to halt the CPU here. I will talk to few other guys here tomorrow and see if there is any possibility to unbrick your device.