Hello all,
Even though there are many ESP32 type boards available on the IDE I've yet been able to download anything onto any of my ESP32 boards. I'm sure there is a reason why these boards are "locked out" for me but I don't know why. FYI - correct board is attached and correct listed board are the same.
Have you installed the ESP-32 cores?
I downloaded something, I can't remember what, then all of the ESP boards were listed. Before my download there weren't any listed. Does this sound correct?
Not sure...
I think you installed the core properly.
Install drivers.
@ptillisch
I just checked and drivers ARE installed. Hmmm
Please explain what "locked out" means. Don't you see them in the IDE? If so, do you see them in your operating system (e.g. device manager in Windows, lsusb in Linux, still no idea about a Mac)? Which operating system?
If you do see the board in the IDE, what is the error that you get when you try to upload?
Error compiling for board ESPXX (any ESP board really). I have no issues compiling and uploading to any Arduino or Teensy board. Same simple code BTW.
Hi @fredebear. I'm going to ask you to post the full error message you get when compiling for the ESP32 board.
NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.
Please do this:
- Attempt to compile a sketch for the ESP32 board, just as you did before.
- Wait for the compilation to fail.
- You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
- Open a forum reply here by clicking the Reply button.
- 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.
- Press Ctrl+V.
This will paste the compilation output into the code block. - Move the cursor outside of the code tags before you add any additional text to your reply.
- Click the Reply button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt
file and then attach that file to a reply here:
- Open any text editor program.
- Paste the copied output into the text editor.
- Save the file in
.txt
format. - Open a forum reply here by clicking the Reply button.
- Click the "Upload" icon (
) on the post composer toolbar:
- Select the
.txt
file you saved. - Click the Open button.
- Click the Reply button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt
file onto the post composer field to attach it.
FYI: if you are on a Mac go to the app System Information then go to usb.
Now you have that info.
I tried both ways and each way got terminated
Could you post the errors?
Like @ptillisch suggested?
It will help us help you.
I did but apparently it didn't work. Here's another attempt.
Errors.txt (1.1 MB)
Here are the important parts of the output from the Errors.txt
file @fredebear shared:
Arduino: 1.8.19 (Mac OS X), TD: 1.56, Board: "Adafruit Metro ESP32-S2, Enabled, Disabled, Disabled, Internal USB, Enabled, TinyUF2 4MB (1.3MB APP/960KB FFAT), 240MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 921600, None, Disabled"
/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/hardware -hardware /Users/alfredolivas/Library/Arduino15/packages -tools /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/tools-builder -tools /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/hardware/tools/avr -tools /Users/alfredolivas/Library/Arduino15/packages -built-in-libraries /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/libraries -libraries /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries -fqbn=esp32:esp32:adafruit_metro_esp32s2:CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=cdc,PSRAM=enabled,PartitionScheme=tinyuf2,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none,EraseFlash=none -ide-version=10819 -build-path /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_147958 -warnings=none -build-cache /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_cache_884936 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.openocd-esp32.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026 -prefs=runtime.tools.openocd-esp32-v0.11.0-esp32-20221026.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.riscv32-esp-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.mkspiffs.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.mklittlefs.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.esptool_py.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1 -prefs=runtime.tools.esptool_py-4.5.1.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1 -verbose /Users/alfredolivas/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/libraries/ESP32/examples/AnalogOut/LEDCSoftwareFade/LEDCSoftwareFade.ino
/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/hardware -hardware /Users/alfredolivas/Library/Arduino15/packages -tools /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/tools-builder -tools /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/hardware/tools/avr -tools /Users/alfredolivas/Library/Arduino15/packages -built-in-libraries /private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/libraries -libraries /Users/alfredolivas/Desktop/Arduino/Sketchbook/libraries -fqbn=esp32:esp32:adafruit_metro_esp32s2:CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=cdc,PSRAM=enabled,PartitionScheme=tinyuf2,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none,EraseFlash=none -ide-version=10819 -build-path /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_147958 -warnings=none -build-cache /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_cache_884936 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.openocd-esp32.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026 -prefs=runtime.tools.openocd-esp32-v0.11.0-esp32-20221026.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.11.0-esp32-20221026 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.riscv32-esp-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.mkspiffs.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-esp-2021r2-patch5-8.4.0.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/esp-2021r2-patch5-8.4.0 -prefs=runtime.tools.mklittlefs.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.esptool_py.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1 -prefs=runtime.tools.esptool_py-4.5.1.path=/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1 -verbose /Users/alfredolivas/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7/libraries/ESP32/examples/AnalogOut/LEDCSoftwareFade/LEDCSoftwareFade.ino
Using board 'adafruit_metro_esp32s2' from platform in folder: /Users/alfredolivas/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7
Using core 'esp32' from platform in folder: /Users/alfredolivas/Library/Arduino15/packages/esp32/hardware/esp32/2.0.7
/Users/alfredolivas/Library/Arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool --chip esp32s2 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB --elf-sha256-offset 0xb0 -o /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_147958/LEDCSoftwareFade.ino.bin /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/arduino_build_147958/LEDCSoftwareFade.ino.elf
[1634] Error loading Python lib '/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/_MEIP9X9Dc/libpython3.8.dylib': dlopen: dlopen(/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/_MEIP9X9Dc/libpython3.8.dylib, 10): Library not loaded: @loader_path/libintl.8.dylib
Referenced from: /var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/_MEIP9X9Dc/libpython3.8.dylib
Reason: no suitable image found. Did find:
/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/_MEIP9X9Dc/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/_MEIP9X9Dc/libintl.8.dylib: cannot load 'libintl.8.dylib' (load command 0x80000034 is unknown)
exit status 255
/private/var/folders/5c/6t7s01sn4db00kncp3sf1wpr0000gn/T/AppTranslocation/B29851A3-374B-4702-8E75-3B3DF29A4857/d/Arduino 3.app/Contents/Java/arduino-builder returned 255
Error compiling for board Adafruit Metro ESP32-S2.
@fredebear which version of macOS do you have installed on your computer?
My research indicates this error is caused by using an old version of macOS that is not compatible with the build of the esptool tool that is used to upload sketches to ESP32 boards.
Thank you very much for bringing clarity to me. Because I can not install a more recent version of iMac iOS software (High Sierra is what is installed) then I must abandon any notion of delving into the ESP33 field using the Arduino IDE. Interestingly a program called WLED works without issue on my iMac/ESP32 projects.
open the IDE with no boards connected
Tools <>> Boards >> Board Manager >> select your board
Tools >> Ports >> note the open ports
connect to the ESP.
Tools >> Ports >> note the new open port
connect to that port
open the Serial Monitor at 115,200
clear output.
press reset on the ESP.
if you see a wall of English language words and gobbledygook. you're in.
the new port may be ACM0, or AMA0, or TTYUSB0, or the same but ending with 1. they may be different on the same model of ESP32.
Not necessarily. There are two possible workarounds for this problem. I'll describe both of them to you and you can chose whichever one you prefer:
Roll back to an older ESP32 platform
Older versions of the ESP32 boards platform are compatible with older versions of macOS. You can use the Arduino IDE Boards Manager to easily install any version of the ESP32 boards platform so it is simple to install the older compatible version.
I'll provide instructions you can follow to do that:
- Select Tools > Board > Boards Manager from the Arduino IDE menus.
The "Boards Manager" dialog will open. - Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
- Scroll down through the list of boards platforms until you find the "esp32 by Espressif Systems" entry. Click on it.
A "Select version" menu will appear in the entry. - Select "1.0.6" from the "Select version" menu.
ⓘ I believe 1.0.6 is the newest version that is still compatible with macOS High Sierra. - Click the "Install" button in the "esp32 by Espressif Systems" entry.
- Wait for the installation to finish.
- Click the "Close" button on the "Boards Manager" dialog.
By default, Arduino IDE periodically checks for newer versions of your installed boards platforms and offers to update them if a newer version is found. You'll need to refrain from updating back to the newer version of the "esp32 by Espressif Systems" platform. If you are bothered by these update offers, you can disable them. I'll provide instructions you can follow to do that:
- Select File > Preferences... from the Arduino IDE menus.
The "Preferences" dialog will open. - Uncheck the box next to "
☑
Check for updates on startup in the "Preferences" dialog. - Click the "OK" button
This will also disable notifications for newer versions of other boards platforms and libraries that you do want to keep updated.
So make sure to periodically check for newer versions of your other installed platforms in Boards Manager (Tools > Board > Boards Manager) and your other installed libraries in Library Manager (Sketch > Include Library > Manage Libraries...).
Rebuild esptool
The reason the esptool installed with the ESP32 boards platform is not compatible with older versions of macOS is because it was built on a machine that is running the newer macOS version. This means that if you manually build esptool on your own computer then that build will be compatible with your macOS version. You can then replace the esptool
executable that was installed with the platform with your own compatible build.
The advantage of this workaround over the alternative of rolling back to the older ESP32 platform version is it allows you to use the latest version of the ESP32 boards platform which contains fixes and improvements and expanded capabilities compared to older versions.
This is an advanced endeavor, but if you are interested in giving it a try, there are instructions for doing so here:
https://github.com/espressif/arduino-esp32/issues/5639#issuecomment-1023906143
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.