Anyone with working code to wake a PYBD from Standby using PC13? I have been hacking at this on and off for a while, but I'm clearly missing something in the 1954-page datasheet

Appreciate any insight!
Cheers,
--Nick
Code: Select all
>>> import upower
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "upower.py", line 20, in <module>
AttributeError: type object 'board' has no attribute 'USB_VBUS'
Code: Select all
>>> tamper=upower.Tamper()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "upower.py", line 34, in getinstance
File "upower.py", line 113, in __init__
AttributeError: type object 'board' has no attribute 'X18'
Also specific to my application, I'm using the Tamper line as a general wake-up interrupt, not a security "tamper" mechanism, so I did not want the backup registers to be deleted. I needed to set RTC_TAMPCR bit 17 to achieve this. Pg 1167:Bit 15 TAMPPUDIS: RTC_TAMPx pull-up disable
This bit determines if each of the RTC_TAMPx pins are precharged before each sample.
0: Precharge RTC_TAMPx pins before sampling (enable internal pull-up)
1: Disable precharge of RTC_TAMPx pins.
Hope this is useful.Bit 17 TAMP1NOERASE: Tamper 1 no erase
0: Tamper 1 event erases the backup registers.
1: Tamper 1 event does not erase the backup registers.