4 posts / 0 new
Last post
Rony
Offline
Last seen:4 years 11 months ago
Master
加入:2014-05-15 15:02
Debug reset on sdk

After we set the board to deep sleep we will awake it by means of the reset button.
How can I debug this on the sdk?
Thanks

Device:
MT_dialog
Offline
Last seen:2 months 6 days ago
Staff
加入:2015-06-08 11:34
Hi Rony,

Hi Rony,

What do you mean ? that you ve set the wake up controller and the device wont wake up ? The only way to wake the device up is by reseting the device and re-download the firmware via the spi flash?

Thanks MT_dialog

Rony
Offline
Last seen:4 years 11 months ago
Master
加入:2014-05-15 15:02
Our device is designed to

Our device is designed to work for about 8 hours and then to enter deep sleep.

We have a reset button that we want to use to wake it up for its next use.
How do I debug this using the sdk?

MT_dialog
Offline
Last seen:2 months 6 days ago
Staff
加入:2015-06-08 11:34
Hi Rony,

Hi Rony,

Since you are in sleep mode you can't use the debbuger, so check if the device can accept the interrupt under no sleep mode. Also how many external interrupts the wake up controller has in order to wake up ? it is programmed to wake up by more than one gpio's ? (if more than 1 gpio is used for waking up and the interrupt hits and the state of the other pins are still in at the state that triggers the interrupt none of the ISRs will be triggered) Check if you can wake up the device by using extended sleep and try to wake it up earlier than 8 hours. You can use smart snippets (if you have a dev kit) and use the pxact_gpio cursor in order to check when the button is press if the ISR is actually executed or you can toggle a led. Check that the wake up controller is enabled properly, with the right wake up pollarity and the correct gpio, perhaps something in the the code cancels the waking up functionallity or alters the polarity or pins.

Thanks MT_dialog

Topic locked