I’m trying to do debugging of my code that uses light sleep.
When I use the built-in USB/JTAG interface, opened disconnects and dies when the DEV board goes into light sleep.
It seems that the USB port goes away because it is powered down.
1) Is there a what to force the chip to keep the UAB/JTAG powered up during debug?
2) If I have an external USB to JTAG pod and connect to the four JTAG pins of the dev board, will that work through light-sleep, or will it fail as well when the JTAG is powered down?
I got an answer from Expressive.
The answer to both questions is no.
- The USB goes away when it goes to sleep and so drops the connection to openocd.
- The JTAG goes away when it goes to sleep and openocd doesn’t;t know how to reconnect when using an external USB/JTAG pod.
So when working with light sleep, its printf and DIOs/LEDs for debugging.