esp:esp32:esp-idf:startproject
Differences
This shows you the differences between two versions of the page.
| esp:esp32:esp-idf:startproject [2020/04/13 11:17] – created oscar | esp:esp32:esp-idf:startproject [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Start a Project ====== | ||
| - | ===== Copy Sample ===== | ||
| - | Now you are ready to prepare your application for ESP32. You can start with get-started/ | ||
| - | Linux and macOS | ||
| - | |||
| - | cd ~/ | ||
| - | cp -r $IDF_PATH/ | ||
| - | |||
| - | ===== Configure ===== | ||
| - | This is a one time initial setup for a new project. Navigate to the project directory. Set ESP32 chip as the target and run the project configuration utility menuconfig. | ||
| - | |||
| - | cd ~/ | ||
| - | idf.py set-target esp32 | ||
| - | idf.py menuconfig | ||
| - | |||
| - | Setting the target with idf.py set-target {IDF_TARGET} should be done once, after opening a new project. If the project contains some existing builds and configuration, | ||
| - | |||
| - | ===== Build ===== | ||
| - | 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, partition table, and application binaries. | ||
| - | < | ||
| - | $ idf.py build | ||
| - | Running cmake in directory / | ||
| - | Executing "cmake -G Ninja --warn-uninitialized / | ||
| - | Warn about uninitialized values. | ||
| - | -- Found Git: / | ||
| - | -- 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: | ||
| - | ../ | ||
| - | or run ' | ||
| - | </ | ||
| - | If there are no errors, the build will finish by generating the firmware binary .bin file. | ||
| - | |||
| - | ===== Flash ===== | ||
| - | Flash the binaries that you just built onto your ESP32 board by running: | ||
| - | |||
| - | idf.py -p PORT [-b BAUD] flash | ||
| - | |||
| - | Replace PORT with your ESP32 board’s serial port name from Step 6. 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. | ||
| - | |||
| - | |||
| - | |||
esp/esp32/esp-idf/startproject.1586776650.txt.gz · Last modified: (external edit)
