GithubHelp home page GithubHelp logo

sillysg5110 / rtthread-esp-idf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bernardxiong/rtthread-esp-idf

0.0 2.0 0.0 7.48 MB

rt-thread porting with esp-idf

Makefile 0.10% Python 1.77% C 97.21% Batchfile 0.01% C++ 0.58% Logos 0.18% Objective-C 0.07% Shell 0.01% HTML 0.03% Perl 0.03%

rtthread-esp-idf's Introduction

rtthread-esp-idf

RT-Thread针对ESP32的移植(使用Espressif Systems的IDF框架)

获得rtthread esp-idf

获得RT-Thread的ESP32版本,需要安装git,并以以下方式获得代码:

git clone https://github.com/BernardXiong/rtthread-esp-idf

cd rtthread-esp-idf
git submodule init
git submodule update

cd esp-idf-port/esp-idf
git submodule init
git submodule update

git am ../0001-cpu_start-patch.patch
git am ../0002-add-esp_task.h.patch
git am ../0003-add-memset-to-0.patch

交叉编译工具链下载

  • Linux版本:
  • CentOS 7::

    sudo yum install git wget make ncurses-devel flex bison gperf python pyserial

  • Ubuntu and Debian::

    sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial

  • Arch::

    sudo pacman -S --needed gcc git make ncurses flex bison gperf python2-pyserial

64位 32位

  • MacOS版本

MacOS

  • Windows版本

Windows

依赖软件

  1. scons
  2. python
  3. pyserial
  • 安装Python后,可以安装pip,以pip install scons pyserial的方式安装其他

编译

  1. 修改根目录下"rtconfig.py"文件内EXEC_PATH = r'D:\tools\msys32\opt\xtensa-esp32-elf\bin'为xtensa-esp32-elf交叉编译器所在目录;
  2. 在命令行下使用scons命令编译并生成bin文件;

rt-iot audio开发板烧录

rt-iot audio开发板因为有音频的缘故,未包括串口自动复位烧录的操作,所以在进行烧录时,需要以按键方式辅助。

  1. USB连接PC和开发板;
  2. 在PC上运行烧写的软件,它会打开串口试图烧写;
  3. 按住rt-iot audio朝外边的两个按键,然后按最内侧按键(reset按键),松开内侧按键,然后再松开外侧两个按键。

这个时候PC侧软件自动进入烧写模式,开始进行固件烧写。

音频

当前在applications下放了两个音频相关的代码:

  • wav_play.c -- 用于播放一个wav文件;
  • wav_record.c -- 用于录音(默认以16000 samplerate、单声道方式录音,并保存为文件)

rtthread-esp-idf's People

Contributors

bernardxiong avatar gbcwbz avatar

Watchers

James Cloos avatar 刘权John avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.