Skip to content

Creating and importing a FreeRTOS project

MinoriTomino edited this page Jun 7, 2023 · 1 revision

Introduction

This section shows how to use FreeRTOS projects in e² studio ported to the RX family.
e² studio is the integrated development environment using Eclipse and please visit here to get the e² studio.
The FreeRTOS projects can be created using e² studio's “Create New Project” function.
You can also import the sample programs posted on the Renesas Website, or a cloned project from this repository.

How to develop a FreeRTOS project in e² studio

You can develop a FreeRTOS project using e² studio in the following ways. When you want to start developing a FreeRTOS project from scratch, Renesas recommends to use [Create New Project Function](#Create a new FreeRTOS project).

Create a new FreeRTOS project

This video shown below shows how to create a new FreeRTOS project in e² studio.

Importing a FreeRTOS project

The following sections show you how to import the downloaded FreeRTOS project into e² studio.

  • The instructions in this section are mainly intended for importing such as sample programs in application note, and projects cloned from GitHub.
  • The folder names and structures may differ depending on the project where you downloaded.
  • Please replace environment specific words such as board name in the figures and description to match your environment.

Base Folder Definition

  • The root folder of Amazon FreeRTOS that was downloaded, unzipped, or cloned from GitHub with git is denoted as ${base_folder}.
  • ${base_folder} contains demos and tests folders
  • Please put on the project in a place where the path can be shortened such as "c:\ ".
    Note that total path length over 256 characters caused e² studio to output an error at Build.
  • The figure below shows amazon-freertos cloned from GitHub and placed in c:\ws2. In this case, ${base_folder} becomes “C:\ws2\amazon-freertos”

00_folderpass

Launch the e² studio and import the project

  • Double-click the e² studio icon to launch 02_FreeRTOSプロジェクトインポート_e2起動

  • Select workspace -> Launch
    When you have already selected the default folder, this window does not appear. 01_e2_launch

  • Launch e² studio 01_e2_launch

  • Select the “import” menu from “File” tab.
    03_e2_file_import

  • Select “Existing Projects into Workspace” and press “next”.
    04_e2_existingProject

  • Select the folder the project placed using "browse" button and press the “Select folder”.
    The folder depends on the compiler that you will use.

    • CC-RX
      • ${base_folder}/projects/renesas/Board name/e2studio/
    • GCC
      • ${base_folder}/projects/renesas/Board name/e2studio-gcc/
  • This figure shows an example of using the following project
    Board   :CK-RX65N(with CAT.M1 module 'RYZ014A')
    Compiler :GCC 07_FreeRTOSプロジェクトインポート_フォルダーの選択

  • Select the projects to import and press “Finish” Project description:

Functions Projects
For connection to AWS Cloud Services only Select aws_demos
For OTA FW Update Select aws_demos and boot_loader
  • This figure shows the case of selecting OTA function.
    05_e2_select_projects
    Note: Don’t select "Copy Projects into workspace" in both cases.

  • When close the "Welcome to e² studio" screen using the “Hide” button, the Project Explorer will appear. 02_e2_welcome
    ↓↓↓

    e2studio

  • Select “clean” from “Project” tab.

    • When you imported two projects, select "Clean all projects" check button.
    • Select “Start a build immediately” and “Build the entire workspace”, and press “Clean”.

07_project_clean

08_Clean_allproject

  • Check the build is finished successfully completed without any build errors. 09_buildresult

Connecting to AWS

It is necessary to register “things” name to AWS IoT Core and register certificates and keys to the FreeRTOS program.
Please configure settings according to the sample program/APN you are using before connecting to AWS.

  • When you use a sample program/APN, please refer to the documentation of the sample program/APN how to proceed.
  • Please check GettingStartGude for each board when you use AWS Partner Device certified sample programs.
  • GettingStartGude and APN documents contain the screenshot and settings. If the information or screenshot is different from your environment, please check the Register device to AWS IoT page.

Lists

日本語ページ一覧

コンテンツ

  1. Home
  2. AWS FreeRTOS対応IoT機器開発向け評価キット

チュートリアル

  1. デバイスをAWS-IoTに登録する
  2. FreeRTOSプロジェクトの新規作成・インポート
  3. FreeRTOSプロジェクトでAWS-IoT-Coreへの接続に必要な設定
  4. FreeRTOSプログラムを実行し、AWS-IoTに接続する

ソリューション一覧(OTA・センサデータ可視化)

  1. RXクラウドソリューション一覧

Amazon FreeRTOS 関連外部リンク集

  1. Amazon FreeRTOS
  2. Amazon FreeRTOS の使用開始
  3. Amazon FreeRTOS ドキュメント
    1. Amazon FreeRTOS ユーザーガイド
    2. Amazon FreeRTOS API リファレンスa
    3. FreeRTOS カーネルリファレンスマニュアル
    4. FreeRTOS カーネル開発者ガイド

リアルタイムOS解説動画

  1. RTOSチュートリアル(1/7):なぜRTOSは必要なのか
  2. RTOSチュートリアル(2/7):タスク
  3. RTOSチュートリアル(3/7):ハンドラ
  4. RTOSチュートリアル(4/7):システムコール その1
  5. RTOSチュートリアル(5/7):システムコール その2
  6. RTOSチュートリアル(6/7):構造と性能
  7. RTOSチュートリアル(7/7):マルチコアとRTOS
English Pages List

Contents

  1. Getting Started with IoT Device Developments with the RX Family
  2. Certified evaluation board by AWS

Tutorial

  1. Register device to AWS IoT
  2. Creating and importing a FreeRTOS project
  3. Configure the FreeRTOS project to connect to AWS IoT Core
  4. Execute Amazon FreeRTOS project and connect RX devices to AWS IoT

Solutions List

  1. RX Cloud Solutions

FreeRTOS Related External Links(aws.com)

  1. Amazon FreeRTOS
  2. Amazon FreeRTOS Getting Started
  3. Amazon FreeRTOS Document
    1. Amazon FreeRTOS Users Guide
    2. Amazon FreeRTOS API Reference
    3. FreeRTOS Kernel Reference Manual
    4. FreeRTOS Kernel Developer Guide
Clone this wiki locally