espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.73k stars 741 forks source link

ESP32_IDF4 (ESP32C3) support #2499

Open MaBecker opened 1 month ago

MaBecker commented 1 month ago

This build is on development stage, collecting issues here.

Please ask questions on the forum post

(edited by @gfwilliams)

c3c commented 1 month ago

Hey, I realize this is in active development, just eager to test on this new board and wanted to report what currently works for me.

I compiled for ESP32C3_IDF4 and uploaded the firmware. So far I'm able to connect via BLE and get a working REPL. Via the Web IDE (over BLE) the device disconnects as soon as I try to upload data/files. Via USB serial I don't seem to get 2-way interaction (although I do see the bootloader printouts and espruino logo). I'm guessing that might also have to do with a slightly different pinout(?) Using M5StampC3.

Is this expected with what is currently implemented?

gfwilliams commented 1 month ago

Via USB serial I don't seem to get 2-way interaction

What happens if you press enter? Just yesterday I fixed the issue where the REPL didn't update immediately (only after newline) so that could be what you were seeing?

c3c commented 1 month ago

I had cloned the Git commit right before your REPL commit. Looks like I have the same issue though on master e1838a2 (I made sure to make clean just in case).

Can the default_console configuration affect this?

gfwilliams commented 1 month ago

I don't think default_console would affect it - I guess it could even be your terminal app (if it's got RTS/CTS flow control enabled)