NodeMCU-32S wont upload

Using latest version of IDE on my PC workstation running W11 I can upload to a NodeMCU-32S board with not problems.

Same board, USB cable & IDE version and W11 on my Asus Laptop - it times out trying to connect for the upload. I can get it to work sometimes by pressing the EN button on the board. I never have to do this on my Workstation.

I know the USB port is correct because the Serial Monitor works fine for both receiving and transmitting.

I did try a different board and cable. Same issue.

Any thoughts?

Hi @ianc99. I'm going to ask you to provide the full verbose output from an upload on each of the computers. It might be that we will be able to spot some relevant difference between the two outputs, which explains why you are getting the different results.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Connect the NodeMCU-32S board to the PC workstation with a USB cable.
  2. Start Arduino IDE on the PC workstation.
  3. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  4. Uncheck the box next to Show verbose output during: compile in the "Preferences" dialog.
  5. Check the box next to Show verbose output during: ☐ upload.
  6. Click the "OK" button.
    The "Preferences" dialog will close.
  7. Attempt an upload, as you did before.
  8. Wait for the upload to finish.
  9. Right click on the black "Output" panel at the bottom of the Arduino IDE window.
    A context menu will open.
  10. Select Copy All from the menu.
  11. Open a forum reply here by clicking the "Reply" button.
  12. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  13. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the upload output into the code block.
  14. Move the cursor outside of the code block markup in the forum reply composer.
  15. Connect the NodeMCU-32S board to the Asus Laptop with a USB cable.
  16. Start Arduino IDE on the Asus Laptop.
  17. Repeat the upload and output collection procedure described above, this time on the Asus Laptop.
  18. Click the "Reply" button to post the output.

That's pretty explicit instructions - Thanks :slight_smile:

Here's output from Workstation PC

Sketch uses 1128285 bytes (86%) of program storage space. Maximum is 1310720 bytes.
Global variables use 35284 bytes (10%) of dynamic memory, leaving 292396 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\ianca\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32 --port "COM5" --baud 921600  --before default_reset --after hard_reset write_flash  -z --flash_mode keep --flash_freq keep --flash_size keep 0x1000 "C:\Users\ianca\AppData\Local\Temp\arduino\sketches\CE4D2CC85F4E06977737A619FA4D2DB8/CAN_Read_v0.1.ino.bootloader.bin" 0x8000 "C:\Users\ianca\AppData\Local\Temp\arduino\sketches\CE4D2CC85F4E06977737A619FA4D2DB8/CAN_Read_v0.1.ino.partitions.bin" 0xe000 "C:\Users\ianca\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\ianca\AppData\Local\Temp\arduino\sketches\CE4D2CC85F4E06977737A619FA4D2DB8/CAN_Read_v0.1.ino.bin" 
esptool.py v4.6
Serial port COM5
Connecting.......
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 48:e7:29:8a:86:e0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00125fff...
Compressed 18304 bytes to 12742...
Writing at 0x00001000... (100 %)
Wrote 18304 bytes (12742 compressed) at 0x00001000 in 0.5 seconds (effective 309.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 315.4 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 451.1 kbit/s)...
Hash of data verified.
Compressed 1134864 bytes to 720728...
Writing at 0x00010000... (2 %)
Writing at 0x0001b4da... (4 %)
// A few lines deleted for brevity 
Writing at 0x0010ea11... (93 %)
Writing at 0x001145ad... (95 %)
Writing at 0x0011a00d... (97 %)
Writing at 0x0011f6c6... (100 %)
Wrote 1134864 bytes (720728 compressed) at 0x00010000 in 10.2 seconds (effective 887.5 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

and from non-behaving laptop (Updated):

Sketch uses 1128285 bytes (86%) of program storage space. Maximum is 1310720 bytes.
Global variables use 35284 bytes (10%) of dynamic memory, leaving 292396 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\ianca\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32 --port "COM3" --baud 921600  --before default_reset --after hard_reset write_flash  -z --flash_mode keep --flash_freq keep --flash_size keep 0x1000 "C:\Users\ianca\AppData\Local\Temp\arduino\sketches\CE4D2CC85F4E06977737A619FA4D2DB8/CAN_Read_v0.1.ino.bootloader.bin" 0x8000 "C:\Users\ianca\AppData\Local\Temp\arduino\sketches\CE4D2CC85F4E06977737A619FA4D2DB8/CAN_Read_v0.1.ino.partitions.bin" 0xe000 "C:\Users\ianca\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\ianca\AppData\Local\Temp\arduino\sketches\CE4D2CC85F4E06977737A619FA4D2DB8/CAN_Read_v0.1.ino.bin" 
esptool.py v4.6
Serial port COM3
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2

I see the libraries updated on the PC compared to the laptop. I don't think that's the difference - but refreshing libs now and will rerun

Now updated and both with matching libs

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.