Skip to content

IDE hangs when using Serial Monitor #9737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
isfanazha opened this issue Feb 8, 2020 · 5 comments
Closed

IDE hangs when using Serial Monitor #9737

isfanazha opened this issue Feb 8, 2020 · 5 comments
Labels
Component: IDE Serial monitor Tools > Serial Monitor Type: Bug Waiting for feedback More information must be provided before we can proceed

Comments

@isfanazha
Copy link

isfanazha commented Feb 8, 2020

When I tried SoftwareSerial example in Arduino Bettle, it didn't work. I tried to change with Serial1, it still didn't work.

@matthijskooijman
Copy link
Collaborator

Can you provide some more info? What is the problem exactly? Any error messages? What IDE version? What board do you have selected in the IDE?

What board are you using exactly? Do you mean the DFRobot Beetle?

@isfanazha
Copy link
Author

Yes @matthijskooijman, it's DFRobot Beetle. There is no error in IDE, my version is Arduino 1.8.10. In IDE, I choose Arduino Leonardo board.

@per1234
Copy link
Collaborator

per1234 commented Mar 5, 2020

@isfanazha this is still not enough information for us to be able to investigate your issue.

Please provide:

  • Minimal, complete sketch that demonstrates the issue.
  • Your circuit.
  • Detailed description of the behavior you were expecting and the behavior that you observed that did not match your expectations.

@per1234 per1234 added Library: SoftwareSerial The SoftwareSerial Arduino library Type: Bug Waiting for feedback More information must be provided before we can proceed labels Mar 5, 2020
@isfanazha
Copy link
Author

@per1234, I just follow tutorial from https://www.arduino.cc/en/Tutorial/SoftwareSerialExample and change the RX and TX pin based on DFRobot Beetle wiki. When I send messages using serial monitor, it makes Arduino IDE freeze, I need to disconnect the DFRobot Beetle to solve that freeze.

  • Code
#include <SoftwareSerial.h>

SoftwareSerial mySerial(0, 1); // RX, TX

void setup()
{
  // Open serial communications and wait for port to open:
  Serial.begin(115200);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Native USB only
  }


  Serial.println("Goodnight moon!");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(38400);
  mySerial.println("Hello, world?");
}

void loop() // run over and over
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}

@per1234 per1234 added Component: IDE Serial monitor Tools > Serial Monitor and removed Library: SoftwareSerial The SoftwareSerial Arduino library Waiting for feedback More information must be provided before we can proceed labels Mar 7, 2020
@per1234 per1234 changed the title SoftwareSerial isn't working in Arduino Beetle IDE hangs when using Serial Monitor Oct 1, 2020
@per1234
Copy link
Collaborator

per1234 commented Apr 2, 2021

This seems very much like #11122 to me, but this sketch does clear the RX buffer and I'm not able to reproduce #11122 with this sketch running on my Leonardo with the stock 1.8.10 installation (bundled Arduino AVR Boards 1.8.1).

@isfanazha please try again with the latest hourly build of the Arduino IDE to see if it has already been fixed and let us know what the results are:
https://www.arduino.cc/en/software#hourly-builds

@per1234 per1234 added the Waiting for feedback More information must be provided before we can proceed label Apr 2, 2021
@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE Serial monitor Tools > Serial Monitor Type: Bug Waiting for feedback More information must be provided before we can proceed
Projects
None yet
Development

No branches or pull requests

3 participants