
NORA-W10 series - System integration manual
UBX-22005601 - R04
Software
Page 30 of 56
C1-Public
Use the following workflow setup to compile, flash, and execute a program on NORA-W10:
1.
Set up Toolchain and ESP-IDF v4.4 source files
Windows, Mac, and Linux are supported.
2.
Get ESP-IDF. Download the GIT repository provided by Espressif
3.
. The toolchain program can access the ESP-IDF using the
IDF_PATH
environment variable
4.
. Start a Project, Connect, Configure, Build and Flash a program.
See also the ESP-IDF Programming Guide
4.2.1
Set up Toolchain and ESP-IDF v4.4 source files
☞
ESP-IDF v4.4+ is mandatory for NORA-W101 and NORA-W106.
Follow the appropriate toolchain instructions to use ESP-IDF v4.4 for your development environment:
•
•
Linux and macOS
After installing the appropriate toolchain, install ESP-IDF using the
Espressif web site. The toolchain for the ESP-IDF uses the
IDF_PATH
environment variable, which must
be set up to build the toolchain projects.
☞
The source files for Espressif ESP-IDF repository are located on GitHub at:
https://github.com/espressif/esp-idf
4.2.2
Setup path to ESP-IDF
Set up Toolchain and ESP-IDF v4.4 source files
include the resources to install all the required
tools. If you want to install the tools without the help of ESP-IDF Tools Installer, open the Command
Prompt in Windows and use the following commands. The toolchain for the ESP-IDF uses the
IDF_PATH
environment variable. This variable must be set up for building the projects.
%userprofile%\esp\esp-idf\export.bat
cd %userprofile%\esp\esp-idf\install.bat esp32s3
4.2.3
Build and flash
The environment is now ready to build and flash a project. Use the following procedure to build a
sample project. This project prints out “Hello World” ten times on the UART and then reboots.
1.
Build the sample project. Go to the “hello world” folder using the following command:
cd examples/get-started/hello_world
2.
Plug in NORA-W10 to the PC and note down the com port number with which it is connected. In
this example, the com port number is assumed to be “COM10”.
3.
Enter “
idf.py menuconfig
” to open the ESP
-IDF configuration window.
4.
In the ESP-IDF configuration window, select and modify the configuration options to suit your
environment.
idf.py set-target esp32s3
idf.py menuconfig