1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

M5Stack にAmazon FreeRTOSをインストール (mac)

Posted at

開発環境

基本的にはドキュメントにある通り以下に沿ってやっていく。
https://docs.aws.amazon.com/ja_jp/freertos/latest/userguide/getting_started_espressif.html
ツールチェーンについては以下だが、
https://docs.espressif.com/projects/esp-idf/en/v3.3/get-started-cmake/macos-setup.html
次のページ(以下)のStep2まで実行する。
Step3をやると環境変数によってコンパイルにコケるので注意。
https://docs.espressif.com/projects/esp-idf/en/v3.3/get-started-cmake/index.html#get-started-get-esp-idf-cmake

その後でCMakeをインストール。

Amazon FreeRTOSのダウンロード

Amazon FreeRTOS のリリース版をAWS IoT のSoftwareからダウンロードする。
image.png

ビルド&Flash

ダウンロードしたZipを展開後以下を実行

cd AmazonFreeRTOS/
cmake -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 -GNinja -S . -B build
vendors/espressif/esp-idf/tools/idf.py flash -B build/

設定

tools/aws_config_quick_start/configure.json を編集し、CredentialやWi-Fiの設定をする。設定の仕方は同一フォルダのREADMEを参照。

python SetupAWS.py setup

チェック

cmake -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 -S . -B build
cd build/
make all -j4
cd vendors/espressif/boards/esp32/aws_demos/
make size
make size-components
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?