No REPL on ESP32-S2
-
- Posts: 61
- Joined: Fri Feb 15, 2019 9:22 am
Re: No REPL on ESP32-S2
The USB compatible method should be integrated into the official firmware in the next version. My modification is after the release of 1.17. If you download the daily build, it may also be supported
Re: No REPL on ESP32-S2
Unfortunately with v1.18_S2 I'm having the same problem: no REPL.
The reason I need to build the firmware myself is to include a fast driver for the st7789 display. Any advice would be highly appreciated!
The reason I need to build the firmware myself is to include a fast driver for the st7789 display. Any advice would be highly appreciated!
Re: No REPL on ESP32-S2
Are you compiling a custom version of micropython?
If yes then try turning off the tinyusb driver in menuconfig.
If yes then try turning off the tinyusb driver in menuconfig.
leosok wrote: ↑Sun Jan 23, 2022 3:18 amUnfortunately with v1.18_S2 I'm having the same problem: no REPL.
The reason I need to build the firmware myself is to include a fast driver for the st7789 display. Any advice would be highly appreciated!
Re: No REPL on ESP32-S2
The version I tried was pre-compiled, but I have the toolchain installed to compile my own version (which works for regular esp32). I have little experience in compiling. I managed to start "idf.py menuconfig" inside /ports/esp32 and found TinyUSB as an Item in Component Config. There were no settings to change though.
Re: No REPL on ESP32-S2
You can completely disable it by pressing the spacebar on the top item
leosok wrote: ↑Mon Jan 24, 2022 12:20 amThe version I tried was pre-compiled, but I have the toolchain installed to compile my own version (which works for regular esp32). I have little experience in compiling. I managed to start "idf.py menuconfig" inside /ports/esp32 and found TinyUSB as an Item in Component Config. There were no settings to change though.
Re: No REPL on ESP32-S2
That's strange that the item is missing.
Have you already compiled micropython in this directory? If not try compiling mp and then check if the item has returned.
Have you already compiled micropython in this directory? If not try compiling mp and then check if the item has returned.
Re: No REPL on ESP32-S2
It did compile before. Also "make clean" and running menuconfig did not help either. FYI: I am doing this in a docker-container. It might be interesting, that I do not clone micropython from git, but download the source as tar.xz.
Re: No REPL on ESP32-S2
Yes maybe you should try from git.
Also maybe try running "idf.py set-target esp32s2" to see if it copies anything.
Also maybe try running "idf.py set-target esp32s2" to see if it copies anything.
Re: No REPL on ESP32-S2
Your last reply helped me a lot. "idf.py set-target esp32s2" did copy stuff, and after I could see/turn off TinyUSB in "idf.py menuconfig" - which seems to be off by default. "make BOARD=GENERIC_S2" did build a micropython.bin, which I found out, I needed to flash with the code from provided by make/idf
This did work. But unfortunately again - no REPL.
I wonder if the board-definition BOARD=GENERIC_S2 turns on the TunyUSB again?
Code: Select all
esptool.py -p COM11 -b 460800 --before default_reset --after hard_reset --chip esp32s2 write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x10000 micropython.bin
I wonder if the board-definition BOARD=GENERIC_S2 turns on the TunyUSB again?