First version of tumbller with esp32s3
- PlatformIO CLI. It works with the GUI too, which is based on the CLI. Only CLI documented as clear to explain and automate.
- A serial console like
cuon Linux-compatible systems, RealTerm and PuTTY on Windows, etc.
When your ESP32 board is connected to your development machine, a device file is created. We need to tell PlatformIO which file that is for working properly. It usually needs be done only once (per board!)
platformio device listThe command outputs a list of available devices. Example output:
/dev/cu.BLTH
------------
Hardware ID: n/a
Description: n/a
/dev/cu.Bluetooth-Incoming-Port
-------------------------------
Hardware ID: n/a
Description: n/a
/dev/cu.usbserial-D309JH4R
--------------------------
Hardware ID: USB VID:PID=0403:6015 SER=D309JH4R LOCATION=20-1.2
Description: FT231X USB UART - FT231X USB UARTIn this output, the device file turns out to be /dev/cu.usbserial-D309JH4R. On Windows, you usually get names like COM3.
Please copy this name and paste in inside platformio.ini file as the value for upload_port:
upload_port = /dev/cu.usbserial-D309JH4R
# Typically on Windows:
upload_port = COM3Assuming first-time settings are complete, building is:
platformio run(First run is long as the toolchain collects dependencies for the target board; way faster from the second time!)
Upload to the board: platformio run --target upload