Page 1 of 1

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

Posted: Tue Sep 13, 2022 2:06 pm
by zjustin
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 ?

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

Posted: Tue Sep 13, 2022 2:15 pm
by chegewara
- 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

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

Posted: Wed Sep 14, 2022 1:30 am
by zjustin
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.

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

Posted: Mon Dec 05, 2022 9:45 am
by zjustin
just to share the knowledge,
the problem was due to incorrect assembly of the external crystal