Hi. I fear this will be very silly and simple, but am completely stuck!
Previously programmed several projects, using my older MacAir. Just got a new one and downloaded Arduino.
Any code, even File->Examples->Basic->Bareminimum (which is basically empty) compile fine, but won’t upload.
The LED on the ESP32866 board flashes when first connected, and the cable worked fine with the older computer and Arduino Uno boards, so i don’t think it’s the cable.
Error message says something about pyserial or esptools.
[Then it gives many errors of “Invalid Libraries” which refer to old programs stored in Dropbox. IS this because Arduino->Preferences has Sketch Locations set to ‘/Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino’? As this was a new download, I thought it should be some normal default, but somehow it knows about the old programs.]
The formal Error message is:
Arduino: 1.8.13 (Mac OS X), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200”
Executable segment sizes:
IROM : 228400 – code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26348 / 32768 – code in IRAM (ICACHE_RAM_ATTR, ISRs…)
DATA : 1248 ) – initialized variables (global, static) in RAM/HEAP
RODATA : 688 ) / 81920 – constants (global, static) in RAM/HEAP
BSS : 24840 ) – zeroed variables (global, static) in RAM/HEAP
Sketch uses 256684 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26776 bytes (32%) of dynamic memory, leaving 55144 bytes for local variables. Maximum is 81920 bytes.
pyserial or esptool directories not found next to this upload.py tool.
An error occurred while uploading the sketch
Invalid library found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Blind_control_9.1: no headers files (.h) found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Blind_control_9.1
Invalid library found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/testAnalogs: no headers files (.h) found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/testAnalogs
Invalid library found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/TestDigital: no headers files (.h) found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/TestDigital
Invalid library found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Blind_control_Test: no headers files (.h) found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Blind_control_Test
Invalid library found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Blind_control_9.3: no headers files (.h) found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Blind_control_9.3
Invalid library found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Blind_control_9.2: no headers files (.h) found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Blind_control_9.2
Invalid library found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Test_Trips: no headers files (.h) found in /Users/dnfharris/Dropbox/My Mac (MacBook-Air.local)/Documents/Arduino/libraries/Test_Trips
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Help please!!
I’m guessing you got an M1 MacBook Air with Big Sur. It appears that Big Sur broke Arduino but there is a workaround.
Yes, You’re correct. Never thought it would screw up all my Arduino!
Looking at the workaround, AFAIK I don’t have “Terminal” (which reminds me of awful Windows days). Also it seems mainly to be about Python, which I don’t use [but maybe it’s needed deep in Arduino or something?] as I prefer C.
I’ll try clicking on the https:// link, but it looks rather tricky!
I tried! Looked worryingly like deep in the bowels of Unix, but got as far as XCODE Command line tools being installed and it said
“Warning: /opt/homebrew/bin is not in your PATH.
==> Installation successful!”
But it looks as though I have to do something to a PATH but I’ve no idea where that is or what all this code is.
“==> Next steps:
– Add Homebrew to your PATH in /Users/dnfharris/.bash_profile:
echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”‘ >> /Users/dnfharris/.bash_profile
eval “$(/opt/homebrew/bin/brew shellenv)”
– Run `brew help` to get started
– Further documentation:
https://docs.brew.sh”
I did try to past in the next line in the workaround but it said “-bash: brew: command not found”, presumably ‘cos I haven’t sorted the PATH?
MacOS is built on top of Linux. You obviously found the Terminal app. That first eval should add home brew to your path. It may just be that you need to quit out of terminal and go back in for it to take effect.
I quit Terminal, re-opened it and it said
“The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.” so I did that.
Then tried to run
brew install –build-from-source python and it still says
“-bash: brew: command not found”
Is there any likelihood that Arduino can be patched, or is it Big Sur that has to be patched?
Inching my way there!
Found how to alter the LINUX PATH, and then could run brew.
But where is the file
- Open this file: /Users/yourusername/Library/Arduino15/packages/esp32/hardware/esp32/1.0.2/platform.txt and change the line that says “tools.esptool_py.cmd=esptool” to “tools.esptool_py.cmd=esptool.py”
A search on my hard drive can’t find anything with Arduino15, hardware/esp32 or esptool.py
Users/dnfharris/ doesn’t have a Library folder.
Arduino application (1.8.13) seems to be in Dropbox/Documents, from Jun 2020, even though I recently downloaded it. It seems to go where it think it wants to! I don’t understand why it isn’t in Applications.