User's Manual
6. Build and Flash
Now you can build and flash the application. Run:
This will compile the application and all the ESP-IDF components, generate
bootloader, partition table, and application binaries, and flash these binaries to your
ESP32 board.
$idf.pybuild
Runningcmakeindirectory/path/to/hello_world/build
Executing"cmake-GNinja--warn-uninitialized/path/to/hello_world"...
Warnaboutuninitializedvalues.
--FoundGit:/usr/bin/git(foundversion"2.17.0")
--Buildingemptyaws_iotcomponentduetoconfiguration
--Componentnames:...
--Componentpaths:...
...(morelinesofbuildsystemoutput)
[527/527]Generatinghello-world.bin
esptool.pyv2.3.1
Projectbuildcomplete.Toflash,runthiscommand:
../../../components/esptool_py/esptool/esptool.py-p(PORT)-b921600write_flash--
flash_modedio--flash_sizedetect--flash_freq40m0x10000build/hello-world.bin
build0x1000build/bootloader/bootloader.bin0x8000build/partition_table/partition-
table.bin
orrun'idf.py-pPORTflash'
If there are no issues, at the end of build process, you should see generated .bin files.
idf.pybuild