OPHoperHPO / lilygo-ttgo-twatch-2020-micropython

:snake:MicroPython for LilyGO TTGO T-Watch-2020:snake:
MIT License
57 stars 12 forks source link

Crashes when uploading example code #13

Open RaspberryPiDude314 opened 2 years ago

RaspberryPiDude314 commented 2 years ago

I'm experiencing a problem with the prebuilt firmware, and due to computer limitations I cannot build it myself. I've noticed whenever I attempt to upload either any example code listed or a small snippet of code simply starting LVGL and the watch that it will crash exactly every other time, and serial communication will be impossible. Thonny crashes with this error message. I was unable to find anything about this error message online, except for one in German about the Raspberry Pi Pico. image After this message, the code will run locally, but serial messages sent to or from the device will not work. Attempting to send serial data back to Thonny will result in the same error. Running code again from Thonny will result in a crash and reboot with no code running on the device. (Hence, "works every other time") Crash message the second time: image Followed immediately by a reboot. This has been tested uploaded to the ESP32 by multiple computers running different instances of Thonny, to the same result. (Tested: MacOS and Windows)

Code snippet used:

import lvgl as lv
import ttgo
# Init watch
watch = ttgo.Watch()
power = watch.pmu
tft = watch.tft
# Init lvgl
lv.init()
watch.lvgl_begin()

Other scripts not using LVGL or TTGO do not experience this problem, and work fine.