jeffmer / TTGO-T-watch-2020-Micropython-OS

All micropython watch software for TTGO T-watch 2020 V1, V2 & V3
The Unlicense
19 stars 5 forks source link

T-watch-2020 V3 not starting #18

Open darkman7hr opened 8 months ago

darkman7hr commented 8 months ago

Hi,

I uploaded everything like readme says, but:

`MicroPython v1.22.0-preview.21.g4074f828d.dirty on 2023-10-16; Generic ESP32 module with SPIRAM with ESP32 Type "help()" for more information.

import loader Traceback (most recent call last): File "", line 1, in File "./loader.py", line 2, in File "./tempos.py", line 3, in File "./drivers/st7789.py", line 16, in ValueError: incompatible .mpy file `

jeffmer commented 8 months ago

Hi, it means your cross compiler mpycross is a different version from tte firmware. I have recently put a 1.22 firmware in the repository. Either load the previous firmware 1.19 - and if you do not erase flash, all your uploads should still be there - or update your version of mpycross and reload the mpy files.

darkman7hr commented 8 months ago

I'm using 1.22. But I my compiler is: bash-5.2# mpy-cross --version MicroPython v1.20.0 on 2023-05-02; mpy-cross emitting mpy v6.1

I installed it yesterday. Is there newer?

jeffmer commented 8 months ago

I am using the latest software from GitHub which is a preview 1.22?so it would probably be best if you try the 1.19 firmware.

darkman7hr commented 8 months ago

with 1.19 firmware I have this problem.. it goes black then it writes "loading.." .. and then nothing.

`+ echo 'Loading mpy files' Loading mpy files

jeffmer commented 8 months ago

Looks like the load command is wrong.

Are you using the install.sh command?

Also using Thonny, you can check which modules have actually been loaded as it has a view of the ESP32 flash file store.

darkman7hr commented 8 months ago

seems I was doing install then load. tnx.

ProposeleSS commented 6 months ago

There seems to be an issue: official release version of mpy-cross is not compatible with 1.22 firmware and 1.19 firmware does not have deflate module, which causes issues. Easiest solution seems to be to add 1.21 firmware to repo, but I have not tested it yet (can;t find it precompiled, might need to build it myself)

tested on V3 watch

EDIT: found a binary of mpy-cross with required version, and by using it V3 watch works with 1.22 firmware