Execute Amazon FreeRTOS project and connect RX devices to AWS IoT - renesas/iot-reference-rx GitHub Wiki

Introduction

This section shows how to connect to AWS IoT Core and subscribe to topics in a FreeRTOS project for the RX family.
The precondition of this section:
The FreeRTOS project has been successfully built, including certification of things information registration with AWS.When you have not finished above preparation, please set up your environment referring the following link in advance.
For the latest information on using Free RTOS projects for RX, please refer to the Getting Start Guide.

  1. Register device to AWS IoT
  2. Creating and importing a FreeRTOS project
    Importing a FreeRTOS project(zip)
    Create a new 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 [This page]

Configure the IoT Core control panel to check the messages from devices

  • Subscribe to Topics in the IoT Core Control Panel

01_test_mqtt

The sample program for Renesas evaluation boards with AWS Partner Device certification outputs debug logs.
The output UART channel depends on the evaluation board, 7please refer the getting started guide.
See GettingStartGude on the evaluation board for details.

  • Connect the evaluation board to the PC with a USB cable (see GettingStartGude for each board for the USB port to be connected)
    The output UART channel depends on the evaluation board, 7please refer the getting started guide.
  • Launch terminal software like TeraTerm on the PC and set the serial port settings as follows
Setting Value
Speed 115200bps
Data length 8bit
Parity bit none
Stop bits 1bit
Flow control none

Download FreeRTOS project to RX MCU

  • Press the "bug" icon in the upper left corner of the e2 studio screen

debug_button

  • Select "Switch" in the "Confirm Perspective Switch" window.

switch

Execute program

  • Press "Resume" button

02_resume

  • Check the breakpoint is set in the main() routine.

03_main

  • Press "Resume" button

02_resume

Check messages from devices in the IoT Core control panel

  • Check that the messages defined by source code in the FreeRTOS project are displayed.
    Note: Output messages are deferent from by the project.
    e.g., "Hello World" "Task X publishing message XX"
    test_mqtt_subsc