当前位置:网站首页>Construction of esp8266/esp32 development environment

Construction of esp8266/esp32 development environment

2022-06-11 04:01:00 z_ Curtain

Development environment construction

development environment

ESP8266ESP32
Tool chain xtensa-lx106-elf-gccxtensa-esp32-elf-gcc
SDKESP8266-RTOS-SDKESP-IDF
windowmsys32msys32(4.0 The version can be installed with one click )
linux Need to install python software package Need to install python software package
command makemake、idf.py(4.0 above )

ESP32 Different components ( Such as development board related components ), Different models are right ESP-IDF There are version requirements , Need to re correspond IDF Version can be compiled (ESP32-S2 need 4.2 above ,ESP32-C3 And needs 4.3 above )

Environment building steps

ESP8266-RTOS-SDK as well as ESP-IDF4.0 following

1、 download 、 Unzip the toolchain

2、 from github Cloned SDK( A complete clone module is required , Otherwise, there will be compilation errors

3.1、(windows Next ) download msys32, And in etc/profile Set tool chain in 、SDK environment variable

3.2、(linux Next ) Installation related python software package , And in profile Set tool chain in 、SDK environment variable

export PATH=" Tool chain path /bin:$PATH"'
export IDF_PATH="SDK route "

ESP-IDF4.0 above

linux The installation steps under are basically the same .

windows You can directly use the official one click installation tool to download SDK And tool chains .

Run after downloading SDK In the catalog install Scripts and export Script , After successful operation, the project can be compiled .

VSCode Internal use msys32

stay vscode Of setting Add terminal path to , Then you can use
 Insert picture description here
stay vscode Use in msys32 It's possible to meet make menuconfig Garbled situation , stay msys32\etc\profile.d In the directory esp32_toolchain.sh file , Add a row to solve the problem

export LANG="en_US"

 Insert picture description here

Reference link

1、ESP32:https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/get-started/index.html
2、ESP8266:https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/index.html#

原网站

版权声明
本文为[z_ Curtain]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020549199993.html