T-vK / ESP32-BLE-Keyboard

Bluetooth LE Keyboard library for the ESP32 (Arduino IDE compatible)
2.28k stars 379 forks source link

A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption #245

Open LLLCDYY opened 11 months ago

LLLCDYY commented 11 months ago

Sometimes this situation will suddenly occurs Processing nodemcu-32s (platform: espressif32; board: nodemcu-32s; framework: arduino) ----------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/nodemcu-32s.html PLATFORM: Espressif 32 (5.1.0) > NodeMCU-32S HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption. *** [upload] Error 2`

please help me,There are no issues with the data cable or the core board.

LLLCDYY commented 11 months ago

And I have already tried replacing the data cable

animevietsub commented 11 months ago

Please ensure you don't connect these pins while programming GPIO0, GPIO2, GPIO5, GPIO12, GPIO14, and GPIO15. If you don't connect anything to those pins check RX, TX signal. If you need to connect to those pins check these conditions: GPIO 0 (must be LOW to enter boot mode) GPIO 2 (must be floating or LOW during boot) GPIO 5 (must be HIGH during boot) GPIO 12 (must be LOW during boot) GPIO 15 (must be HIGH during boot)

LLLCDYY commented 11 months ago

请确保在编程 GPIO0、GPIO2、GPIO5、GPIO12、GPIO14 和 GPIO15 时不要连接这些引脚。如果您没有将任何东西连接到这些引脚,请检查 RX、TX 信号。如果需要连接到这些引脚,请检查以下条件: GPIO 0(必须为低才能进入启动模式) GPIO 2(在启动期间必须为浮动或低) GPIO 5(在启动期间必须为高) GPIO 12(在启动期间必须为低) GPIO 15(在启动期间必须为高)

I should have discovered the problem, it should be a problem with the flash memory chip. If the code size is relatively large, it will have problems. I have this issue with both of my core boards, so I replaced them with a brand new core board and there was no problem.