dbuezas / lgt8fx

Board Package for Logic Green LGT8F328P LGT8F328D and LGT8F88D
359 stars 90 forks source link

standbyExternalInterrupt example does not consistently work #290

Closed whyameye closed 11 months ago

whyameye commented 11 months ago

the standbyExternalInterrupt example in the lgt_LowPower library does not work consistently. An easy test is to change line 65 from LowPower.powerStandby(SLEEP_32S, ADC_OFF, BOD_ON, TIMER2_OFF); to LowPower.powerStandby(SLEEP_1S, ADC_OFF, BOD_ON, TIMER2_OFF);

and after at best several iterations of waking up after a second, the MCU will stop responding. I get the same inconsistent results bringing pin D2 low.

Tested with TIMER2_ON and BOD_OFF as well and with a different power supply. Results did not improve.

Tested with an LQFP32 Mini EVB board.

whyameye commented 11 months ago

Gah more noise from me so sorry! I tried a different board and the problem went away.