Step 8. Build The Project; Step 9. Flash Onto The Device - Espressif ESP32-S2 Programming Manual

Table of Contents

Advertisement

Chapter 1. Get Started

1.12 Step 8. Build the Project

Build the project by running:
idf.py build
This command will compile the application and all ESP-IDF components, then it will generate the bootloader, par-
tition table, and application binaries.
$ idf.py build
Running cmake in directory /path/to/hello_world/build
Executing "cmake -G Ninja --warn-uninitialized /path/to/hello_world"...
Warn about uninitialized values.
-- Found Git: /usr/bin/git (found version "2.17.0")
-- Building empty aws_iot component due to configuration
-- Component names: ...
-- Component paths: ...
... (more lines of build system output)
[527/527] Generating hello_world.bin
esptool.py v2.3.1
Project build complete. To flash, run this command:
../../../components/esptool_py/esptool/esptool.py -p (PORT) -b 921600 write_flash -
-flash_mode dio --flash_size detect --flash_freq 40m 0x10000 build/hello_world.
bin
build 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/
partition-table.bin
or run 'idf.py -p PORT flash'
If there are no errors, the build will finish by generating the firmware binary .bin files.

1.13 Step 9. Flash onto the Device

Flash the binaries that you just built (bootloader.bin, partition-table.bin and hello_world.bin) onto your ESP32-S2
board by running:
Espressif Systems
Fig. 50: Project configuration - Home window
66
Submit Document Feedback
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF