text 在尝试设置ESP32工具链之前要安装的东西。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 在尝试设置ESP32工具链之前要安装的东西。相关的知识,希望对你有一定的参考价值。

Had to install these on fresh installation of Ubuntu 16.04.5 LTS

sudo apt-get update
sudo apt-get install -y git make ncurses-dev flex bison gperf python-pip
sudo pip install pyserial --upgrade

gedit ~/.profile
Add this line to .profile file
export IDF_PATH=~/esp/ESP8266_RTOS_SDK

In the same file edit path to include xtensa toolchain on path
Say toolchain path is $HOME/esp/xtensa-lx106-elf/bin, then PATH should look like:
PATH="$HOME/esp/xtensa-lx106-elf/bin:$HOME/bin:$HOME/.local/bin:$PATH"


Add user to dialout group so that serial port can be opened by ESP scripts
sudo gpasswd --add ${USER} dialout

groups ${USER}
..this will list all the groups you belong to


Changes will be seen on next login.

cd ~/esp/ESP8266_RTOS_SDK/examples/get-started/project_template

******************************
Eclipse Project Settings
https://www.youtube.com/watch?v=H07DjpTtk_k

“C/C++ Build”  Use default build command
python ${IDF_PATH}/tools/windows/eclipse_make.py

"C / C ++ Build" "Environment"
BATCH_BUILD  1
IDF_PATH  C:/msys32/home/Priyank/esp/esp-idf
PATH  C:\msys32\usr\bin;C:\msys32\mingw32\bin;C:\msys32\opt\xtensa-esp32-elf\bin

"C / C ++ General"   "Preprocessor Include Paths, Macros, etc."

CDT GCC Built-in Compiler Settings Cygwin 
xtensa-esp32-elf-gcc ${FLAGS} -E -P -v -dD "${INPUTS}"

CDT GCC Build Output Parser 
xtensa-esp32-elf-((g?cc)|([gc]\+\+)|(clang))

以上是关于text 在尝试设置ESP32工具链之前要安装的东西。的主要内容,如果未能解决你的问题,请参考以下文章

cmake:ESP32交叉编译工具链定义

esp32不使用蓝牙助手连接蓝牙

ESP32学习笔记之ESP32-idf环境搭载心得

ESP-IDF 添加 arduino作为component

esp32python运行sd卡中的程序

esp32中间要焊吗