Regarding esp_adf

Embel.Tech
Posts: 13
Joined: Tue Mar 03, 2020 5:26 am

Regarding esp_adf

Postby Embel.Tech » Tue Mar 03, 2020 5:37 am

Hello Forum,
I need help on setting path of esp_adf in system.
On this link
https://docs.espressif.com/projects/esp ... ut-esp-adf
all the details given, but on this point "Setup Path to ESP-ADF" it's little bit confusing
the detailed description under this point is
"The toolchain programs access ESP-ADF using ADF_PATH environment variable. This variable should be set up on your PC, otherwise the projects will not build. The process to set it up is analogous to setting up the IDF_PATH variable, please see instructions in ESP-IDF documentation under Add IDF_PATH to User Profile."
To set IDF path two file are there install.bat and export.bat, this will set IDF path.

But what about ADF?
How to do that? These two file are not present there.
Guys help me out.
Thank you.

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: Regarding esp_adf

Postby ESP_krzychb » Tue Mar 03, 2020 4:46 pm

Hello Embel.Tech,

ESP-ADF is based on ESP-IDF v3.3.1.
For ESP-IDF related setup please refer to v3.3.1 docs under https://docs.espressif.com/projects/esp ... index.html.
You may need to redo your toolchain setup following v3.3.1 docs.
I will fix ESP-IDF links in ESP-ADF documentation including link to setting up IDF_PATH variable.
Sorry for confusion!

I have moved this topic to ESP32 ADF forum.

Embel.Tech
Posts: 13
Joined: Tue Mar 03, 2020 5:26 am

Re: Regarding esp_adf

Postby Embel.Tech » Wed Mar 04, 2020 6:13 am

Thank you ESP_krzychb for quick responce.
Here i got error while building application play_mp3

C:\Users\Embedded\Desktop\esp\esp-adf\examples\get-started\play_mp3>idf.py build
Executing action: all (aliases: build)
Running cmake in directory c:\users\embedded\desktop\esp\esp-adf\examples\get-started\play_mp3\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 c:\users\embedded\desktop\esp\esp-adf\examples\get-started\play_mp3"...
Warn about uninitialized values.
CMake Warning (dev) at CMakeLists.txt:5 (include):
uninitialized variable 'ADF_PATH'
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:5 (include):
include could not find load file:

/CMakeLists.txt


