-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REPL on Espressif ESP32-S2 board appears on wrong USB port #8418
Comments
Since the S2 has native USB it was assumed that generic S2 boards would provide USB hardware, and so the GENERIC_S2 board was defined in this way, to have USB enabled on the REPL. I don't have one of those Espressif S2 dev boards (because they were very hard to buy when they came out) and instead I use a UM FeatherS2 for development, which does have native USB wired up. But it does make sense to support the Espressif S2 boards, even if they don't use native USB. I can think of two options to do this:
If it can be made to work, I'd rather option 1 because it's simpler. @peterhinch, if possible could you please test the following patch on the S2 board you have: --- a/ports/esp32/main.c
+++ b/ports/esp32/main.c
@@ -90,6 +90,7 @@ void mp_task(void *pvParameter) {
#endif
#if CONFIG_USB_ENABLED
usb_init();
+ uart_stdout_init();
#elif CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
usb_serial_jtag_init();
#else
This should enable UART REPL as well as USB REPL. |
@dpgeorge Unfortunately I've never succeeded in building ESP32 firmware. If you (or anyone else) could let me have a binary I'd be glad to try it. |
Here: https://drop.infini.fr/r/zbXnqgnd14#ggkoTB/ZZBl1Vkw4sLo5u9NqYyd8RrmxIRitNwMO/I4=
|
Thank you. I'm not sure which image has the patch. I tried both with different (unsuccessful) outcomes.
Please could you confirm that |
In fact both .bin are patched according to #8418 (comment) suggestion. It's just that I did not know what .bin file from build dir was necessary (I always |
Note: I just compiled with the main.c modification. I didn't modify anything in the board definition. I don't know if |
I also have the same problem, I hope to get help, thank you It's not working.: no REPL: system:mac OSX |
Some S2/S3 modules don't use the native USB interface but instead have an external USB-UART. To make the GENERIC_S3/S3 firmware work on these boards the UART REPL is enabled in addition to the native USB CDC REPL. Fixes issues micropython#8418 and micropython#8524. Signed-off-by: Damien George <damien@micropython.org>
Some S2/S3 modules don't use the native USB interface but instead have an external USB-UART. To make the GENERIC_S3/S3 firmware work on these boards the UART REPL is enabled in addition to the native USB CDC REPL. Fixes issues micropython#8418 and micropython#8524. Signed-off-by: Damien George <damien@micropython.org>
Fixed by fe9eaf1 |
Now working well! |
Great! Thanks for confirming. |
Hello, I encountered similar problem on a ESP32 - S2 - WROVER, build v1.19.1 (2022-06-18). REPL is not showing up and I only get this: I'll try the generic build for now but if it's easy to fix maybe someone would be intrested in helping in that. |
…_user_disconnect Fix MDNS after the user turns off wifi
I flashed the generic ESP32-S2 firmware to this Espressif board. The board uses a UART-USB bridge to provide USB connectivity. Component placements to provide the internal USB interface are not populated.
Flashing was successful. On reset, the board's USB port emits debug information but no REPL. In this forum thread user ash10 explained that the REPL appears on the built-in software USB port on GPIO19-20. It seems that the board could be used by connecting a USB breakout to those pins (waiting for hardware to try this). This seems clunky.
I had naively assumed that the Espressif board would be a reference board as per ESP32. Is support for this board planned?
The text was updated successfully, but these errors were encountered: