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.
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值