-- Found Git: C:/Program Files/Git/bin/git.exe (found version "2.25.1.windows.1")
-- Unexpected file in components directory: C:/Users/Embedded/Desktop/esp/esp-idf/components/.gitkeep
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Embedded/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/Embedded/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/Embedded/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Users/Embedded/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/Embedded/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
warning: the default selection SR_RUN_WM6_CORE1 (undefined) of <choice SR_RUN_WN6_CORE> (defined at C:/Users/Embedded/Desktop/esp/esp-idf/components/esp-sr/Kconfig.projbuild:83) is not contained in the choice
warning: the default selection CONFIG_SR_MN1_MODEL_QUANT (undefined) of <choice SR_MN_MODEL_SEL> (defined at C:/Users/Embedded/Desktop/esp/esp-idf/components/esp-sr/Kconfig.projbuild:100) is not contained in the choice
-- App "play_mp3" version: v2.0-beta2-21-g30403e2-dirty
-- Found PythonInterp: C:/Users/Embedded/.espressif/python_env/idf4.2_py2.7_env/Scripts/python.exe (found version "2.7.12")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-adf/examples/get-started/play_mp3/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs-time.ld
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Current board name is CONFIG_ESP_LYRAT_V4_3_BOARD
-- Components: adf_utils app_trace app_update asio audio_board audio_hal audio_pipeline audio_sal audio_stream bluetooth_service bootloader bootloader_support bt cbor clouds coap console cxx display_service driver dueros_service efuse esp-adf-libs esp-sr esp-tls esp32 esp_actions esp_adc_cal esp_common esp_dispatcher esp_eth esp_event esp_gdbstub esp_http_client esp_http_server esp_https_ota esp_https_server esp_local_ctrl esp_netif esp_peripherals esp_ringbuf esp_rom esp_serial_slave_link esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test input_key_service jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon playlist protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter ulp unity vfs wear_levelling wifi_provisioning wifi_service wpa_supplicant xtensa
-- Component paths: C:/Users/Embedded/Desktop/esp/esp-idf/components/adf_utils C:/Users/Embedded/Desktop/esp/esp-idf/components/app_trace C:/Users/Embedded/Desktop/esp/esp-idf/components/app_update C:/Users/Embedded/Desktop/esp/esp-idf/components/asio C:/Users/Embedded/Desktop/esp/esp-idf/components/audio_board C:/Users/Embedded/Desktop/esp/esp-idf/components/audio_hal C:/Users/Embedded/Desktop/esp/esp-idf/components/audio_pipeline C:/Users/Embedded/Desktop/esp/esp-idf/components/audio_sal C:/Users/Embedded/Desktop/esp/esp-idf/components/audio_stream C:/Users/Embedded/Desktop/esp/esp-idf/components/bluetooth_service C:/Users/Embedded/Desktop/esp/esp-idf/components/bootloader C:/Users/Embedded/Desktop/esp/esp-idf/components/bootloader_support C:/Users/Embedded/Desktop/esp/esp-idf/components/bt C:/Users/Embedded/Desktop/esp/esp-idf/components/cbor C:/Users/Embedded/Desktop/esp/esp-idf/components/clouds C:/Users/Embedded/Desktop/esp/esp-idf/components/coap C:/Users/Embedded/Desktop/esp/esp-idf/components/console C:/Users/Embedded/Desktop/esp/esp-idf/components/cxx C:/Users/Embedded/Desktop/esp/esp-idf/components/display_service C:/Users/Embedded/Desktop/esp/esp-idf/components/driver C:/Users/Embedded/Desktop/esp/esp-idf/components/dueros_service C:/Users/Embedded/Desktop/esp/esp-idf/components/efuse C:/Users/Embedded/Desktop/esp/esp-idf/components/esp-adf-libs C:/Users/Embedded/Desktop/esp/esp-idf/components/esp-sr C:/Users/Embedded/Desktop/esp/esp-idf/components/esp-tls C:/Users/Embedded/Desktop/esp/esp-idf/components/esp32 C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_actions C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_adc_cal C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_common C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_dispatcher C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_eth C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_event C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_gdbstub C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_http_client C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_http_server C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_https_ota C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_https_server C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_local_ctrl C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_netif C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_peripherals C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_ringbuf C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_rom C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_serial_slave_link C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_timer C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_websocket_client C:/Users/Embedded/Desktop/esp/esp-idf/components/esp_wifi C:/Users/Embedded/Desktop/esp/esp-idf/components/espcoredump C:/Users/Embedded/Desktop/esp/esp-idf/components/esptool_py C:/Users/Embedded/Desktop/esp/esp-idf/components/expat C:/Users/Embedded/Desktop/esp/esp-idf/components/fatfs C:/Users/Embedded/Desktop/esp/esp-idf/components/freemodbus C:/Users/Embedded/Desktop/esp/esp-idf/components/freertos C:/Users/Embedded/Desktop/esp/esp-idf/components/heap C:/Users/Embedded/Desktop/esp/esp-idf/components/idf_test C:/Users/Embedded/Desktop/esp/esp-idf/components/input_key_service C:/Users/Embedded/Desktop/esp/esp-idf/components/jsmn C:/Users/Embedded/Desktop/esp/esp-idf/components/json C:/Users/Embedded/Desktop/esp/esp-idf/components/libsodium C:/Users/Embedded/Desktop/esp/esp-idf/components/log C:/Users/Embedded/Desktop/esp/esp-idf/components/lwip C:/Users/Embedded/Desktop/esp/esp-adf/examples/get-started/play_mp3/main C:/Users/Embedded/Desktop/esp/esp-idf/components/mbedtls C:/Users/Embedded/Desktop/esp/esp-idf/components/mdns C:/Users/Embedded/Desktop/esp/esp-idf/components/mqtt C:/Users/Embedded/Desktop/esp/esp-idf/components/newlib C:/Users/Embedded/Desktop/esp/esp-idf/components/nghttp C:/Users/Embedded/Desktop/esp/esp-idf/components/nvs_flash C:/Users/Embedded/Desktop/esp/esp-idf/components/openssl C:/Users/Embedded/Desktop/esp/esp-idf/components/partition_table C:/Users/Embedded/Desktop/esp/esp-idf/components/perfmon C:/Users/Embedded/Desktop/esp/esp-idf/components/playlist C:/Users/Embedded/Desktop/esp/esp-idf/components/protobuf-c C:/Users/Embedded/Desktop/esp/esp-idf/components/protocomm C:/Users/Embedded/Desktop/esp/esp-idf/components/pthread C:/Users/Embedded/Desktop/esp/esp-idf/components/sdmmc C:/Users/Embedded/Desktop/esp/esp-idf/components/soc C:/Users/Embedded/Desktop/esp/esp-idf/components/spi_flash C:/Users/Embedded/Desktop/esp/esp-idf/components/spiffs C:/Users/Embedded/Desktop/esp/esp-idf/components/tcp_transport C:/Users/Embedded/Desktop/esp/esp-idf/components/tcpip_adapter C:/Users/Embedded/Desktop/esp/esp-idf/components/ulp C:/Users/Embedded/Desktop/esp/esp-idf/components/unity C:/Users/Embedded/Desktop/esp/esp-idf/components/vfs C:/Users/Embedded/Desktop/esp/esp-idf/components/wear_levelling C:/Users/Embedded/Desktop/esp/esp-idf/components/wifi_provisioning C:/Users/Embedded/Desktop/esp/esp-idf/components/wifi_service C:/Users/Embedded/Desktop/esp/esp-idf/components/wpa_supplicant C:/Users/Embedded/Desktop/esp/esp-idf/components/xtensa
-- Configuring incomplete, errors occurred!
See also "C:/Users/Embedded/Desktop/esp/esp-adf/examples/get-started/play_mp3/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

Embel.Tech
Posts: 13
Joined: Tue Mar 03, 2020 5:26 am

Re: Regarding esp_adf

Postby Embel.Tech » Thu May 07, 2020 12:53 pm

Hello ESP_krzychb,

Have you fixed ESP-IDF links in ESP-ADF documentation including link to setting up IDF_PATH variable??

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: Regarding esp_adf

Postby ESP_krzychb » Thu May 07, 2020 6:58 pm

Hello Embel.Tech,

Yes, the links have been fixed.

I saw you other post regarding setting ADF_PATH.
To be able to use ESP-ADF you need first complete configuration and testing of ESP-IDF 3.3.1 up to and including step Monitor.
Only then it has sense to move to using ESP-ADF.

Are you able to successfully compile, load and run hello_word example in ESP-IDF?

EDIT> Seeing logs in you previous post above it looks to me that you have installed a newer version of ESP-IDF.

Embel.Tech
Posts: 13
Joined: Tue Mar 03, 2020 5:26 am

Re: Regarding esp_adf

Postby Embel.Tech » Fri May 08, 2020 9:21 am

Yes i am completely able run esp-idf with hello world with monitor as well blink program with led blink

Embel.Tech
Posts: 13
Joined: Tue Mar 03, 2020 5:26 am

Re: Regarding esp_adf

Postby Embel.Tech » Fri May 08, 2020 9:25 am

C:\ESP>git describe --tags --dirty
v3.3.1-dirty

This version i am using

using install.bat and export.bat i am able to set IDF path.
now for ADF how to do
please define it steps by step.
my project is stuck due to this.
Please get me out of this.
Thank you

Embel.Tech
Posts: 13
Joined: Tue Mar 03, 2020 5:26 am

Re: Regarding esp_adf

Postby Embel.Tech » Fri May 08, 2020 11:58 am

C:\ESP>export C:\ESP\esp-adf
Setting IDF_PATH: C:\ESP

Adding ESP-IDF tools to PATH...
No directories added to PATH:

C:\Users\DELL-PC LAPTOP ---\.espressif\tools\xtensa-esp32s2-elf\esp-2019r2-8.2.0\xtensa-esp32s2-elf\bin;C:\Users\DELL-PC LAPTOP ---\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin;C:\Users\DELL-PC LAPTOP ---\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin;C:\Users\DELL-PC LAPTOP ---\.espressif\tools\cmake\3.13.4\bin;C:\Users\DELL-PC LAPTOP ---\.espressif\tools\openocd-esp32\v0.10.0-esp32-20191114\openocd-esp32\bin;C:\Users\DELL-PC LAPTOP ---\.espressif\tools\ninja\1.9.0\;C:\Users\DELL-PC LAPTOP ---\.espressif\tools\idf-exe\1.0.1\;C:\Users\DELL-PC LAPTOP ---\.espressif\tools\ccache\3.7\;C:\Users\DELL-PC LAPTOP ---\.espressif\python_env\idf3.3_py2.7_env\Scripts;C:\ESP\tools;C:\Python27\\;C:\Program Files\Git\cmd\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Program Files\xtensa-esp32-elf-gcc8_2_0-esp-2019r2-win32\xtensa-esp32-elf\bin;C:\Users\DELL-PC LAPTOP ---\Documents\esp-idf;C:\Users\DELL-PC LAPTOP ---\Documents\esp-idf\tools;C:\Program Files\xtensa-esp32-elf\bin;C:\Users\DELL-PC LAPTOP ---\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\DELL-PC LAPTOP ---\AppData\Local\Programs\Python\Python38-32\;C:\Users\DELL-PC LAPTOP ---\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\GnuWin32\bin;

Checking if Python packages are up to date...
Python requirements from C:\ESP\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build


C:\ESP>cd esp-adf

C:\ESP\esp-adf>cd examples\get-started\play_mp3

C:\ESP\esp-adf\examples\get-started\play_mp3>idf.py build
Traceback (most recent call last):
File "C:\ESP\tools\idf.py", line 775, in <module>
main()
File "C:\ESP\tools\idf.py", line 692, in main
cli = init_cli(verbose_output=checks_output)
File "C:\ESP\tools\idf.py", line 139, in init_cli
import click
ImportError: No module named click

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: Regarding esp_adf

Postby ESP_krzychb » Fri May 08, 2020 12:20 pm

Embel.Tech wrote:
Fri May 08, 2020 9:25 am
using install.bat and export.bat i am able to set IDF path.
I do not see above scripts mentioned in installation procedure for ESP-IDF 3.3.1.
What is the installation procedure that you have followed?

Embel.Tech
Posts: 13
Joined: Tue Mar 03, 2020 5:26 am

Re: Regarding esp_adf

Postby Embel.Tech » Fri May 08, 2020 12:26 pm

okay
i also follow procedure mentioned on https://docs.espressif.com/projects/esp ... setup.html this document

Who is online

Users browsing this forum: No registered users and 18 guests