Skip to content
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

Bluescreen of Death when board prints continuously to Serial Monitor #2592

Open
3 tasks done
Joko-1 opened this issue Dec 5, 2024 · 5 comments
Open
3 tasks done

Bluescreen of Death when board prints continuously to Serial Monitor #2592

Joko-1 opened this issue Dec 5, 2024 · 5 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@Joko-1
Copy link

Joko-1 commented Dec 5, 2024

Describe the problem

A Bluescreen of Death occurs after about 30 seconds when the board is running a sketch program that causes continuous printing to Serial Monitor:

Image

To reproduce

  1. Upload a sketch that causes the board to print continuously to Serial (about every 10ms).
  2. Open Serial Monitor

🐛 A BSOD occurs after about 30 s.

Expected behavior

No BSOD

Arduino IDE version

2.3.4

Operating system

Windows

Operating system version

10 22H2

Additional context

The fault does not occur when I open the serial port of the board in PuTTY.


Board: ESP32-WROOM-32 with CH340 Serial chip


Stillstandcode: DRIVER IRQL NOT. LESS OR EQUAL
Fehlerursache: CH341S64.SYS


I have attempted the following to solve the problem, without any success:

  • Reinstalling the CH340 driver
  • Updating from Arduino IDE 2.3.3 to 2.3.4
  • Using another cable
  • Using another Arduino sketch

Additional reports

Related

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@Joko-1 Joko-1 added the type: imperfection Perceived defect in any part of project label Dec 5, 2024
@per1234 per1234 changed the title Bluescreen of Death with Serial Monitor Bluescreen of Death when board prints continuously to Serial Monitor Dec 5, 2024
@per1234
Copy link
Contributor

per1234 commented Dec 5, 2024

Hi @Joko-1. Thanks for your report. I'm going to ask you to provide some additional information:

Please provide a simple sketch that you have verified to produce the BSOD. For example, does the BSOD occur if you upload this sketch to your board?:

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("hello");
  delay(5);
}

Please also tell me which version of the CH340 driver you have installed. You can find this information by the following procedure:

  1. Open the Windows Device Manager.
  2. Select View > Devices by type from the Device Manager menus.
  3. Open the "View" menu.
  4. If there is a to the left of the "Show hidden devices" menu item, click on "Show hidden devices" to disable it.
  5. Open the "Ports (COM & LPT)" section of the Device Manager tree.
  6. You should see a port identified as "USB-SERIAL CH340 (COMn)" under the "Ports (COM & LPT)" section (where "COMn" is some serial port e.g., COM4). Double click on that item.
    The "USB-SERIAL CH340 (COMn) Properties" dialog will open.
  7. Select the "Driver" tab of the "USB-SERIAL CH340 (COMn) Properties" dialog.

You will see the version in the "Driver Version" field of the dialog.


Please also tell me whether there is labeling on the CH340 chip on your board. If present, the labeling would look something like this:

Image

📷

SparkFun - CC BY-SA 4.0 (cropped)

But the chip might also be blank.

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Dec 5, 2024
@per1234 per1234 self-assigned this Dec 5, 2024
@Joko-1
Copy link
Author

Joko-1 commented Dec 5, 2024

Thanks for respond,

It also happens, when I use your script.

I tested it a few times with baud rate 115200, 9600.
I didn't get the 30s as earlier (it took ~2-3min), but I noticed that it happened faster at 115200 baud.

Driver:
Driver Provider: wch.cn
Driver Date: 16.09.2024
Driver Version: 3.9.2024.9

Chip:
WCH
CH340C
205695D41

@per1234 per1234 removed the status: waiting for information More information must be provided before work can proceed label Dec 6, 2024
@per1234 per1234 removed their assignment Dec 6, 2024
@KashifKhaan
Copy link

The BSOD issue appears to stem from the CH341S64.SYS driver for the CH340 Serial chip. Here's a streamlined approach to resolve it:

  • Update or Revert the CH340 Driver: Download the latest or a stable older version from wch.cn.
  • Adjust Serial Communication: Reduce the baud rate (e.g., to 9600) and limit the frequency of serial prints (e.g., every 100ms or more).
  • Use Alternative Serial Tools: If the Arduino IDE causes BSOD, switch to PuTTY or another terminal.
  • Test Different Hardware: Use a different USB cable, port, or a board with a non-CH340 USB-to-Serial chip (e.g., CP2102).
  • Update Arduino IDE: Ensure you're on the latest version to avoid IDE-specific bugs.

@AkhmadKhoirudin

This comment has been minimized.

@bankdaysun
Copy link

After this issue occurred, I tried to fix it by installing the old 2011 driver
Image
Select "Older Windows Driver Version and Instructions"
https://sparks.gogo.co.nz/ch340.html?srsltid=AfmBOorOaQq3i3DrMbWlf7fW4zSXS1gbigIbjYHjBQ3w1P91_VicE93r
It worked fine and stopped the BSOD
Device: ESP32 Dev module CH340
date:9/12/2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants