5867 views|4 replies

41

Posts

2

Resources
The OP
 

[Brick Drinking Water Recorder] Ubuntu Environment Construction of "ESP32-S2-Kaluga-1" [Copy link]

 This post was last edited by Uncle Xiaomo on 2022-8-10 09:19

Project Portal

[Brick Drinking Water Recorder] 2022 Digi-Key Innovation Design Competition Material Unboxing

1. Development Environment Setup — Ubuntu 20.04

There are many ways to build the development environment for ESP32S2. I have developed 8266 before. I first ran Asinco's IDE on Windows, then switched to vscode, and then changed to compiling under Ubuntu. I found that this was smoother. Although esp32s2 is also called esp32, it actually has a different architecture from the previous ESP32 module, and the compilation chain is also different.

This environment is actually built on the basis of compatibility with the previous ESP8266 and ESP32, adding esp-idf to compile ESP32S2, using aliases, which is more convenient and freer.

The compilation tool uses gitee instead of github (I prefer the latter), but considering that many people will fail to download some libraries from github, a method of cloning and building the environment through gitee is given.

  1. The default is to have ubuntu built with esp8266. If not, make sure ubuntu has the following tools installed

    sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
    
  2. First clone the gitee download tool

    git clone https://gitee.com/EspressifSystems/esp-gitee-tools.git
    
  3. Download the esp-idf library, here select branch v4.4

    git clone https://gitee.com/EspressifSystems/esp-idf.git -b release/v4.4
    
  4. Use esp-gitee-tools to download the sub-repository. This repository contains extension tools for other gitee repositories, including submodule updates, development tool installation, etc., which can speed up the construction of the environment.

    cd esp-gitee-tools
    export EGT_PATH=$(pwd)
    cd ../esp-idf
    $EGT_PATH/submodule-update.sh
    
  5. In the esp-idf directory, install the compilation toolchain

    $EGT_PATH/install.sh
    
  6. Set the IDF_PATH path. Here, select the alias. Because the previous environment also has the esp8266 compilation environment, use the alias and call it before each use. It is very convenient, as shown in the figure

    # 1.在终端输入下面命令
    vim ~/.bashrc
    
    # 2.在最后面输入下面内容,需要注意,这里“esp-idf的目录”是你自己的,类比下图所示
    #SET ESP_IoT cross complier
    aias get_idf='. /esp-idf的目录/esp-idf/export.sh'
    
    # 3.保存后运行下面命令
    source ~/.bashrc
    

  7. Open any cloned esp32s2 repository, such as "esp-dev-kits/esp32-s2-kaluga-1/examples/camera", run "get_idf" first, and then you can compile using idf.py

  8. After cloning and downloading the "esp-dev-kits" repository, please note that its "esp-dev-kits/esp32-s2-kaluga-1/components/esp32-camera" is empty and needs to be cloned and downloaded separately

    git clone https://github.com/espressif/esp32-camera.git

This post is from DigiKey Technology Zone

Latest reply

I think Linux is a general direction, and it is indeed difficult! But I have to persevere!   Details Published on 2022-8-9 17:49
 
 

6788

Posts

2

Resources
2
 

ESP's cross-platform compilation mechanism is very good, allowing those who often develop in a Linux environment to easily get started!

This post is from DigiKey Technology Zone

Comments

I feel Linux is so advanced  Details Published on 2022-8-9 17:28
 
 
 

6075

Posts

6

Resources
3
 
wangerxian posted on 2022-8-9 17:15 ESP's cross-platform compilation mechanism is still very good, making it easy for some people who often develop in Linux environment to get started!

I feel Linux is so advanced

This post is from DigiKey Technology Zone

Comments

I think Linux is a general direction, and it is indeed difficult! But I have to persevere!  Details Published on 2022-8-9 17:49
 
 
 

6075

Posts

6

Resources
4
 

The host is gone, just came back from drawing the board

This post is from DigiKey Technology Zone
 
 
 

6788

Posts

2

Resources
5
 
Qintianqintian0303 posted on 2022-8-9 17:28 I feel that Linux is so advanced

I think Linux is a general direction, and it is indeed difficult! But I have to persevere!

This post is from DigiKey Technology Zone
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list