Hello,
I'm having problems setting up my Atom Lite. I'm new to M5 hardware but I have some experience as developer. Following the M5 documentation, I tried to flash the new firmware UIFlow v1.5.3 but I get the following error:
I found some related topics of other users having a similar issue in the past, however, none of their solutions worked for me.
I noticed that the esptool.py (2.5) bundled in the M5Burner electron app was the root of my issue, so I tried a newer version 2.8. Using this new version I had no issues importing the module named serial.tools.list_ports.
As the M5Burner wraps the esptool I tried to flash my Atom Lite with the latest esptool version (2.8) reusing the command shown on the above screenshot.
////////////////////
esptool.py v2.8
Serial port /dev/tty.usbserial-1D52D60BA5
Connecting....
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: d8:a0:1d:5c:96:40
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 750000
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 100 bytes to 43...
Wrote 100 bytes (43 compressed) at 0x003ff000 in 0.0 seconds (effective 213.7 kbit/s)...
Hash of data verified.
Compressed 4182016 bytes to 1548805...
Wrote 4182016 bytes (1548805 compressed) at 0x00001000 in 32.9 seconds (effective 1017.6 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
//////////////////////////////////////
Based on the above output I think that the flashing was ok, but still, I can't connect my Atom Lite to the UIFlow IDE (Online/Desktop)
I get this error in both cases:
Upload code failed, maybe your device is offline check it and retry
After I reset the device I got the following output from the M5Burner COM Monitor
////////////////////////////////////////////////////////////////////////
/dev/tty.usbserial-1D52D60BA5
//////////////////////////////////////////////////////////////////
[0;32mI (10842) network: event 3[0m
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, 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:5100
load:0x40078000,len:10596
load:0x40080400,len:5744
entry 0x400806c0
[0;32mI (586) cpu_start: Pro cpu up.[0m
[0;32mI (586) cpu_start: Application information:[0m
[0;32mI (586) cpu_start: Compile time: Jun 2 2020 15:09:32[0m
[0;32mI (589) cpu_start: ELF file SHA256: 0000000000000000...[0m
[0;32mI (595) cpu_start: ESP-IDF: v3.3.2-3-ge185be0ce3[0m
[0;32mI (601) cpu_start: Starting app cpu, entry point is 0x40083e94[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (612) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (619) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM[0m
[0;32mI (625) heap_init: At 3FFBABF8 len 00025408 (149 KiB): DRAM[0m
[0;32mI (631) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (637) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (644) heap_init: At 40097364 len 00008C9C (35 KiB): IRAM[0m
[0;32mI (650) cpu_start: Pro cpu start user code[0m
[0;32mI (220) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[ M5 ] node id:d8a01d5c9640, api key:MY_ATOM_KEY
[0;32mI (677) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE[0m
[0;32mI (678) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE[0m
[0;32mI (811) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0[0m
[0;32mI (10821) network: event 3[0m
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Right now the atom's led is always RED
Any suggestions on how to solve this problem?
Thanks in advanced,
Humberto