User's Manual

2 Get Started on ESP32-C3-MINI-1U
12
[527/527] Generating hello-world.bin
13 esptool.py v2.3.1
14
15 Project build complete. To flash, run this command:
16 ../../../components/esptool_py/esptool/esptool.py -p (PORT) -b 921600 write_flash --flash_
mode dio
17 --flash_size detect --flash_freq 40m 0x10000 build/hello-world.bin build 0x1000
18 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin
19 or run ’idf.py -p PORT flash’
If there are no errors, the build will finish by generating the firmware binary .bin file.
2.4.5 Flash onto the Device
Flash the binaries that you just built onto your ESP32-C3-MINI-1U module by running:
1 idf.py -p PORT [-b BAUD] flash
Replace PORT with your module‘s serial port name from Step: Connect Your Device.
You can also change the flasher baud rate by replacing BAUD with the baud rate you need. The default baud rate
is 460800.
For more information on idf.py arguments, see idf.py.
Note:
The option ‘flash‘ automatically builds and flashes the project, so running ‘idf.py build‘ is not necessary.
1 ...
2 esptool.py --chip esp32c3 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after
=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x
8000 partition_table/partition-table.bin 0x0 bootloader/bootloader.bin 0x10000
hello-world.bin
3 esptool.py v3.0
4 Serial port /dev/ttyUSB0
5 Connecting....
6 Chip is ESP32-C3
7 Features: Wi-Fi
8 Crystal is 40MHz
9 MAC: 7c:df:a1:40:02:a4
10 Uploading stub...
11 Running stub...
12 Stub running...
13 Changing baud rate to 460800
14 Changed.
15 Configuring flash size...
16 Compressed 3072 bytes to 103...
17 Writing at 0x00008000... (100 %)
18 Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 4238.1
kbit/s)...
19 Hash of data verified.
Espressif Systems 11 ESP32-C3-MINI-1U User Manual v0.1