PlatformIO does not find ESP32 and the board blinks only RBG

SepiTre
Posts: 1
Joined: Tue Jul 26, 2022 5:10 pm

PlatformIO does not find ESP32 and the board blinks only RBG

Postby SepiTre » Tue Jul 26, 2022 6:23 pm

Hi,

I am a noobie when we talk about ESP32 and did face a problem. I have used multiple hours to debug the problem, PlatformIO does not find the the board. It only does blink red, blue and green. I have installed needed drivers and used following command to check everything is okay "ls /dev | grep tt". I am wondering what is wrong ? I am using MacBook M1 Monterey 12.4


Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards ... tlipo.html
PLATFORM: Espressif 32 (5.0.0) > OLIMEX ESP32-DevKit-LiPo
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20003.220626 (2.0.3)
- tool-esptoolpy @ 1.30300.0 (3.3.0)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 32 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Retrieving maximum program size .pio/build/esp32-devkitlipo/firmware.elf
Checking size .pio/build/esp32-devkitlipo/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 5.0% (used 16396 bytes from 327680 bytes)
Flash: [== ] 18.0% (used 235589 bytes from 1310720 bytes)
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Using manually specified: /dev/cu.usbmodem1401
Uploading .pio/build/esp32-devkitlipo/firmware.bin
esptool.py v3.3
Serial port /dev/cu.usbmodem1401
Traceback (most recent call last):
File "/Users/sepi/.platformio/penv/lib/python3.9/site-packages/serial/serialposix.py", line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/cu.usbmodem1401'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/sepi/.platformio/packages/tool-esptoolpy/esptool.py", line 5387, in <module>
_main()
File "/Users/sepi/.platformio/packages/tool-esptoolpy/esptool.py", line 5380, in _main
main()
File "/Users/sepi/.platformio/packages/tool-esptoolpy/esptool.py", line 4687, in main
esp = esp or get_default_connected_device(ser_list, port=args.port, connect_attempts=args.connect_attempts,
File "/Users/sepi/.platformio/packages/tool-esptoolpy/esptool.py", line 114, in get_default_connected_device
_esp = chip_class(each_port, initial_baud, trace)
File "/Users/sepi/.platformio/packages/tool-esptoolpy/esptool.py", line 320, in __init__
self._port = serial.serial_for_url(port)
File "/Users/sepi/.platformio/penv/lib/python3.9/site-packages/serial/__init__.py", line 90, in serial_for_url
instance.open()
File "/Users/sepi/.platformio/penv/lib/python3.9/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 2] could not open port /dev/cu.usbmodem1401: [Errno 2] No such file or directory: '/dev/cu.usbmodem1401'
*** [upload] Error 1
============================================================= [FAILED] Took 1.57 seconds =============================================================

* The terminal process "platformio 'run', '--target', 'upload'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Who is online

Users browsing this forum: No registered users and 86 guests