TTGO-T-watch-2020-Micropython-OS icon indicating copy to clipboard operation
TTGO-T-watch-2020-Micropython-OS copied to clipboard

T-watch-2020 V3 not starting

Open darkman7hr opened this issue 2 years ago • 7 comments

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 `

darkman7hr avatar Oct 24 '23 00:10 darkman7hr

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.

jeffmer avatar Oct 24 '23 06:10 jeffmer

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?

darkman7hr avatar Oct 24 '23 10:10 darkman7hr

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.

jeffmer avatar Oct 24 '23 18:10 jeffmer

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

  • for i in ./.mpy clocks/.mpy apps/.mpy drivers/.mpy utils/.mpy fonts/.mpy
  • mpremote fs cp ./bma_config.mpy :./bma_config.mpy b"weather : ImportError : no module named 'deflate'\r\ndialclock : AttributeError : 'module' object has no attribute 'getPNG'\r\nstepsdisp : AttributeError : 'module' object has no attribute 'getPNG'\r\n" Traceback (most recent call last): File "/usr/bin/mpremote", line 8, in sys.exit(main()) File "/usr/lib64/python3.9/site-packages/mpremote/main.py", line 528, in main handler_func(state, args) File "/usr/lib64/python3.9/site-packages/mpremote/commands.py", line 110, in do_filesystem state.ensure_raw_repl() File "/usr/lib64/python3.9/site-packages/mpremote/main.py", line 470, in ensure_raw_repl self.transport.enter_raw_repl(soft_reset=soft_reset) File "/usr/lib64/python3.9/site-packages/mpremote/transport_serial.py", line 170, in enter_raw_repl raise TransportError("could not enter raw repl") mpremote.transport.TransportError: could not enter raw repl`

darkman7hr avatar Oct 25 '23 22:10 darkman7hr

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.

jeffmer avatar Oct 26 '23 07:10 jeffmer

seems I was doing install then load. tnx.

darkman7hr avatar Nov 06 '23 18:11 darkman7hr

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

ProposeleSS avatar Dec 29 '23 15:12 ProposeleSS