5 months agoPosted by AdamShier 35 points 6 replies
I'm using the SDT example, and have a problem with the button interrupt when the usb is plugged in. The code has been modified so it still runs as normal when the usb is plugged in.
However, when the usb is plugged into a computer for a few minutes, the button interrupt stops occurring. Everything else in the code is running as usual. The button is configured as a wakeup interrupt as usual in the SDT code.
This only occurs when we have
#define dg_configUSE_USB_ENUMERATION (1)
If that is disabled (ie if we only use the usb for charging, not for SUOUSB or RETARGET) then this no longer occurs. It also only occurs when the usb is plugged into a computer, not when it is plugged into an outlet directly, so it seems to a problem related to the power/usb states.