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?
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.
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
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?
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