Currently, I'm flashing espruino with this command:
esptool.py \ --chip esp32 \ --port /dev/tty.SLAB_USBtoUART \ --baud 961200 \ --before default_reset \ --after hard_reset write_flash \ -z \ --flash_mode dio \ --flash_freq 40m \ --flash_size detect \ 0x1000 bootloader.bin \ 0x8000 partitions_espruino.bin \ 0x10000 espruino_esp32.bin
and looks like it is flashing the thing there, but I can't use the web IDE to connect to the device, and also it is making an anoying noise through the speaker which I don't know how I can stop it.
Does anybody know how I can connect to the device or how can I make the web IDE connect to the device?
@gabi I saw a suggestion that you need to use 115,200 for flashing the ESP32 and also have that speed set in the web IDE to connect to it...
Instead of the Web IDE, some alternative means of connecting to the ESP32 are outlined here plus other details: https://www.espruino.com/ESP32#espruino-web-ide
If anyone is interested in Espruino on M5Stack - check out this initialization code:
It initializes the display, but currently the display works rather slow due to Espruino limitations (hopefully will be fixed in future).
Also stops the annoying noise! ;)
how can I make the web IDE connect to the device?
You should change the Web IDE baudrate to 115200 (in the settings page)