NINA-W1 series - System integration manual
UBX-17005730 - R15
Software
Page 22 of 54
C1 - Public
cd %userprofile%\esp\esp-idf
install.bat esp32
%userprofile%\esp\esp-idf\export.bat
For the latest Espressif SDK documentation, see also reference [8]. This URL provides information on
how to set up the software environment using the hardware based on the Espressif ESP32, such as
NINA-W10. This resource also describes how to use the latest ESP-IDF (Espressif IoT Development
Framework) – which might have been changed since the publication of this document.
Use the following workflow setup to compile, flash, and execute a program on NINA-W10:
1.
Setup Toolchain and ESP-IDF v4 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 [17].
2.5.1
Set up Toolchain and ESP-IDF v4 source files
☞
ESP-IDF v4 is mandatory for NINA-W106.
Follow the appropriate toolchain instructions to use ESP-IDF v4 for your development environment:
•
•
•
Pip, homebrew and other macros
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
Building and flashing the examples in the ESP-IDF v4 is done in the same way as it is for ESP-IDF v3,
but rather than using
make
the
idf.py
script is invoked instead. Generally, the same command-line
parameters apply with the following caveats:
☞
NINA-W106 modules with prototype status: On NINA-W106 prototype modules, it may be
necessary to add the
--no-stub
parameter to the
esptool.py
command when flashing the
software. This parameter makes a manual verification of the software using a second invocation
of
esptool.py
in case the flashing and verification procedure fails.
2.5.2
Setup path to ESP-IDF
The
Toolchain and ESP-IDF v4 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.