ESP32开发:idf.py配置
Posted knowform
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ESP32开发:idf.py配置相关的知识,希望对你有一定的参考价值。
$ idf.py
idf.py: command not found
sudo gedit ~/.bashrc
export PATH=/home/user/esp-idf-v3.2/esp-idf/tools:$PATH
source ~/.bashrc
(base) user@ubuntu:~$ idf.py
Note: You are using Python 3.8.5. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
usage: idf.py [-h] [-p PORT] [-b BAUD] [-C PROJECT_DIR] [-B BUILD_DIR]
[-G {Ninja,Unix Makefiles}] [-n] [-v]
[-D DEFINE_CACHE_ENTRY [DEFINE_CACHE_ENTRY ...]] [--no-ccache]
{all,build,clean,fullclean,reconfigure,menuconfig,defconfig,confserver,size,size-components,size-files,bootloader,bootloader-clean,bootloader-flash,app,app-flash,partition_table,partition_table-flash,flash,erase_flash,monitor}
[{all,build,clean,fullclean,reconfigure,menuconfig,defconfig,confserver,size,size-components,size-files,bootloader,bootloader-clean,bootloader-flash,app,app-flash,partition_table,partition_table-flash,flash,erase_flash,monitor} ...]
idf.py: error: the following arguments are required: actions
(base) user@ubuntu:~$
(base) user@ubuntu:~/cv/cvtest/opencv_esp32_test_v1$ idf.py --help
Note: You are using Python 3.8.5. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
usage: idf.py [-h] [-p PORT] [-b BAUD] [-C PROJECT_DIR] [-B BUILD_DIR]
[-G {Ninja,Unix Makefiles}] [-n] [-v]
[-D DEFINE_CACHE_ENTRY [DEFINE_CACHE_ENTRY ...]] [--no-ccache]
{all,build,clean,fullclean,reconfigure,menuconfig,defconfig,confserver,size,size-components,size-files,bootloader,bootloader-clean,bootloader-flash,app,app-flash,partition_table,partition_table-flash,flash,erase_flash,monitor}
[{all,build,clean,fullclean,reconfigure,menuconfig,defconfig,confserver,size,size-components,size-files,bootloader,bootloader-clean,bootloader-flash,app,app-flash,partition_table,partition_table-flash,flash,erase_flash,monitor} ...]
ESP-IDF build management tool
positional arguments:
{all,build,clean,fullclean,reconfigure,menuconfig,defconfig,confserver,size,size-components,size-files,bootloader,bootloader-clean,bootloader-flash,app,app-flash,partition_table,partition_table-flash,flash,erase_flash,monitor}
Actions (build targets or other operations)
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Serial port
-b BAUD, --baud BAUD Baud rate
-C PROJECT_DIR, --project-dir PROJECT_DIR
Project directory
-B BUILD_DIR, --build-dir BUILD_DIR
Build directory
-G {Ninja,Unix Makefiles}, --generator {Ninja,Unix Makefiles}
Cmake generator
-n, --no-warnings Disable Cmake warnings
-v, --verbose Verbose build output
-D DEFINE_CACHE_ENTRY [DEFINE_CACHE_ENTRY ...], --define-cache-entry DEFINE_CACHE_ENTRY [DEFINE_CACHE_ENTRY ...]
Create a cmake cache entry
--no-ccache Disable ccache. Otherwise, if ccache is available on
the PATH then it will be used for faster builds.
以上是关于ESP32开发:idf.py配置的主要内容,如果未能解决你的问题,请参考以下文章