Getting Started Guide
R01QS0065EJ0100 Rev.1.00 Page 1 of 30
May.31.22
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 Other software required to develop and debug applications for the device ........................................... 6
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
RX65N
Connecting AWS Cloud with FreeRTOS Getting Started Guide for CK-RX65N
R01QS0065EJ0100 Rev.1.00 Page 2 of 30
May.31.22
8.1.1 Ethernet case .................................................................................................................................... 21
8.1.2 Cellular case...................................................................................................................................... 22
8.2 The endpoint in AWS IoT .................................................................................................................... 24
9. 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 ............................................................................................... 26
11. Debugging ..................................................................................................................................27
11.1 Open e
2
studio to debug ...................................................................................................................... 27
11.2 Tera term ............................................................................................................................................. 28
12. Troubleshooting ..........................................................................................................................29
12.1 The Build errors ................................................................................................................................... 29
Revision History .................................................................................................................................30