Skip to content

Problem with UART(Serial/Serial1) in GD32F10x (GD32F103C8) #142

Description

@michpro

After uploading a simple compiled programme:

#define LED     LED_BUILTIN
#define DELAY   500
#define SERIAL  Serial

void setup()
{
  pinMode(LED, OUTPUT);
  SERIAL.begin(115200);
}

void loop()
{
    digitalWrite(LED, HIGH);
    delay(DELAY);
    digitalWrite(LED, LOW);
    delay(DELAY);

    SERIAL.println("TEST");
}

there is no activity on the PA9 (Serial1 TX) pins of the processor.

After changing the port to Serial2 or Serial3, transmission appears on the PA2 or PB10 pins, respectively.

Metadata

Metadata

Assignees

Labels

Component: GPIO/InterruptsRegarding the GPIO or interrupts componentComponent: SerialRegarding UART / Serial componentbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions