banner
banner
banner
banner
NEWS LETTER

【棉花糖】1-软硬件方案选型

Scroll down

1. 系统环境说明

  • [ ]待补充

2. 系统环境搭建

由于渡渡也是个嵌入式小白,需要和鼻鼻一起从0开始探索,
_ 哈哈((^∀^*)),尽管鼻鼻刚刚过了6岁生日🎂,在独立学习人工智能🤖方面,目前还不能理解视频的全部内容,还处于需要妈妈喂的宝宝阶段👼 _
因此我找了一个非常好的入门教学视频:

需要的同学可以参考: 2024最新版 ESP32教程(基于ESP-IDF)
在这里特别感谢哔哩哔哩Up主: 宸芯IOT


  1. 升级Ubuntu工具包

    1
    $ sudo apt update` 

    image

  2. 安装各种必要的工具

    1
    $ sudo apt-get install git wget flex bison gperf python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 net-tools

    image

  3. 新建棉花糖目录,并拉取gitee工具

    1
    2
    3
    $ mkdir mht
    $ cd mht
    $ git clone https://gitee.com/EspressifSystems/esp-gitee-tools.git

    image

  4. 执行gitee工具切换镜像脚本

    1
    2
    $ cd esp-gitee-tools
    $ ./jihu-mirror.sh set

    image

  5. 拉取esp-idf源码

    1
    2
    $ cd ..
    $ git clone --recursive https://github.com/espressif/esp-idf.git

    imageimage

  6. 切换esp-idf版本分支到v5.2

    1
    2
    3
    4
    5
    $ cd esp-idf
    $ git checkout v5.2
    $ git submodule update --init --recursive
    # 如果提示失败或有错误试下这句:
    # ../esp-gitee-tools/submodule-update.sh

    image

  7. 更换pip源,安装编辑工具

    1
    2
    3
    $ pip config set global.index-url http://mirrors.aliyun.com/pypi/simple
    $ pip config set global.trusted-host mirrors.aliyun.com
    $ ../esp-gitee-tools/install.sh

    image

  8. 设置环境变量并将环境变量放到.bashrc中

    1
    2
    source export.sh
    echo "source ~/esp32/esp-idf/export.sh" >> ~/.zshrc

    image

10、下载课程配套源码
cd ~/esp32
git clone –recursive https://gitee.com/vi-iot/esp32-board.git

11、编译
cd esp32-board/helloworld
idf.py build

12、设置USB串口权限
sudo usermod -aG dialout usrname usrname需要换成你的用户名

13、重启

其他文章
目录导航 置顶
  1. 1. 1. 系统环境说明
  2. 2. 2. 系统环境搭建