Skip to content

Serial doesn't work on a Nucleo L432KC #312

Closed
@fivdi

Description

@fivdi

The below program should blink the built-in LED and and print "Hello, World!" to Serial every two seconds. On a Nucleo L432KC it does blink the built-in LED but it doesn't print "Hello, World!" to Serial. On a Nucleo F303K8 or Nucleo F411RE the program functions correctly, the built-in LED blinks and "Hello, World!" is printed to Serial.

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  Serial.println("Hello, World!");

  digitalWrite(LED_BUILTIN, HIGH);
  delay(50);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1950);
}
  • Version of STM32 Core: 1.3.0
  • Version of Arduino; 1.8.5
  • operating system: Ubuntu 16.04
  • Tools menu settings
    • Board: "Nucleo-32"
    • USB interface: "None"
    • Optimize: "Smallest (-Os default)"
    • Board part number: "Nucleo L432KC"
    • Serial interface: "Enabled with generic serial"
    • Upload method: "Mass Storage"
    • Port: "/dev/ttyACM1"

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions