I am using a CH32X033F8P6 board with the latest WCH Arduino Core.
My goal is to send UART data to a PC through a CH340N USB-to-TTL(UART) converter.
Hardware
MCU: CH32X033F8P6
USB-TTL: CH340N
Arduino IDE: (version)
WCH Arduino Core: (version)
Connections
CH32X033 TX pin → CH340N RX (HERE I USE ALL UART PINS)
CH32X033 RX pin → CH340N TX (HERE I USE ALL UART PINS)
GND → GND
Test Code 1:
HardwareSerial Serial2(USART2);
void setup() {
Serial2.begin(115200);
Serial2.println("CH32X033F8P6 ready");
}
void loop() {
static uint32_t count = 0;
Serial2.print("count: ");
Serial2.println(count++);
delay(1000);
}
Test Code 2:
Serial.begin(115200); / Serial1.begin(115200); / Serial2.begin(115200); with different bard rate also
but no UART data appears on the PC.
I already seen #145, #163, and other also
Verification
Same CH340N adapter works correctly with an Arduino Nano.
Baud rate is set to 115200 on the serial monitor.
TX/RX wiring has been checked multiple times.
GND is common between devices.
** My Question**
Which UART instance (Serial, Serial1, Serial2) is supported on CH32X033F8P6 in the Arduino core?
What are the exact TX/RX pins for each UART?
Is any pin remapping required?
Is there a known issue with UART output on CH32X033F8P6?
Any example code for UART transmission on CH32X033F8P6 would be appreciated.
I am using a CH32X033F8P6 board with the latest WCH Arduino Core.
My goal is to send UART data to a PC through a CH340N USB-to-TTL(UART) converter.
Hardware
MCU: CH32X033F8P6
USB-TTL: CH340N
Arduino IDE: (version)
WCH Arduino Core: (version)
Connections
CH32X033 TX pin → CH340N RX (HERE I USE ALL UART PINS)
CH32X033 RX pin → CH340N TX (HERE I USE ALL UART PINS)
GND → GND
Test Code 1:
HardwareSerial Serial2(USART2);
void setup() {
Serial2.begin(115200);
Serial2.println("CH32X033F8P6 ready");
}
void loop() {
static uint32_t count = 0;
Serial2.print("count: ");
Serial2.println(count++);
delay(1000);
}
Test Code 2:
Serial.begin(115200); / Serial1.begin(115200); / Serial2.begin(115200); with different bard rate also
but no UART data appears on the PC.
I already seen #145, #163, and other also
Verification
Same CH340N adapter works correctly with an Arduino Nano.
Baud rate is set to 115200 on the serial monitor.
TX/RX wiring has been checked multiple times.
GND is common between devices.
** My Question**
Which UART instance (Serial, Serial1, Serial2) is supported on CH32X033F8P6 in the Arduino core?
What are the exact TX/RX pins for each UART?
Is any pin remapping required?
Is there a known issue with UART output on CH32X033F8P6?
Any example code for UART transmission on CH32X033F8P6 would be appreciated.