ESP32 如何安装ESP-ADF环境

Python3.8

Python 是一种高级、解释型、通用的编程语言,以其简洁易读的语法而闻名,适用于广泛的应用,包括Web开发、数据分析、人工智能和自动化脚本

  1. ESP_ADF安装成功很大程度取决于网络,多尝试几次,建议github的连接git获取,其他方式下载不完全编译就会报错
  2. 前往Espressif 仓库查看 Espressif github仓库,往下滑动搜索ESP-ADF
    在这里插入图片描述
  3. 进入之后可以看到除了ESP-ADF外还有ESP-IDF ,components目录下的 esp-adf-libs 和 esp-sr
    在这里插入图片描述
    在这里插入图片描述
  4. 使用命令获取esp-adf,过程出错或中断可能导致安装失败,建议使用手机开启USB网络共享给电脑尝试,我自己尝试了N遍,换时间尝试几次。
git clone https://github.com/espressif/esp-adf.git	// 拉取esp-adf

git submodule update --init --recursive	// 同步更新子模块
  1. 拉取完整的esp-adf后切换到esp-adf的目录下执行 install.bat 脚本,完成ESP-IDF的安装后 export.bat 才算完成。这个过程注意自电脑的 python版本 环境变量 还有 ESP-IDF 和 ESP-ADF的环境变量设置是否合理。
    我用到的环境变量
    在这里插入图片描述

  2. 安装完成的界面
    在这里插入图片描述

D:\ESP\ESP-ADF>cd esp-adf

D:\ESP\ESP-ADF\esp-adf>export.bat
ADF_PATH: D:\ESP\ESP-ADF\esp-adf
IDF_PATH: D:\ESP\ESP-ADF\esp-adf\esp-idf
Checking Python compatibility
Setting IDF_PATH: D:\ESP\ESP-ADF\esp-adf\esp-idf

Adding ESP-IDF tools to PATH...
WARNING: The following issue occurred while accessing the ESP-IDF version file in the Python environment: [Errno 2] No such file or directory: 'C:\\Users\\zhy123\\AppData\\Local\\Programs\\Python\\Python312\\idf_version.txt'. (Diagnostic information. It can be ignored.)
    C:\Users\zhy123\.espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin
    C:\Users\zhy123\.espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin
    C:\Users\zhy123\.espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin
    C:\Users\zhy123\.espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin
    C:\Users\zhy123\.espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin
    C:\Users\zhy123\.espressif\tools\cmake\3.24.0\bin
    C:\Users\zhy123\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin
    C:\Users\zhy123\.espressif\tools\ninja\1.11.1\
    C:\Users\zhy123\.espressif\tools\idf-exe\1.0.3\
    C:\Users\zhy123\.espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
    C:\Users\zhy123\.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
    D:\ESP\ESP-ADF\esp-adf\esp-idf\tools

Checking if Python packages are up to date...
Constraint file: C:\Users\zhy123\.espressif\espidf.constraints.v5.3.txt
Requirement files:
 - D:\ESP\ESP-ADF\esp-adf\esp-idf\tools\requirements\requirements.core.txt
Python being checked: C:\Users\zhy123\AppData\Local\Programs\Python\Python312\Scripts\python.exe
Python requirements are satisfied.

Detected installed tools that are not currently used by active ESP-IDF version.
For removing old versions of riscv32-esp-elf-gdb, xtensa-esp-elf-gdb use command 'python.exe D:\ESP\ESP-ADF\esp-adf\esp-idf\tools\idf_tools.py uninstall'
For free up even more space, remove installation packages of those tools. Use option 'python.exe D:\ESP\ESP-ADF\esp-adf\esp-idf\tools\idf_tools.py uninstall --remove-archives'.


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

  idf.py build

Applying patch D:\ESP\ESP-ADF\esp-adf\idf_patches\esp32p4_hosted_and_sdcard_coexistent.patch
Applying patch D:\ESP\ESP-ADF\esp-adf\idf_patches\idf_v5.3_freertos.patch

The following command can be executed now to view detailed usage:

  idf.py --help

Compilation example (The commands highlighted in yellow below are optional: Configure the chip and project settings separately)

  cd D:\ESP\ESP-ADF\esp-adf\examples\cli
  idf.py set-target esp32
  idf.py menuconfig
  idf.py build

The script encountered an error.

D:\ESP\ESP-ADF\esp-adf>idf.py --version
fatal: not a git repository: ../.git/modules/esp-idf
WARNING: Git version unavailable, reading from source
ESP-IDF v5.3.1

D:\ESP\ESP-ADF\esp-adf>

您可能感兴趣的与本文相关的镜像

Python3.8

Python3.8

Conda
Python

Python 是一种高级、解释型、通用的编程语言,以其简洁易读的语法而闻名,适用于广泛的应用,包括Web开发、数据分析、人工智能和自动化脚本

内容概要:本文详细记录了对一个Android ARM64静态ELF文件中字符串加密机制的逆向分析过程。该ELF文件的所有字符串均被加密,无法通过常规strings命令或IDA直接识别。作者通过分析发现,加密字符串存储在.rodata段,其解密所需信息(包括密文地址、长度和16位密钥)保存在.data.rel.ro段的40字节描述符中。核心解密函数sub_10F408采用自反的双pass流密码算法,结合固定密钥KEY_TERM(由.data段24字节数据计算得出),实现字节级非线性、位置与长度相关的加密。文章还复现了完整的Python解密脚本,并揭示了该保护机制的本质为代码混淆而非强加密,最终成功批量解密全部956条字符串,暴露程序真实行为,如shell命令模板、设备标识篡改、网络重置等操作。此外,文中还提及未启用的自定义壳框架及其反dump设计。; 适合人群:具备逆向工程基础的安全研究人员、二进制分析人员及对ELF保护技术感兴趣的开发者。; 使用场景及目标:①学习ELF二进制中字符串加密的典型实现方式与逆向突破口;②掌握从结构识别、函数追踪到算法还原的完整逆向流程;③理解“绑定二进制”的完整性校验设计及其局限性;④实践编写IDAPython脚本自动化提取与解密敏感数据。; 阅读建议:此资源以实战案例驱动,不仅展示技术细节,更强调逆向思维与验证方法,建议读者结合IDA调试环境,逐步跟随文中步骤进行动态分析与算法验证,深入理解每一步的推理依据。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值