Macbook Pro OS Monteroy ESP32 Upload issues

Hope someone has managed to solve the problem I have, recently changed to a macbook pro with Monteroy 12.3 os, using a ESP32 board it will not upload to the board and constantly runs an exit error 2.

I can upload to the board using an old windows machine, but no look using the mac.

Has anyone managed to rectify this issue?

The "uncategorized" category is not meant to post in (and hope that somebody will categorise it for you).

Anyway, your topic has been moved to a more suitable location on the forum.

Can you provide some details.

  1. Details of the error message; quite sure that there is more to the message than just an "exit error 2".
  2. ESP32 board package that you use.
  3. Version of the IDE.

I'm using Arduino 2.1.0 with a D1 Mini Wemos ESP-WROOM-32

The full error and upload syntax is:

Sketch uses 274237 bytes (20%) of program storage space. Maximum is 1310720 bytes.
Global variables use 22704 bytes (6%) of dynamic memory, leaving 304976 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port /dev/cu.usbmodem56720061801
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: 64:b7:08:40:1b:38
Uploading stub...

A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out)
Failed uploading: uploading error: exit status 2

This is using the board manager DOIT ESP32 DEVKIT V1 which works fine on the Windows machine.

is it the correct port ? does it disappear if you unplug the Wemos?

Yes thats the correct port.

It detects the wemos when plugged in, when running the serial monitor it can see the code uploaded from the windows machine.

But when trying to upload it timesout.

do you go through an USB switch ?

Not a switch, but an adaptor, the mac only has usb-c ports so that's the only option at the moment.

My Apple designed adaptors always worked for me ... The fact that the Serial monitor works shows the cable is ok and the device properly seen and handled on the USB port.... so not sure what's going on.... Are you sure you picked the right board definition?

side note: you can find USB C to Micro USB cables (or other types of USB, even the bulky port for the UNO) so that's what I'm using nowadays

I have a new cable arriving tomorrow so hopefully that might cure the problem.

I've tried various boards, and all have the same results with the timeout error.

weird...

Just curious,
But does the uploading error have the same last few lines when you try with a different board?

The uploading error is the same each time, its strange it connects fine but times out not matter what settings. I've also tried adjust the upload speed without any difference.

Could you tell us the exact boards where you got that error?
All of them.
Have you installed the drivers?
Eg, ch340?

Boards tried:
WEMOS D1 MINI ESP32
ESP32 DEV MODULE
ESP32-WROOM-DA
DOIT ESP32 DEVKIT V1

It’s interesting that all of them are ESP-32s…….
Drivers?

Drivers are automatically installed with the macos usually, though I have also installed CH340 drivers as a test with no change in results

not sure that's the case for the ESP32

So finally some success, CP210 drivers from here: CP210x USB to UART Bridge VCP Drivers - Silicon Labs

This creates a wchusbserial connection rather than the usbmodem, and the code uploads without a problem.

Thanks for the help troubleshooting.

1 Like

Not all the time.
Good to hear that it’s working now.

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