Select to expand quote
shannon19 said.. Yeah I had the same problem but I was using Linux. I ended up getting a friend to flash the board for me with windows and the Espressif program.
Someone on here did have command line code to flash the board but the message has been lost on my account sorry.
And you passed it onto me, and I still have this, hope it helps. Although it does look complicated, good luck -----
Sharons instructions on Manjarro #####= My stuff
I think i have got the Arduino 1.8.19 development environment working on Manjaro Linux. I followed this walk through. i didn't have to install any kernel drivers as i think the have been mainlined.
randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-mac-and-linux-instructions/
in step 2 i selected ESP32 Dev Module.
It came up with a couple of errors before working. I googled the and found a couple of terminal commands to solve the problem.
the first error i got was
ModuleNotFoundError: No module named 'serial'
I had to install pip.
sudo pacman -Syu python-pip
#### sudo apt install python3-venv python3-pip
then install pyserial.
pip3 install pyserial
###### WARNING: The scripts pyserial-miniterm and pyserial-ports are installed in '/home/decrepit/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
###### after compiling arduino OTA
exec: "python": executable file not found in $PATH
Compilation error: exec: "python": executable file not found in $PATH
the second error was
A fatal error occurred: Could not open /dev/ttyACM0, the port doesn't exist
I had to change permissions on the port. (It looks like this command didn't survive a reboot so need to run it every time.)
sudo chmod a+rw /dev/ttyACM0
the WIFI scan worked after i did this. I'll try and flash the board in the morning.
#### Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 768462 bytes (58%) of program storage space. Maximum is 1310720 bytes.
Global variables use 40776 bytes (12%) of dynamic memory, leaving 286904 bytes for local variables. Maximum is 327680 bytes.
Traceback (most recent call last):
esptool.py v3.0-dev
File "/app/lib/python3.10/site-packages/serial/serialposix.py", line 322, in open
Serial port /dev/ttyACM0
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 13] Permission denied: '/dev/ttyACM0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/decrepit/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 3682, in
_main()
File "/home/decrepit/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 3675, in _main
main()
File "/home/decrepit/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 3329, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "/home/decrepit/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 263, in __init__
self._port = serial.serial_for_url(port)
File "/app/lib/python3.10/site-packages/serial/__init__.py", line 90, in serial_for_url
instance.open()
File "/app/lib/python3.10/site-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
the selected serial port serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
does not exist or your board is not connected
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
enabled PSRAM, ran sudo chmod a+rw /dev/ttyACM0
Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Enabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"