[stm32l476] pyb.stop() mode question on side effects

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
roland_vs
Posts: 89
Joined: Tue Dec 08, 2015 8:28 pm
Location: Netherlands
Contact:

[stm32l476] pyb.stop() mode question on side effects

Post by roland_vs » Mon Aug 06, 2018 7:38 pm

Dear all,

Before diving into a night of debugging with the STM32L476RG port:
Are there instances that need to be reinitialised after the system is woken up from a pyb.stop()?

Same measurement code:
- using a loop that fires a measurement using pyb.ADC() every 2 seconds --> works
- using rtc.wakeup(2000)/pyb.stop()/rtc.wakeup(None) to optimise power use, it wakes every 2 seconds as expected, but measurements results are all zero.

R

Post Reply