guild icon
Toit
#M5Atom/M5StickC Plus
Thread channel in help
dirk0815
dirk0815 07/01/2023 12:27 PM
trying to get started with toit, but having trouble flashing an M5Atom or M5StickC Plus. Are these devices supportet?
Getting the following error:


% jag flash --baud 460800
Flashing device over serial on port '/dev/cu.usbserial-8552FE11AB' ...
esptool.py v4.6
Serial port /dev/cu.usbserial-8552FE11AB
Connecting....
Chip is ESP32-PICO-D4 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 4c:75:25:c4:74:34
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.

A fatal error occurred: Unable to verify flash chip connection (No serial data received.).
Error: exit status 1

Any ideas? Thanks.
floitsch
floitsch 07/01/2023 12:29 PM
Let me have a look.
floitsch
floitsch 07/01/2023 12:29 PM
I think it should work, but it usually needs lower baud rates.
floitsch
floitsch 07/01/2023 12:30 PM
You are already setting the baud rate, though.
floitsch
floitsch 07/01/2023 12:30 PM
Fundamentally we are using the esptool under the hood, so there is no reason it would fail at this step.
floitsch
floitsch 07/01/2023 12:31 PM
Could you try with --baud 115200 ?
floitsch
floitsch 07/01/2023 12:31 PM
Thanks for the suggestion, @felmue, but I figured out the problem! The default baud rate of 460800 is too fast for this device. If I specify --baud 115200 (in platformio.ini, that would be upload_speed = 115200) it works. Maybe this will be useful to som...
dirk0815
dirk0815 07/01/2023 12:34 PM
Stupid me. Could have tried to use an even lower speed myself. Works perfectly.
dirk0815
dirk0815 07/01/2023 12:35 PM
Thanks for the super fast response!
floitsch
floitsch 07/01/2023 12:35 PM
Glad it works :🙂:
10 messages in total