OPHoperHPO / lilygo-ttgo-twatch-2020-micropython

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

no example with AP / STA connection (wifi) ...and i have issues #6

Open picpic020960 opened 3 years ago

picpic020960 commented 3 years ago

Bonjour ,

some issues with AP / STA connection on last prebuild firmware. (MicroPython v1.9.4-2811-gf0cb439ba-dirty on 2020-07-23; LilyGO-TTGO-T-Watch-2020-V1 with ESP32)

simple sketch never connect at local network : sta.isconnected() ==> false but some time (not clear) sta.status() ==> 1001 = connected

help or debug mode ?

Thank's a lot & Regards

OPHoperHPO commented 3 years ago

I know about this bug. I have updated micropython and lvgl to the latest versions. You can see it in the 1.13 branch. Can you check this bug on the updated micropython?

picpic020960 commented 3 years ago

I'm watching this this weekend

picpic020960 commented 3 years ago

Bonjour ,

bin 1.13 upload with :

esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 2000000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 firmware113.bin

and with thonny ... bad :

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5204 load:0xc8400780,len:469762102 1162 mmu set 00010000, pos 00010000 1162 mmu set 00020000, pos 00020000 1162 mmu set 00030000, pos 00030000 1162 mmu set 00040000, pos 00040000 1162 mmu set 00050000, pos 00050000 1162 mmu set 00060000, pos 00060000 1162 mmu set 00070000, pos 00070000 1162 mmu set 00080000, pos 00080000

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Could not enter REPL. Trying again with 1 second waiting time... Could not enter REPL. Trying again with 3 second waiting time... Could not enter REPL. Trying again with 5 second waiting time... Could not enter REPL. Giving up. Read bytes:

Your options:

Backend terminated or disconnected. Use 'Stop/Restart' to restart.

return to release bin version :

MicroPython v1.9.4-2811-gf0cb439ba-dirty on 2020-07-23; LilyGO-TTGO-T-Watch-2020-V1 with ESP32 Type "help()" for more information.

More test ?:

OPHoperHPO commented 3 years ago

Hi @picpic020960,

It looks like there are errors in the instructions for flashing the image. And it doesn't work for the new version of micropython. I will fix it soon. So currently there is only one way to launch a new micropython. You need to rebuild it yourself and flash it via "make -C ports/esp32 deploy".

picpic020960 commented 3 years ago

not easy to switch to ESP-IDF. I will need courage