Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Serial Monitor not working with AVR Leonardo

2 posters

Go down  Message [Page 1 of 1]

rikky



How to reproduce:

I created this minimal example with vscode/platformio and an additional LED toggle to see something in the simulation:

Code:

#include <Arduino.h>

bool ledState = false;

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

void loop() {
  Serial.println("toggle");
  ledState = !ledState;
  digitalWrite(LED_BUILTIN, ledState ? HIGH : LOW);
  delay(500);
}

In SimulIDE I just create a new empty circuit and:


  1. added a Leonardo board
  2. loaded the hex file.
  3. opened serial monitor with "Open Serial Monitor."
  4. run simulation


After that I can see the LED blinking, but there is no serial output. Is there something I am doing wrong, or is this a known defect?

I tried with simulide_0.4.14-SR4.AppImage, simulide_0.4.15-SR1.AppImage and SimulIDE_0.4.15-SR1_Lin64.tar.gz.

Thanks for help

arcachofo

arcachofo

Hi.

You are right, looks like there is a problem here.
I will have a look.

Thanks for reporting.

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum