进入tools/unit-test-app
idf.py set-target esp32s2
idf.py menuconfig
idf.py -T all build
编译一会就报错了
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Administrator/Desktop/esp-idf/tools/unit-test-app/build
Running ninja in directory c:\users\administrator\desktop\esp-idf\tools\unit-test-app\build
Executing "ninja all"...
[1/1154] Generating test_tjpgd_logo.h
FAILED: esp-idf/esp32s2_test/test_tjpgd_logo.h
cmd.exe /C "cd /D C:\Users\Administrator\Desktop\esp-idf\components\esp32s2\test && xxd -i logo.jpg C:/Users/Administrator/Desktop/esp-idf/tools/unit-test-app/build/esp-idf/esp32s2_test/test_tjpgd_logo.h"
'xxd' is not recognized as an internal or external command,
operable program or batch file.
[5/1154] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,2432K,
ota_0,app,ota_0,0x270000,64K,
ota_1,app,ota_1,0x280000,64K,
flash_test,data,fat,0x290000,528K,
nvs_key,data,nvs_keys,0x314000,4K,encrypted
*******************************************************************************
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
ESP-IDF的测试代码无法编译通过
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: ESP-IDF的测试代码无法编译通过
错误已经告诉你了:
'xxd' is not recognized as an internal or external command,
你需要在你的环境里有 xxd 工具,需要安装一下,并且在系统路径下,可从 https://sourceforge.net/projects/xxd-for-windows/ 下载。
'xxd' is not recognized as an internal or external command,
你需要在你的环境里有 xxd 工具,需要安装一下,并且在系统路径下,可从 https://sourceforge.net/projects/xxd-for-windows/ 下载。
Who is online
Users browsing this forum: No registered users and 66 guests