Page 1 of 1

UART communication with a PC

Posted: Tue Nov 14, 2023 1:18 pm
by RonanLc
Hi everyone,

I'm using a ESP8684-DevKitM-1 board base on the ESP32-C2 and i've some problem with the ESP-IDF.

I seen that the ESP32-C2 is not on plateformIO or directly on a library for arduino so i'm using ESP-IDF. I don't have any problems to build my project and flash the board but I can't code a correct UART communication.

I'm just trying to send "Hello world!" from the board to the computer but I only receive some very strange character (like some chinese symbol or some smiley).

I used the common example from the ESP-IDF but nothing work, i always have the same problem. Even if I use "printf()" or "uart_write_bytes()" with the right settings.

It's not about a serial settings, like the baud rate or the parity, I'm using the default 115200 baud rate.

I tried a lot of possibily of error but I can't fixe this problem. If anyone know how to receive the correct character.