Replies: 2 comments 4 replies
-
|
you cannot use soft resets because a soft reset only clears the memory and not the hardware states. The drivers have no way of being informed that a soft reset is occurring so cleanup becomes impossible to do. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
I agree, this discussion can now be closed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies if this has been mentioned elsewhere and that the below is sooooo trivial:
This problem relates to using Thonny to develop lvgl_micropython apps.
Using Thonny for task based app i.e. lvgl which has listener tasks etc. is problematic in that even after a soft reset, some event driven code is still running. If you try to run the app again, the dreaded TypeError: can't convert module to int error appears. The only way to fix this is to press the reset button on the (in my case) ESP32 board which is a bit of a pain. So, a trivial fix for this is to add a very short app to another Thonny window:
import machine
machine.reset()
Then, run this app and restart the backend will get you back to a point where you can run the lvgl app again.
Hope it helps someone as using lvgl via this excellent repo with Python is so much easier than repeated app uploads to your favourite dev board!
Beta Was this translation helpful? Give feedback.
All reactions