ESP32S2 doesn't show serial port after flashing with hello world example

peterw
Posts: 4
Joined: Tue Apr 11, 2023 1:32 pm

ESP32S2 doesn't show serial port after flashing with hello world example

Postby peterw » Tue Apr 11, 2023 1:43 pm

An ESP32-S2-DEVKitC-1 which came with the demo code of a flashing R, G. B led from espressif,
once programmed via idf.py flash with the demo hello_world app, from the idf get_started examples, refuses to show a serial port. Target type set to ESP32S2, and can get still get into bootloader mode, with reset/boot pins, but no application serial port

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: ESP32S2 doesn't show serial port after flashing with hello world example

Postby bidrohini » Wed Apr 12, 2023 2:55 pm

Try manually resetting the board by pressing and releasing the RST button. This should reset the board and start running the demo hello_world app.

Check that the correct serial port is selected in your terminal program. The ESP32-S2-DEVKitC-1 should appear as a USB serial device in your computer's device manager, and you can use the device name to select the correct serial port in your terminal program.

peterw
Posts: 4
Joined: Tue Apr 11, 2023 1:32 pm

Re: ESP32S2 doesn't show serial port after flashing with hello world example

Postby peterw » Thu Apr 13, 2023 12:12 pm

Once the code has been programmed, resetting/power cycling does not show up any serial port in device manager.

And to reprogramme again, the boot/reset button combination of getting it into bootloader/DFU mode is needed, which then does appear as a comm port. It just seems that any of the examples that send data to the USB/serial port do not show a serial port after the programme is uploaded and reset. It could be that the programme is not running, hence no serial port, but I can't be sure, hence using a simple example programme to test it out!

the target has been set to ESP32S2 via the set-target command

ESP_Sprite
Posts: 9577
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32S2 doesn't show serial port after flashing with hello world example

Postby ESP_Sprite » Fri Apr 14, 2023 2:09 am

You might need to use menuconfig to set the standard log console to CDC/ACM.

peterw
Posts: 4
Joined: Tue Apr 11, 2023 1:32 pm

Re: ESP32S2 doesn't show serial port after flashing with hello world example

Postby peterw » Fri Apr 14, 2023 10:05 am

Yes, that was the issue, the debug console was set to UART0, using menuconfig to set it up as USB/CDC, made the serial port appear and then the hello word text appears.

thank you for your help

Who is online

Users browsing this forum: No registered users and 327 guests