ESP32C3: Serial output garbage characters ( but firmware flashing is okay)

zjustin
Posts: 18
Joined: Wed Jun 03, 2020 6:00 am

ESP32C3: Serial output garbage characters ( but firmware flashing is okay)

Postby zjustin » Tue Sep 13, 2022 2:06 pm

I am loading a basic test firmware into ESP32C3, simply just boot up and do serial output some characters.
the same code works on esp32C3 devkit , but does not work on my actual board (the board is a customised board with esp32c3)
I got just garbage output in serial port.

firmware flashing via serial is working fine, so the serial communication hardware aspect part should be okay.

I tried to set different baud rate/parity, even try the whole setup on another PC with a different set of cable adapter, I got the same result ( everything works fine with devkit board, but not working with my actual assemble PCBA)

Any idea where it could have gone wrong? what else should I check ?

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32C3: Serial output garbage characters ( but firmware flashing is okay)

Postby chegewara » Tue Sep 13, 2022 2:15 pm

- which port are you using for logging
- is it arduino or esp-idf code?
- if arduino, what is the Serial.begin() baudrate
- what is baudrate of the UART console, assuming you are using UART for logging

zjustin
Posts: 18
Joined: Wed Jun 03, 2020 6:00 am

Re: ESP32C3: Serial output garbage characters ( but firmware flashing is okay)

Postby zjustin » Wed Sep 14, 2022 1:30 am

thanks, see answer below:
- which port are you using for logging : UART0
- is it arduino or esp-idf code? Arudion
- if arduino, what is the Serial.begin() baudrate : tried various, from 9600 - 115200
- what is baudrate of the UART console, assuming you are using UART for logging : used the matching BR as the above.

zjustin
Posts: 18
Joined: Wed Jun 03, 2020 6:00 am

Re: ESP32C3: Serial output garbage characters ( but firmware flashing is okay)

Postby zjustin » Mon Dec 05, 2022 9:45 am

just to share the knowledge,
the problem was due to incorrect assembly of the external crystal

Who is online

Users browsing this forum: No registered users and 50 guests