Renesas RX65N Getting Started Manual
Hide thumbs Also See for RX65N:

Advertisement

Quick Links

RX65N
Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N
Contents
1.
Overview .......................................................................................................................................3
2.
Hardware Description ...................................................................................................................4
2.1
DataSheet ............................................................................................................................................. 4
2.2
Schematic.............................................................................................................................................. 4
2.3
Key Components ................................................................................................................................... 4
2.4
Hardware requirements to run FreeRTOS demo ................................................................................... 5
2.4.1
Standard Kit Contents ......................................................................................................................... 5
2.4.2
User Provided items ............................................................................................................................ 5
2.4.3
3rd Party purchasable items ................................................................................................................ 5
2.5
Additional Hardware References ........................................................................................................... 5
3.
Set up your Development Environment .......................................................................................6
3.1
Support IDEs ......................................................................................................................................... 6
3.2
Toolchains ............................................................................................................................................. 6
3.2.1
CC-RX compiler .................................................................................................................................. 6
3.2.2
GCC compiler ...................................................................................................................................... 6
3.3
Establishing a serial connection ............................................................................................................ 6
3.4
3.4.1
To download Tera Term ...................................................................................................................... 6
4.
Set up your hardware ...................................................................................................................7
4.1
To connect the RYZ014A ...................................................................................................................... 7
4.2
To set up the device board .................................................................................................................... 9
4.3
To connect for debugging and power supply ....................................................................................... 10
4.4
To connect for receiving debug logs .................................................................................................... 10
5.
Setup your AWS account and Permissions ...............................................................................11
5.1
To attach the AmazonFreeRTOSFullAccess policy to your IAM user ................................................. 11
5.2
To attach the AWSIoTFullAccess policy to your IAM user .................................................................. 11
6.
Provision the device with AWS IoT ............................................................................................12
6.1
To create an AWS IoT policy ............................................................................................................... 12
6.2
To create an IoT thing, private key, and certificate for your device ..................................................... 15
7.
Download FreeRTOS .................................................................................................................19
8.
Configure FreeRTOS .................................................................................................................21
8.1
Header file for AWS IoT ...................................................................................................................... 21
R01QS0065EJ0100 Rev.1.00
May.31.22
Getting Started Guide
Page 1 of 30

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RX65N and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas RX65N

  • Page 1: Table Of Contents

    Getting Started Guide RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N Contents Overview ............................3 Hardware Description ........................4 DataSheet ............................. 4 Schematic.............................. 4 Key Components ........................... 4 Hardware requirements to run FreeRTOS demo ................... 5 2.4.1 Standard Kit Contents ......................... 5 2.4.2...
  • Page 2 RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 8.1.1 Ethernet case ............................ 21 8.1.2 Cellular case............................22 The endpoint in AWS IoT ........................24 Build the FreeRTOS demo ......................25 10. Run the FreeRTOS demo project ....................26 10.1 Flash demo code ..........................26 10.2 Receive MQTT messages by AWS IoT ....................
  • Page 3: Overview

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 1. Overview This tutorial provides instructions of connecting AWS Cloud with FreeRTOS for getting started with CK- RX65N. If you do not have the CK-RX65N, visit the AWS Partner Device Catalog, and purchase one from our partners.
  • Page 4: Hardware Description

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 2. Hardware Description 2.1 DataSheet Table 2-1 DataSheet Device Link CK-RX65N https://www.renesas.com/rx/ck-rx65n PMOD Expansion Board for https://www.renesas.com/document/dst/ryz014a-lte-category-m1- RYZ014A module-datasheet?language=en&r=1503996 2.2 Schematic Table 2-2 Schematic Device Link CK-RX65N https://www.renesas.com/rx/ck-rx65n PMOD Expansion Board for https://www.renesas.com/products/interface-connectivity/wireless-...
  • Page 5: Hardware Requirements To Run Freertos Demo

    (This is packaged in CK-RX65N) 2.4.2 User Provided items 1. USB cable (A male – USB-Micro-B male) x2 These cables packaged in the CK-RX65N are used to connect the PC to the CK-RX65N to debug and receive debug logs. Antenna 2. LTE 3.
  • Page 6: Set Up Your Development Environment

    If you do not have an account, choose Register now, and follow the first registration steps. You should receive an email with a link to activate your Renesas account. Follow this link to complete your registration with Renesas, and then login to Renesas.
  • Page 7: Set Up Your Hardware

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 4. Set up your hardware In this section, provide instructions for setting up the platform's hardware. Note that administrator privileges are required to install the drivers. 4.1 To connect the RYZ014A 1.
  • Page 8 RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 3. Connect the RYZ014A to the CK-RX65N. The RYZ014A connects to PMOD1. Figure 4-3 Connect the RYZ014A to the CK-RX65N 4. Connect a USB cable to the RYZ014A for supplemental power supply.
  • Page 9: To Set Up The Device Board

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 4.2 To set up the device board Set up jumpers of device board as follows:  J2 Short for invalidating MCU current measurement point  J11 Open for single chip mode as MCU boot option ...
  • Page 10: To Connect For Debugging And Power Supply

    For receiving debug logs, connect an USB cable between the USB-serial connector (J20) on the CK-RX65N and your PC to receive logs. Note that debug logs mean serial output data which is coded in aws demo and Renesas driver software. It’s not directly related to debugging on e studio indicated in section 4.3.
  • Page 11: Setup Your Aws Account And Permissions

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 5. Setup your AWS account and Permissions To create an AWS account, see Create and Activate an AWS Account User needs to create AWS account. Refer to the instructions at Set up your AWS Account.
  • Page 12: Provision The Device With Aws Iot

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 6. Provision the device with AWS IoT Refer to Registering MCU board. 6.1 To create an AWS IoT policy Follow 1 6 under the heading To create an AWS IoT policy.
  • Page 13 RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 3. Go to SecurePolicies. Click on Create to create a policy Figure 6-3 Create policy 4. In the Name field, enter a name for the policy. Then, change to Advanced mode Figure 6-4 Give a policy name R01QS0065EJ0100 Rev.1.00...
  • Page 14 RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 5. Add following text to Advanced mode. "Version": "2012-10-17", "Statement": "Effect": "Allow", "Action": "iot:Connect", "Resource": "*" "Effect": "Allow", "Action": "iot:Publish", "Resource": "*" "Effect": "Allow", "Action": "iot:Subscribe", "Resource": "*" "Effect": "Allow", "Action": "iot:Receive",...
  • Page 15: To Create An Iot Thing, Private Key, And Certificate For Your Device

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 6. Create a policy. Figure 6-6 Create a policy Note: The examples in this document are intended only for dev environments. All devices in your fleet must have credentials with privileges that authorize only intended actions on specific resources. The specific permission policies can vary for your use case.
  • Page 16 RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 2. Select the Create a single thing Figure 6-8 Create a single thing 3. Add name to thing and Next Figure 6-9 Add name to a single thing R01QS0065EJ0100 Rev.1.00 Page 16 of 30 May.31.22...
  • Page 17 RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 4. Add a certificate for thing Figure 6-10 Create a certificate for thing 5. Attach a policy to thing: • Click the Download button next to each of the certificates, keys and save in local PC or host machine.
  • Page 18 RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 6. Attach policy to thing Figure 6-12 Attach policy to thing Refer to Developer-mode key provisioning for an example. R01QS0065EJ0100 Rev.1.00 Page 18 of 30 May.31.22...
  • Page 19: Download Freertos

    10. Right-click the Project Explorer window and choose Import. 11. In the import wizard, choose General, Renesas GitHub FreeRTOS (with IoT libraries) Project, and the choose Next. Figure 7-1 General, Renesas GitHub FreeRTOS (with IoT libraries) Project 12.
  • Page 20 Download. Figure 7-2 FreeRTOS (with IoT libraries) Module Download 14. Once download is completed, choose Next in the Renesas GitHub FreeRTOS (with IoT libraries) Project window. 15. If you are not using an empty folder, the Copy Resources warning message appears.
  • Page 21: Configure Freertos

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 8. Configure FreeRTOS Follow the instructions under the heading Configuring the FreeRTOS demos for more details. 8.1 Header file for AWS IoT 8.1.1 Ethernet case  AWS client credential settings Check aws_demos/demos/include/aws_clientcredential.h and confirm 2 settings:...
  • Page 22: Cellular Case

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 8.1.2 Cellular case  AWS client credential settings Check aws_demos/demos/include/aws_clientcredential.h and confirm 4 settings: • clientcredentialMQTT_BROKER_ENDPOINT • clientcredentialIOT_THING_NAME • clientcredentialWIFI_SSID • clientcredentialWIFI_PASSWORD For “clientcredentialIOT_THING_NAME”, input name of the thing you created in 6.2.
  • Page 23 RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N  SIM Card settings Set up the 4 macros related to LTE in aws_demos/vendors/renesas/boards/ck-rx65n- in the demo project. ryz014a/aws_demos/src/smc_gen/r_config/r_cellular_config.h The settings will vary depending on the SIM you are using, so please check the SIM information.
  • Page 24: The Endpoint In Aws Iot

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 8.2 The endpoint in AWS IoT To find the endpoint for your account, use the AWS IoT console at console.aws.amazon.com/iot. In the left panel, choose Settings. The endpoint is listed under Custom endpoint as following snapshot: Figure 8-5 The endpoint in AWS IoT R01QS0065EJ0100 Rev.1.00...
  • Page 25: Build The Freertos Demo

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 9. Build the FreeRTOS demo Go to e studio, from Project menu, choose Build All R01QS0065EJ0100 Rev.1.00 Page 25 of 30 May.31.22...
  • Page 26: Run The Freertos Demo Project

    3. In Subscription topic, enter iotdemo/#, and then choose Subscribe to topic. 4. Successful demo run looks like following the picture. Figure 10-1 Successful demo run For the latest projects released by Renesas, see the renesas fork of the amazon-freertos repository on GitHub. R01QS0065EJ0100 Rev.1.00 Page 26 of 30 May.31.22...
  • Page 27: Debugging

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 11. Debugging 11.1 Open e studio to debug Make sure that debug configuration is same as the following setting. Figure 12-1 e studio debug setting R01QS0065EJ0100 Rev.1.00 Page 27 of 30...
  • Page 28: Tera Term

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 11.2 Tera term Open tera term to check port, baud rate, Data, Parity, Stop and Flow control.  Baud rate: 115200bps  Data: 8 bit  Parity: none  Stop: 1 bit ...
  • Page 29: Troubleshooting

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N 12. Troubleshooting 12.1 The Build errors Make sure that v202107.00-rx-1.0.0 is located to C: or D: drive or etc. Windows has a path length limitation of 260 characters. The path structure of FreeRTOS is many levels deep, so if you are using Windows, keep your file paths under the 260-character limit.
  • Page 30: Revision History

    RX65N Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N Revision History Description Rev. Date Page Summary 1.00 May.31.22 First published R01QS0065EJ0100 Rev.1.00 Page 30 of 30 May.31.22...
  • Page 31 Unit Products The following usage notes are applicable to all Microprocessing unit and Microcontroller unit products from Renesas. For detailed usage notes on the products covered by this document, refer to the relevant sections of the document as well as any technical updates that have been issued for the products.
  • Page 32 Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or any third parties arising from the use of any Renesas Electronics product that is inconsistent with any Renesas Electronics data sheet, user’s manual or other Renesas Electronics document.

Table of Contents