Review of CK-RA6M5 with RYZ014A Pmod Cloud Kit for RA6M5 Microcontroller.

Table of contents

RoadTest: Renesas CAT-M1 Cloud Kit CK-RA6M5

Author: work14

Creation date:

Evaluation Type: Development Boards & Tools

Did you receive all parts the manufacturer stated would be included in the package?: True

What other parts do you consider comparable to this product?: The CK-RX65N Cloud Kit for RX65N Microcontroller is comparable to this CK-RA6M5 product.

What were the biggest problems encountered?: The CK-RA6M5 board under review was lacking the IMU components due to availability issues. Some sample software was missing from the Renesas website, and Renesas engineers acknowledged the issue with promised resolution in the near future. Some of the available sample software requires a specific version of the SFP that is not the latest available, and care must be paid to this detail. The available documentation does not specify that serial port 5 is connected to the serial-to-USB port that connects to the external world.

Detailed Review:

Review of the CK-RA6M5 with RYZ014A Pmod Cloud Kit for RA6M5 Microcontroller.

The results and take away of the CK-RA6M5 with RYZ014A Pmod Cloud Kit  RoadTest are itemized below:

  1. Out of the box experience of the CK-RA6M5 with RYZ014A Pmod Cloud Kit is positive. All the hardware and software along with cloud IoT connectivity worked as expected.
  2. The CK-RA6M5 and RYZ014A Pmod hardware integration with the Renesas' Flexible Software Package (FSP) works well but with some effort.
  3. Building a simple IOT project is easily done with currently available online support from Renesas.
  4. The CK-RA6M5 kit hardware and software integration is excellent.
  5. All the sensors of the CK-RA6M5 board tested and worked well. This board is a highly capable hardware on its own that is easy to integrate with a number of remote embedded projects.
  6. Cloud connectivity was tested satisfactorily for both wired ethernet network and wireless cellular network. The CK-RA6M5 with RYZ014A Pmod Cloud Kit provides a solution that works out of the box.
  7. Documentation for the CK-RA6M5, the RYZ014A Pmod, the Flexible Software Package (FSP) was tested and reviewed. The available documentation is ample, readily available, and comprehensive with a few exceptions.
  8. The documentation itself was tested, and we found that most of the information needed was available in one form or another within the available online documentation. In this RoadTest we consider available sample software a form of documentation.
  9. We recommend the CK-RA6M5 board, the CK-RA6M5 with RYZ014A Pmod Cloud Kit and the Flexible Software Package (FSP) as an efficient starting platform for robotic projects, industrial automation and IoT solutions. 

Summary of Experience with the CK-RA6M5 with RYZ014A Pmod Cloud Kit and IoT Solution

Pro

  • Renesas' Flexible Software Package (FSP) is well integrated with the CK-RA6M5 hardware. 
  • Development with the FSP is relatively easy and well documented. 
  • Connectivity to the cloud via the ryz014a LTE cat-m1 cellular IoT module was fast and worked flawlessly the first time. 
  • The Renesas software worked well even when all work done in this review was performed on the Linux Operating System. No part of the work was done in the Windows OS. 
  • Documentation for the RA6M5 Microcontroller is readily available, numerous and with excellent attention to details.
  • The CK-RA6M5 with RYZ014A Pmod Cloud Kit functions as expected with cloud connectivity achieved within an hour of work after all the software and development environment is in place.
  • The development environment with the e2 Studio and the Flexible Software Package (FSP) compiles and works well.
  • Nominal functionality is immediately achieved out-of-the-box after powering and connecting the CK-RA6M5 to a terminal.
  • The Segger J-Link hardware/software integration works robustly and flawlessly. 

Con

  • The CK-RA6M5 board under review was lacking the IMU components due to availability issues. Bummer.
  • Some documented sample software was missing from the Renesas website, and Renesas engineers acknowledged the issue with promised resolution in the near future.
  • Documentation focuses on the Windows OS, and in some cases it specifies that it will not work in any other OS. However, all development work and testing for this RoadTest was successfully executed exclusively in the Linux OS.
  • Some of the available example software solutions for ethernet and wireless cellular connectivity for IoT development requires an older version of the FSP. This is not necessarily obvious to the user.
  • When compiling some autogenerated software, the compilation fails due to some typos and missing files. These are bugs that result from the software auto-generation step. The bugs themselves are relatively easy to find and correct, but they return every time the software stack is used to autogenerate the required files. 
  • Some information is hard to find. For example, finding which serial port is used to communicate via USB requires digging deep into the hardware files. 
  • Initial testing is straight forward as advertised. However, independent development away from the available examples requires a significant time investment. It is required that the user be thoroughly familiarized with the multitude of available options when integrating the software to the hardware.
  • This is a point of concern regarding the Renesas AWS solution, the fact that there is no way to easily provision the hardware under another ASW setup. The initial ASW setup must be done well with no mistakes.
  • Alternative solutions such as using Mosquito MQTT may be necessary if Renesas' AWS setup fails. 

Comments and Observations:

  • In-depth familiarization with the FSP software stack and how this integrates with the CK-RA6M5 hardware is a must, and it will take time to be proficient. 
  • The Renesas solution of the CK-RA6M5, the RYZ014A Pmod and the FSP works very well, but a novice will not master this integration in a short time as it seems is advertised. 
  • The expectation that mastering the software and hardware integration for the CK-RA6M5 - RYZ014A Pmod with the AWS IoT solution should be easy may detract some users when real issues inevitably arise. 
  • Some of the available sample software requires a specific version of the FSP that is not the latest available, and care must be paid to this detail.
  • The available documentation does not specify that serial port 5 is connected to the serial-to-USB port that connects the RA6M5 to the external world. This information was solely available in the hardware drawings documents.
  • Integration of the ARM embedded toolchain is problematic in the Linux OS. The documentation helps to troubleshoot the issues, but it was necessary to download the toolchain directly from the ARM page. Integration of the toolchain was a weak point in the Linux OS that took some time to resolve. Once the toolchain was in place, the e2 Studio had no subsequent issues with it.
  • Connecting to and accessing the AWS services is well documented. However, there is no room for mistakes. It is very important to not make mistakes at this junction. 
  • If a mistake is made when setting the AWS access, there is no readily and easily accessible way to undo the error such as provisioning the board under the wrong email address and related account. In this case connection to the IoT broker takes place, but no access to AWS services is possible.
  • This is a weak point of the Renesas solution, the fact that there is no way to easily provision the hardware under another AWS setup. The author understands the complexity of the necessary back-end security when implementing and IoT solution, but mistakes are made, and perhaps there should be a mechanism to use the same hardware under a different AWS setup.
  • The user of the CK-RA6M5 with the RYZ014A Pmod must work slowly and pay attention to details when setting up the Renesas AWS IoT solution
  • Attention to details is a must when setting up the AWS accounts. To undo a provisioning mistake may prove difficult. 
  • Novice engineers may find the hardware/software integration a little daunting, but everyone should be able to rise to the challenge and learn from working with this kit. 

Acknowledgment

Appreciation to Renesas and element14 for providing the opportunity to review the CK-RA6M5 cloud kit. The overall RoadTest review program is a great way to experience and learn about new hardware and software solutions, and to provide service to the community by submitting a review of the products. 

Table of Contents

General Overview element14 RoadTest

The RoadTest program is the element14 community’s flagship product review program. Testers obtain a product to experiment and to provide element14 a written review of their experiences with the product. The following are important points pertaining to this program.

  • Roadtesters are shipped the kit free of charge (including customs and/or other fees).
  • RoadTesters have 60 days from the receipt of the product to complete testing and review writing on element14.

  • The review must be filed on the special element14 Roadtest form.

  • Roadtesters who do not complete their reviews will not be eligible to participate in the program in the future.

RoadTest Renesas CAT-M1 Cloud Kit CK-RA6M5

This particular RoadTest  pertains to the Renesas CAT-M1 Cloud Kit CK-RA6M5. Building a simple IOT project is a way to test this product. The board has a number of sensors that will be tested and reviewed. This testing program will also connect the board to the Cloud. This review will share our experience of the product.

With Renesas’ (a) CK-RA6M5 cloud kit, (b) LTE Cellular CAT-M1 module RYZ014A  and (c) ethernet network connectivity options the kit:

  • offers a certified LTE cellular module
  • offers the ability to establish wireless connection between MCUs and cloud services
  • enables quick and secure connectivity without a gateway
  • enables users to securely connect to the cloud
  • enables users to explore the features of the Cortex®-M33 based  RA6M5 group of MCUs and cloud services
  • provides a seamless cloud connectivity experience to most of the global cloud service providers.

With Renesas Flexible Software Package (FSP) the kit:

  • has complete software stack support using FreeRTOS, AzureRTOS and other middleware stacks,
  • makes for an ideal platform for efficiently developing cloud solutions
  • greatly reduces the time-to-market.
  • is ready to connect to global cloud service providers such as AWS Cloud and IoT services.
  • designed to run on AWS (Amazon Web Services) FreeRTOS for CK-RA6M5 using FSP (Flexible Software Package)  and
  • Once connected to AWS IoT Core , the kits have access to many Cloud and IoT services from AWS for data analytics and IoT device management.

RoadTest Goals

  • Test the out of box experience of the product.
  • Building a simple IOT project would be an ideal way to test this product.
  • The board has a number of sensors, so those could be tested and reviewed.
  • Connecting it to the Cloud would be another thing to be tested.
  • Testing the documentation should be included in the roadtest.
  • The review should share your experience of the product.

Documentation Summary

CK-RA6M5 RYZ014A Pmod Flexible Software Package (FSP) Other
ck-ra6m5 cloudkit ryz014a LTE cat-m1 cellular IoT module Flexible Software Package (FSP) GNU Arm Embedded Toolchain 10.3-2021.10
ra6m5 200mhz arm-cortex-m33 RA AWS MQTT/TLS Cloud Connectivity Solution github Renesas FSP releases Quick FSP 2.0.0 Labs
ck-ra6m5 Quick Start Guide RA AWS MQTT/TLS Cellular Application Project FSP v420 Users Manual https://renesas.micro.ai/launchpad
ck-ra6m5 User Manual RA AWS MQTT/TLS Cloud Connectivity Solution - Ethernet RA Family Knowledge Base
CK-RA6M5 Design Package RA AWS MQTT/TLS Ethernet Application Project

Segger J-Link / J-Trace Downloads

renesas / ra-fsp-examples

FSP Videos & Training

Additional material available on the following web pages

  1. RA Landing Page: https://www.renesas.com/ra
  2. FSP Landing Page: https://www.renesas.com/fsp
  3. Example Projects on GitHub: https://github.com/renesas/ra-fsp-examples
  4. Quick FSP Labs Listing: https://en-support.renesas.com/knowledgeBase/19308277
  5. RA and FSP Knowledge Base (with articles of interest on RA and FSP): https://en-support.renesas.com/knowledgeBase/category/31087
  6. RA and FSP Renesas Rulz site (Community posted and answered questions): https://renesasrulz.com/ra/
  7. FSP Releases: https://github.com/renesas/fsp/releases
  8. FSP Documentation: https://renesas.github.io/fsp
  9. Online Technical Support: https://www.renesas.com/us/en/support/contact.html
  10. Renesas RA RX cloud solutions

First Impressions of Renesas CAT-M1 Cloud Kit CK- RA6M5

First Sixty Seconds First Five Minutes First Hour First 24 Hours
  • Product is well packaged.
  • All instructions and Quick Start Guide readily available.
  • Immediate available notice that the IMU components were missing from the CK-RA6M5 due to supply chain challenges.
  • Read the Quick Start Guide. 
  • Fetch soft copies of the documentation pertaining to this product.
  • Product links all work well.
  • Read, read, read.
  • Get all necessary software running in Linux.
  • Install Renesas software tools such as Flexible Software Package and e2-Studio (based on Eclipse IDE).
  • Connect the board. Nominal functionality works as advertised.
  • Adequate number of documentation available for this product. 
  • Renesas does a great job at documenting both the hardware and the software with good in-depth relevant details.
  • Easily accessible large body of Knowledge Base Documents, Application Notes, Software Documents and some detailed Hardware Documents such as Hardware Design Package. 
  • Good tools and excellent documentation make for a fun time learning about and interacting with the CK-RA6M5.

Project Description

The CK-RA6M5 cloud kit enables users to securely connect to the cloud and explore the features of the Cortex®-M33 based RA6M5 group of MCUs and cloud services.  In particular, the cloud and IoT services from AWS are used for data analytics and IoT device management.

This RoadTest will (1) review Renesas’ LTE Cellular CAT-M1 module RYZ014A and ethernet network connectivity options. We will also (2) review Renesas Flexible Software Package (FSP) and its complete software stack support using FreeRTOS with the hope to efficiently develop cloud solutions and in a short time. We will (3) test the cloud kit  equipped with Renesas’ RYZ014A Cat-M1 module which is a certified LTE cellular module that offers the ability to establish wireless connection between MCUs and cloud services quickly and securely without a gateway.

Renesas claims -- and this RoadTest will test -- that the kit is (4) ready to connect to global cloud service providers such as AWS Cloud and IoT services. The  CK-RA6M5 with RYZ014A Pmod Cloud Kit  is designed to run on AWS (Amazon Web Services) FreeRTOS using FSP (Flexible Software Package). Once connected to AWS IoT Core, we will (5) test access to the Cloud and IoT services from AWS for data analytics and IoT device management.

In summary, this RoadTest will:

  1. review Renesas’ LTE Cellular CAT-M1 module RYZ014A and ethernet network connectivity options by compiling the software solution, uploading the program to the hardware, and testing the connectivity via wired ethernet network and over the air cellular network
  2. review Renesas Flexible Software Package (FSP) and its complete software stack support using FreeRTOS.
  3. test the cloud kit  equipped with Renesas’ RYZ014A Cat-M1 module and how seamless this solution works
  4. connect to global cloud service providers such as AWS Cloud and IoT services

Main Function and Use:

The CK-RA6M5 aims to simplify the process of IoT solution prototyping. The board contains a suite of sensors that can be programmed with the Renesas Flexible Software Package (FSP). A key feature of this kit is the RYZ014A Pmod  that provides cellular connectivity to the RA6M5. The following links provides an overview  of this package and its key features, benefits and use cases of using cellular connections. 

Cloud Kit Overview 

Simplify Cellular-to-Cloud Development with the Renesas Cloud Kits CK-RA6M5 and CK-RX65N

CK-RA6M5 Kit Features:

• LTE CAT-M1 with RYZ014A Pmod
• Ethernet
• 0 Full Speed Host and Device
• Multiple on-board sensors
• 2 MEMS microphones
• 2-pin header for battery connector
• 5V input through USB or external power supply
• USB-serial converter
• Debug on-board2 Digilent Pmod (SPI/UART/I2
• C) connectors
• MCU and Pmod current measurement points
• Arduino (Uno R3) connector

Evaluation Kit Details:

The essence of the CK-RA6M5 hardware and software package consists of the following three items:

  1. RA and RX families of 32-bit MCUs with a suite of onboard sensors. 
  2. connectivity to the cloud provided by the RYZ014A LTE Cellular CAT-M1 module and CK-RA6M5 Ethernet network 
  3. Renesas Flexible Software Package (FSP) provides the means to efficiently develop cloud solutions

CK-RA6M5 Kit Contents

  • CK-RA6M5 v1 board
  • RYZ014A PMOD (CAT-M1 Cellular Module)
  • Micro USB to A cable
  • Micro USB A/B to A adapter cable
  • SIM card
  • Antenna

MCU Features


R7FA6M5BH3CFC MCU (referred to as RA MCU)
• 200 MHz, Arm® Cortex®-M33 core
• 2 MB Code Flash, 8 kB data flash, 512 kB SRAM
• 176 pins, LQFP package
• MCU current measurement points for precision current consumption measurement
• Multiple clock sources - RA MCU oscillator and sub-clock oscillator crystals, providing precision 
24.000 MHz and 32,768 Hz reference clock. Additional low-precision clocks are available internal to the RA MCU 

CK-RA6M5 Onboard Sensors

  • Humidity & Temp
  • Indoor Air Quality
  • Outdoor Air Quality
  • Biometric
  • Barometric Pressure
  • IMU Gyroscope/Accelerometer/Magnetometer
  • MEMS Microphones

Unboxing the CK-RA6M5 kit

The following pictures shows the Renesas CK=RA6M5 kit as it arrived and is first opened:

image

The printed documentation found in the box include:

  • CK-RA6M5 Release Notes V1
  • RYZ014A Pmod Quick Start Guide
  • Declaration of Conformity US
  • Declaration of Conformity UK
  • Electronic Europe GmbH information
  • Hazardous Material List

The electronic components are well packaged in anti-static bags as shown below.

image

Hardware Description

The picture gallery below illustrates the various hardware components for the CK-RA6M5 kit.

{gallery}

CK-RA6M5 with RYZ014A Pmod Cloud Kit

image

IMAGE TITLE: CK-RA6M5 Board

image

IMAGE TITLE: CK-RA6M5 with Connected Pmod

image

IMAGE TITLE: CK-RA6M5 Cloud Kit

image

Key components called out on the RA6M5

image

Expansion connectors on the RA6M5 and RX65N cloud kits

First Contact:

The following link to the quick start guide offers an overview of the power up and interacting with the CK-RA6M5.

Cloud Kit for RA6M5 Microcontroller Group CK-RA6M5 with RYZ014A Pmod Quick Start Guide

This RoadTest uses Linux OS instead of the Windows OS environment. Teaching how to use Linux OS is beyond the scope of this review. Henceforward some experience with the Linux OS is expected. 

After first connecting the CK-RA6M5 Board to the host computer via the on-boad debug USB Connector J14 we execute the Linux dmesg command in a terminal to find information regarding the board:

simon@debian:~$ sudo dmesg
[ 5230.478494] usb 2-3: new full-speed USB device number 5 using xhci_hcd
[ 5230.628542] usb 2-3: New USB device found, idVendor=1366, idProduct=0101, bcdDevice= 1.00
[ 5230.628549] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5230.628569] usb 2-3: Product: J-Link
[ 5230.628572] usb 2-3: Manufacturer: SEGGER
[ 5230.628575] usb 2-3: SerialNumber: 000831017019

Next we connect the USB to Serial Connector J20. This time we get:

simon@debian:~$ sudo dmesg
[ 8414.580198] usb 2-4: new full-speed USB device number 6 using xhci_hcd
[ 8414.735121] usb 2-4: New USB device found, idVendor=045b, idProduct=8111, bcdDevice=10.00
[ 8414.735129] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 8414.735133] usb 2-4: Product: Renesas RSK USB Serial Port
[ 8414.735136] usb 2-4: Manufacturer: Renesas Electronics Corporation
[ 8414.735139] usb 2-4: SerialNumber: 0000000000001
[ 8414.737079] cdc_acm 2-4:1.0: ttyACM0: USB ACM device

The above information tells us that the RA6M5 USB to Serial registers as /dev/ttyACM0. In Linux we use screen to communicate via the serial port as shown below.

simon@debian:~$ sudo screen /dev/ttyACM0 115200

> Select from the options in the menu below:

MENU
 1. Get FSP version
 2. Data flash
 3. Get UUID
 4. Get CATM Info
 5. Start Application
 6. Help

At this point we are successfully interacting with the CK-RA6M5 board. 

Software Description:

The heart of the software solution for Renesas CK-RA6M5 Cloud Kit is the Flexible Software Package (FSP). Various flavors (including Linux) of the FSP can be found at the Renesas GitHub FSP Development Site. The FSP is an enhanced software package designed to provide easy-to-use, scalable, high-quality software for embedded system designs using Renesas RA Family of Arm Microcontrollers. The FSP with e² studio Installer (Platform Installer) should  install the following soft:ware components:

  1. Segger J-Link drivers required to use this software.
  2. Flexible Software Package (FSP)
    1. e² Studio tool via FSP
    2. FSP packs 
    3. GCC toolchain 

An informative link for the FSP follows:

Real-Time OS Program Development that Even a Super Beginner Can Do

The e² Studio tool is based on the popular Eclipse IDE. The e² Studio covers all development processes, from the downloading of sample code to debugging. The The e² Studio is included in the Flexible Software Package (FSP).

The GCC toolchain used in the RoadTest can be found in GNU Arm Embedded Toolchain Downloads page.  The latest GNU tools require a license package that makes the installation process a little bit more involved. 

The Segger J-Link drivers worked flawlessly. We installed the stand alone version for Linux, and test it independently before debugging with the e² Studio

Segger J-Link

To Segger J-Link / J-Trace tools, first download the appropriate driver. For the Linux OS we have:

$ sudo apt install JLink_Linux_V784_x86_64.deb 

The result is the software installed in /usr/bin

simon@debian:/usr/bin$ ls JL*
JLinkConfig          JLinkGUIServer          JLinkRemoteServer       JLinkRTTLoggerExe  JLinkSWOViewer_CL
JLinkConfigExe       JLinkGUIServerExe       JLinkRemoteServerCLExe  JLinkRTTViewer     JLinkSWOViewerCLExe
JLinkExe             JLinkLicenseManager     JLinkRemoteServerExe    JLinkRTTViewerExe  JLinkSWOViewerExe
JLinkGDBServer       JLinkLicenseManagerExe  JLinkRTTClient          JLinkSTM32
JLinkGDBServerCLExe  JLinkRegistration       JLinkRTTClientExe       JLinkSTM32Exe
JLinkGDBServerExe    JLinkRegistrationExe    JLinkRTTLogger          JLinkSWOViewer

Test Segger J-Link

The device target for the CK-RA6M5 is R7FA6M5BH. This can be obtained from the default Quick Start Example Project embedded in the kit upon first power on. This MCU type is also found in the ck-ra6m5 Quick Start Guide under the kit overview section. In this document relevant MCU features are listed as:

MCU Features

R7FA6M5BH3CFC MCU (referred to as RA MCU)
• 200 MHz, Arm® Cortex®-M33 core
• 2 MB Code Flash, 8 kB data flash, 512 kB SRAM
• 176 pins, LQFP package
Whit this information connect to the target as shown below

simon@debian:/usr/bin$ ./JLinkExe 
SEGGER J-Link Commander V7.84 (Compiled Dec 14 2022 16:00:29)
DLL version V7.84, compiled Dec 14 2022 16:00:03

Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-S124 compiled Dec  7 2022 12:53:45
Hardware version: V1.00
J-Link uptime (since boot): 0d 01h 00m 36s
S/N: 831017019
VTref=3.300V


Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: R7FA6M5BH
Type '?' for selection dialog
Device>R7FA6M5BH
Please specify target interface:
  J) JTAG (Default)
  S) SWD
  T) cJTAG
TIF>S
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "R7FA6M5BH" selected.

The result of the successful connection is shown below.

Connecting to target via SWD
ConfigTargetSettings() start
Configuring FlashDLNoRMWThreshold=0x200 in order to make sure that option bytes programming is done via read-modify-write
ConfigTargetSettings() end
Found SW-DP with ID 0x6BA02477
DPIDR: 0x6BA02477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x84770001)
AP[1]: APB-AP (IDR: 0x54770002)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FE000
CPUID register: 0x410FD214. Implementer code: 0x41 (ARM)
Feature set: Mainline
Found Cortex-M33 r0p4, Little endian.
FPUnit: 8 code (BP) slots and 0 literal slots
Security extension: implemented
Secure debug: enabled
CoreSight components:
ROMTbl[0] @ E00FE000
[0][0]: E0044000 CID B105900D PID 005BB906 DEVARCH 00000000 DEVTYPE 14 CTI (?)
[0][1]: E0047000 CID B105900D PID 003BB908 DEVARCH 00000000 DEVTYPE 12 CSTF
[0][2]: E0048000 CID B105900D PID 001BB961 DEVARCH 00000000 DEVTYPE 21 ETB
[0][3]: E0049000 CID B105F00D PID 001BB101 TSG
[0][4]: E0040000 CID B105900D PID 000BBD21 DEVARCH 00000000 DEVTYPE 11 TPIU
[0][5]: E00FF000 CID B105100D PID 000BB4C9 ROM Table
ROMTbl[1] @ E00FF000
[1][0]: E000E000 CID B105900D PID 000BBD21 DEVARCH 47702A04 DEVTYPE 00 Cortex-M33
[1][1]: E0001000 CID B105900D PID 000BBD21 DEVARCH 47701A02 DEVTYPE 00 DWT
[1][2]: E0002000 CID B105900D PID 000BBD21 DEVARCH 47701A03 DEVTYPE 00 FPB
[1][3]: E0000000 CID B105900D PID 000BBD21 DEVARCH 47701A01 DEVTYPE 43 ITM
[1][5]: E0041000 CID B105900D PID 002BBD21 DEVARCH 47724A13 DEVTYPE 13 ETM
[1][6]: E0042000 CID B105900D PID 000BBD21 DEVARCH 47701A14 DEVTYPE 14 CSS600-CTI
SetupTarget() start
Determining TrustZone configuration...
  Secure Debug: Enabled (SSD)
Determining currently configured transfer type by reading the AHB-AP CSW register.
  --> Correct transfer type configured. Done.
SetupTarget() end
Memory zones:
  Zone: Default Description: Default access mode
Cortex-M33 identified.
J-Link>

This exercise gives us confidence that we have a working JLink connection to the larget. 

GNU Embedded Toolchain

The ARM online page GNU Arm Embedded Toolchain contains the appropriate ARM toolchain to download. In the case for this present RoadTest, the toolchain to downloaded was

gcc-arm-none-eabi-10.3-2021.10-x86_64

This GNU toolchain above is independent of the Renesas FSP package. In this present RoadTest work using the Linux OS, the FSP toolchain integration did not work, and the above independent toolchain has to be used instead. To add the toolchain, the steps outlined below in section First Run of the e2 Studio below shows the details of how to do this.

Installation of the Flexible Software Package (FSP)

Disclaimer: Note that all development for this current RoadTest was done in the Debian Linux Operating System

The following link provides an introduction to the FSP in some detail.

FUNDAMENTALS OF FSP

The document  

I-002A Fundamentals of FSP (Non-Trustzone, FSP3.6.0).pdf

is of particular interest. What follows is an instance of some of the points made in the above FSP Lab. A caveat is the this present RoadTest work was done in Linux OS in its entirety. 

Download the appropriate FSP at this page:

https://github.com/renesas/fsp/releases

This will take the user to the latest version of the FSP. Please notice that some of the example software work with an earlier version of the FSP since some of the software stack are not updated for the latest FSP version. Updating the software stacks was a more arduous task than using an earlier version of the FSP. The most up-to-date version of the FSP that worked with the software used in this RoadTest was FSP version 3.8 found in this link below and illustrated in the figure underneath the link.

https://github.com/renesas/fsp/releases/tag/v3.8.0

image

After download of the proper version of the FSP, in Linux we have:

 setup_fsp_v3_8_0_e2s_v2022-04.AppImage
 setup_fsp_v4_2_0_e2s_v2022-10.AppImage
simon@debian:~/Downloads$ 

In the above we have the latest FSP and the 3.8 version of the FSP that is the latest version compatible with the software tested in the RoadTest.

Next, install the software by executing the following:

simon@debian:~/Downloads$ ./setup_fsp_v4_2_0_e2s_v2022-10.AppImage 

Follow the installation instructions. Carefully select the GCC ARM Embedded toolset as an installation option as shown below.

image

Before installing the FSP, verify that the GCC ARM Embedded toolset will be installed as shown in the figure below.

image

First Run of the e² Studio

Start the e² Studio via the command line using sudo command.

simon@debian:~/renesas/ra/e2studio_v2022-10_fsp_v4.2.0/eclipse$ ls -l
total 576
-rw-r--r--   1 simon simon 232774 Jan  8 11:20 artifacts.xml
drwxr-xr-x  13 simon simon   4096 Jan  8 12:34 configuration
drwxr-xr-x   2 simon simon   4096 Jan  8 11:18 dropins
-rwxr-xr-x   1 simon simon  87960 Oct 13 14:10 e2studio
-rw-r--r--   1 simon simon    511 Jan  8 12:31 e2studio.20230108123101.ini
-rw-r--r--   1 simon simon    491 Jan  8 12:31 e2studio.ini
drwxr-xr-x 101 simon simon  12288 Jan  8 11:20 features
-rwxr-xr-x   1 simon simon 138674 Oct 13 14:10 icon.xpm
-rw-r--r--   1 simon simon   9260 Sep 13 13:14 notice.html
drwxr-xr-x   5 simon simon   4096 Jan  8 12:33 p2
drwxr-xr-x  34 simon simon  73728 Jan  8 11:20 plugins
drwxr-xr-x   2 simon simon   4096 Jan  8 11:18 readme
simon@debian:~/renesas/ra/e2studio_v2022-10_fsp_v4.2.0/eclipse$ ./e2studio 

The  e² Studio complains that there is no toolchain available.

image

To fix this issue, proceed to Help > Add Renesas Toolchain then select Download

image

If this fails, then proceed to Help > Add Renesas Toolchain then select Add. This time navigate to the place where the toolchain resides, select the toolchain in your filesystem and apply the selection.

image

To verify correct compiler settings, quit the e² Studio. Start again as before, and verify that no warning is shown which will indicate that the GNU toolchain has been properly integrated. 

Learning and Experimenting with the CK-RA6m5 and the e² Studio

The following is a link to the Renesas knowledge base where developer can find helpful information. In this case we focus in the RA Family tab to find ready help.

RA and FSP Technical Articles

Software Review

Renesas online documentation is excellent and nearly comprehensive. Renesas has done a great job at documenting the software and the hardware; all that is needed is access to hardware, the internet and time. Available documentation is impressive in breath and depth. Even then some documentation is not available such as documentation related to examples that applies to the latest CK-RA6M5 hardware, but this is understandable. Even then, available documentation and project examples for similar boards are adaptable to the  CK-RA6M5.  The following are links to some essential online documentation. 

RA Flexible Software Package Documentation

Example Project Usage Guide.pdf

CK_RA6M5 example projects

Additional material available on the following web pages

  1. RA Landing Page: https://www.renesas.com/ra
  2. FSP Landing Page: https://www.renesas.com/fsp
  3. Example Projects on GitHub: https://github.com/renesas/ra-fsp-examples
  4. Quick FSP Labs Listing: https://en-support.renesas.com/knowledgeBase/19308277
  5. RA and FSP Knowledge Base (with articles of interest on RA and FSP): https://en-support.renesas.com/knowledgeBase/category/31087
  6. RA and FSP Renesas Rulz site (Community posted and answered questions): https://renesasrulz.com/ra/
  7. FSP Releases: https://github.com/renesas/fsp/releases
  8. FSP Documentation: https://renesas.github.io/fsp
  9. Online Technical Support: https://www.renesas.com/us/en/support/contact.html

Available documentation by itself makes Renesas hardware and software worth the effort. On this account, Renesas products and CK-RA6M5 kit is highly recommended. The following are some points that pertains to the available software.

  1. The FSP along with the e² Studio make for a good professional level development tool. 
  2. The software stacks are comprehensive. Full familiarization with the FSP software stacks will take time however.
  3. There is a large number of viable combinations when integrating the software and the hardware.
  4. Ample documentation is readily available, but development, testing and validation will take time. There are no shortcuts.

Hardware/Software Integration, Development and Testing

Development Environment

The following is a picture of the FSP development components and how they integrate with the  CK-RA6M5 and the cloud.

image

To get a project running the developer needs four essential steps. 

  1. Start by launching e² studio.
  2. Select File → New project → ‘Renesas C/C++ Project’ → ‘Renesas RX’→’Renesas CC-RX C/C++ Executable Project’.
  3. Enter the project name.
  4. Start the project by selecting the RTOS type/board used/MCU. 

More details can be found in the sections below. The following link lists Introductory RA and FSP courses:

RA and FSP Curriculum: Introductory Courses

Hardware/Software integration Demonstration Projects

Renesas provides excellent documentation on hardware, software, and knowledge base. Renesas has labs available for learning, testing and experimenting. The following link is a landing page for older version of FSP, but it is still relevant for more recent versions. The labs are also meant to be for other hardware kits (EK-RA6M3) other than the CK-RA6M5, but they are adaptable to the kit under review. 

FSP Starting Development

Quick FSP 1.0 Labs: Available Labs

Creating Blinky from Scratch

A first test for both the hardware and the software is to create an equivalent 'Hello World" hardware/software integration demonstration project. Renesas provides a tutorials and knowledge base labs to do just this in the following link: 

Tutorial Blinky

Creating Blinky from Scratch Lab

HELLO WORLD! – HELLO BLINKY!

For the CK-RA6M5 and the e2Studio with FSP, the following steps will work. More detailed guidance can be found in the links above.

1. Start a new project 

image

2. Care regarding choosing the board. In our case is the R7FA6M5BH board.

image

3. Care must be given to selecting the appropriate compiler toolchain. In our case it is the GNU ARM 10.3.1.20210824.

image

4. Finish the other selections as appropriate.

image

image

5. Go to the Project Explorer window of e2 studio and select the configuration.xml file. In the graphical editor in the mid-pane select the Clocks pane (18 in the figure below), ensure that the PLL source is set to HOCO (19 in the figure below). Now click the Generate Project Content button in the top right corner (20).

image

6. Follow the instructions in the links above in this section to compile the code. The compilation result should be something as shown in the figure below.

image

7. Right-Click on the name of the program and select Debug As to create a new Debug configuration as shown below.

image

8. Give care to select the proper hardware to debug when asked. In our case the hardware is the R7FA6M5BH board as shown below.

image

9. The debug process will continue and the program will stop at a hardware breakpoint. Press the Resume arrow (28 below) to continue with the debug process. 

image

10. The LEDs in the board should be blinking now. 

Using Segger J-Link RTT for Output

This lab session guides you through the process of using the Segger Real Time Transfer (RTT) function in an RA FSP Project within e2 studio. The link is shown below.

Using RTT for Output

This project needs the Segger J-Link and Segger RTT tools from the product landing page below. The steps on how to do this have been reviewed and documented earlier in this RoadTest.

https://www.segger.com/downloads/jlink/

Once installed, the Segger J-Link RTT Viewer should be available, as seen below. Open the RTT Viewer to bring it up on your PC. The configuration window first appears as shown below.

image

Select Existing Session and a Search Range for the RTT Control Block as shown above. Reader should be aware that the RTT range was not auto-detect in this particular board. For the CK-RA6M5 board we had to enter the address range manually (0x20000000 0x8000). This is also specified in the Renesas Example Project Usage Guide (look for the link down in this page) in section "6.1 Limitations in connecting with J-Link RTT Viewer v7.68b or later".  The recommendation is to do the following:

Search _SEGGER_RTT variable in the map file, generated upon successfully building a configuration of
an Example Project, which is by default located in the address space for On-chip SRAM. 
Apply a search range within the first 32kB of SRAM Memory. Adding multiple ranges may help.

Upon successful connection to an on-going debug session, the RTT outputs should be visible in the RTT Viewer as shown below. 

image

Testing the Serial Port for Input/Output

This project initializes the UART with baud rate of 115200 bps. Open Serial Terminal with this baud rate value and provide Input ranging from 1 - 100 to set LED Intensity. See the RTT output below.

image

The following pictures show the LED output set at 10, 50 and 100 respectively. 

image

Cloud Kit Based on RA6M5 MCU Group

The following link is the home site for experimenting with the cloud kit.

Cloud Kit Based on RA6M5 MCU Group

A summary of pertinent documents are below:

AWS Dashboard for CK-RA6M5 and CK-RX65N Application Note

Cloud Kit for RA6M5 Microcontroller Group CK-RA6M5 with RYZ014A Pmod Quick Start Guide

RA AWS MQTT/TLS Cloud Connectivity Solution - Cellular

RA AWS MQTT/TLS Cloud Connectivity Solution - Ethernet

Note: FSP Compatibility Issues

The available sample software (links found above) for the connectivity test was compatible with FSP version 3.7.0 to 3.8.0. FSP versions above 3.8.0 implement changes to the software stack that render the example software unable to compile. It is possible to troubleshoot the software an upgrade to the latest FSP, but this is beyond the scope of this review. For the purpose of this RoadTest it is necessary to downgrade to FSP version 3.8.0 for the following examples. All of the previous tests compile and run equally successfully in this version of the FSP.

Note: FSP Configuration Error

When compiling some of the software we may encounter errors such as the one shown in the picture below

image

In Linux OS we can find the problem by looking for the files that are not found as shown below:

simon@debian:~/e2_studio/workspace38/aws_ck_ra6m5_ethernet_app$ find . -name FreeRTOS*
./Debug/ra/aws/FreeRTOS
./Debug/ra/aws/FreeRTOS/FreeRTOS
./Debug/ra/aws/FreeRTOS/FreeRTOS-Plus
./Debug/ra/aws/FreeRTOS/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP
./ra_cfg/aws/FreeRTOSIPConfig.h
./ra_cfg/aws/FreeRTOSConfig.h

It is now easy to see that the e2 studio configuration tools make a mistake when writing the header files automatically. The autogenerated files expect a name FreeRTOSconfig.h for a file, but the actual file is named FreeRTOSConfig.h.  This is a typo and a bug that needs correction from Renesas. In our case we simple correct the error by correcting the typo and recompile. Repeat as necessary.

In another instance, the compile step fails because is missing a file named iot_crypto.h. In this case the solution is to add the crypto stack as illustrated in the figure below.

image

If the file "AWS_clientcredential.h is missing, the the following software sacks may be missing as well. Select the stack, re-generate the software, and redo.

image

Registering to Renesas AWS Cloud Dashboard

To access Renesas AWS cloud dashboard, the kit must be registered at  renesas.cloud-ra-rx.com . Follow the instructions in the AWS Dashboard for CK-RA6M5 and CK-RX65N Application Note to provision the device and have access to Renesas AWS dashboard.  

NOTE: Sign up at https://www.renesas.cloud-ra-rx.com/ with an email that was not used previously for signing up for an AWS account. This is important to do. Follow the instructions in the application note:

AWS Dashboard for CK-RA6M5 and CK-RX65N Application Note

Cloud Kit for RA6M5 Microcontroller Group CK-RA6M5 with RYZ014A Pmod Quick Start Guide

RA AWS MQTT/TLS Cloud Connectivity Solution - Cellular

RA AWS MQTT/TLS Cloud Connectivity Solution - Ethernet

Cloud Kit Based on RA6M5 MCU Group

https://cloud-ra-rx.awsapps.com/start#/

To obtain the device UUID, compile and run one of the Ethernet or Cellular applications below. Once the application compile and runs, the following interactive menu allows the user to obtain the information needed:

MENU
 1. Get FSP version
 2. Data flash
 3. Get UUID
 4. Start Application
 5. Help

Follow the instructions in the Ethernet or Cellular application to register to Renesas AWS. Once registration has been successful as shown in the figure below, we get access to the provisioning certificate that we must upload to the CK-RA6M5 board. 

image

For the Linux OS we could use three tools to upload the certificates and other related information unto the CK-RA6M.

1. screen /dev/ttyACM0 115200 

This command allows us to interact with the board via the command line. It is simple and fast. However, the screen output gets corrupted at times, and therefore this is not a reliable tool to use to upload sensitive data.

2. putty 

Putty is a popular tool used in the Windows world. The Linux version works well, but in the Linux OS this tool can prove difficult to use to upload data to the board. 

3. hterm

The following is a link to the Hterm developer site.

https://www.der-hammer.info/pages/terminal.html

This tool proved to be the most reliable to upload the provisioning files to the CK-RA6M5 board. 

The user in Linux should enable the user account to be part of the usergroput to which the serial device belongs. In the Linux case the serial port access is via the USB port:

/dev/ttuACM0

To find the usergroup to which this port belong we type at the command line:

simon@debian:~$ ls -l /dev/ttyACM0 
crw-rw----+ 1 root dialout 166, 0 Jan 16 02:00 /dev/ttyACM0

Next we verify that the user does not belong to this usergroup already

simon@debian:~$ id -Gn simon
simon adm cdrom floppy sudo audio dip video plugdev netdev bluetooth lpadmin scanner

Next add user to the proper usergroup 

simon@debian:~$ sudo usermod -a -G dialout simon

Verify that the user is a member of the dialout usergroup. 

simon@debian:~$ id -Gn simon
simon adm dialout cdrom floppy sudo audio dip video plugdev netdev bluetooth lpadmin scanner

Restart Linux OS. Now all terminal emulator applications will work with the serial port without any issues. Use one of the methods mentioned above to interact with the CK-RA6M5 kit. Follow the instructions in the application note below and the links in the next two sections to upload the provisioning files to the board and to access the AWS dashboard.

AWS Dashboard for CK-RA6M5 and CK-RX65N Application Note

It is very important to pay attention to details and to follow the instructions in the various notes. 

RA AWS MQTT/TLS Cloud Connectivity Solution - Ethernet

The following link contains the application note and the source code for this program.

RA AWS MQTT/TLS Cloud Connectivity Solution - Ethernet

Cloud Kit Based on RA6M5 MCU Group

AWS Dashboard for CK-RA6M5 and CK-RX65N Application Note

The source guide (1) will contain details that guide the user through the necessary steps. The source code (2) should be downloaded and compiled as per the above instructions. 

image

Import the software (2 in the above figure) to the e2studio workspace and compile. For the purpose of the RoadTest we limit to post the results. The relevant necessary steps to compile and run the software have been documented in various sessions above. 

The following illustrate that the process outlined in the various Renesas documents linked above result in successful upload to the CK-RA6M5 board of the credential information necessary for IoT communications. 

> Select from the options in the menu below:

MENU
 1. Get FSP version
 2. Data flash
 3. Get UUID
 4. Start Application
 5. Help

1. GET FSP VERSION

   3.8.0

> Press space bar to return to MENU

3. GET UUID

   RA MCU 128-bit Unique ID (hex) :  2xxx-5xxx-3xxx-4xxx

> Press space bar to return to MENU

2. DATA FLASH

 a) Info
 b) Write Certificate 
 c) Write Private Key 
 d) Write MQTT Broker end point
 e) Write IOT Thing name
 f) Read Flash
 g) Check credentials stored in flash memory
 h) Help

> Press space bar to return to MENU

CHECK CREDENTIALS STORED IN DATA FLASH

 Certificate saved in data flash is verified and successful
 Private key saved in data flash is verified and successful
 MQTT end point saved in data flash is verified and successful
 IOT thing name saved in data flash is verified and successful

The following steps were successfully performed as per Renesas instructions:

  1. Certificate saved in data flash is verified and successful

  2. Private key saved in data flash is verified and successful

  3. MQTT end point saved in data flash is verified and successful

  4. IOT thing name saved in data flash is verified and successful

Once the application runs we can see that it connects to the the Renesas AWS successfully as detailed below.

Starting AWS cloud Application....

********************************************************************************
*   Renesas FSP Application Project for AWS Core MQTT                         *
*   Application Project Version 1.2                                            *
*   Flex Software Pack Version  3.8.0                                          *
********************************************************************************
Refer to Application Note for more details on Application Project and
FSP User's Manual for more information about AWS Core MQTT
********************************************************************************


--------------------------------------------------------------------------------
Ethernet adapter Configuration for Renesas CK-RA6M5: Pre IP Init
--------------------------------------------------------------------------------

waiting for network link up

--------------------------------------------------------------------------------
Ethernet adapter Configuration for Renesas CK-RA6M5: Post IP Init
--------------------------------------------------------------------------------


Ethernet adapter for Renesas CK-RA6M5:
        Description . . . . . . . . . . . : Renesas CK-RA6M5 Ethernet
        Physical Address. . . . . . . . . : 00-x-x-x-x-x
        DHCP Enabled. . . . . . . . . . . : Yes
        IPv4 Address. . . . . . . . . . . : 10.x.x.x
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.x.1.1
        DNS Servers . . . . . . . . . . . : 10.x.1.1

DNS Lookup for "a3p0zg4970tbb2-ats.iot.us-east-1.amazonaws.com" is      : 54.83.24.232
Successful MQTT Connection to the end point a3p0zg4970tbb2-ats.iot.us-east-1.amazonaws.com
Device is Ready for Publishing and Subscription of Messages

HS3001 sensor setup success
OB1203 sensor setup success
ZMOD4410 sensor setup success
ZMOD4510 sensor setup success
ICM30498 sensor setup success
ICM20948 sensor setup success

ICP data  083.390
ICP data  99494.812
Msg Sequence Number = 10
Topic Received from Cloud for OB1203 Sensor Data
OB1203 data  081.000
OB1203 data  041.000
OB1203 data  005.000
OB1203 data  000.000
Msg Sequence Number = 11
Topic Received from Cloud for IAQ Sensor Data
IAQ data tvoc  000.017
IAQ data etoh  000.009
IAQ data eco2  400.176
Msg Sequence Number = 12
Topic Received from Cloud for OAQ Sensor Data
OAQ data  000.000
Msg Sequence Number = 13
Topic Received from Cloud for HS3001 Sensor Data
HS3001 data  017.379
HS3001 data  081.571
Msg Sequence Number = 14
Topic Received from Cloud for ICM Sensor Data
ICM data acce 000.000
ICM data acce 000.000
ICM data acce 8192.000
ICM data mag 000.000
ICM data mag 000.000
ICM data mag 000.000
ICM data gyr 000.000
ICM data gyr 000.000
ICM data gyr 001.000
Msg Sequence Number = 15
Topic Received from Cloud for ICP Sensor Data
ICP data  082.910
ICP data  99499.593
Msg Sequence Number = 16
Topic Received from Cloud for OB1203 Sensor Data
OB1203 data  081.000
OB1203 data  041.000
OB1203 data  005.000
OB1203 data  000.000
Msg Sequence Number = 17
Topic Received from Cloud for IAQ Sensor Data
IAQ data tvoc  000.015
IAQ data etoh  000.008
IAQ data eco2  400.000
Msg Sequence Number = 18
Topic Received from Cloud for OAQ Sensor Data
OAQ data  000.000
Msg Sequence Number = 19
Topic Received from Cloud for HS3001 Sensor Data
HS3001 data  017.920
HS3001 data  081.085
Msg Sequence Number = 20
Topic Received from Cloud for ICM Sensor Data
ICM data acce 000.000
ICM data acce 000.000
ICM data acce 8192.000
ICM data mag 000.000
ICM data mag 000.000
ICM data mag 000.000
ICM data gyr 000.000
ICM data gyr 000.000
ICM data gyr 001.000
Msg Sequence Number = 21
Topic Received from Cloud for ICP Sensor Data
ICP data  082.472
ICP data  99497.015
Msg Sequence Number = 22
Topic Received from Cloud for OB1203 Sensor Data
OB1203 data  081.000
OB1203 data  041.000
OB1203 data  005.000
OB1203 data  000.000

 SPO2 : 88   Heart rate : 41   breath rate : 0  perfusion_index : 0

 SPO2 : 88   Heart rate : 41   breath rate : 0  perfusion_index : 0

 SPO2 : 88   Heart rate : 41   breath rate : 0  perfusion_index : 0

 SPO2 : 88   Heart rate : 41   breath rate : 0  perfusion_index : 0

 SPO2 : 87   Heart rate : 41   breath rate : 0  perfusion_index : 0

 SPO2 : 85   Heart rate : 41   breath rate : 0  perfusion_index : 0

The program connects to the AWS MQTT broker successfully as indicated in this message extract below

DNS Lookup for "a3p0zg4970tbb2-ats.iot.us-east-1.amazonaws.com" is      : 54.83.24.232
Successful MQTT Connection to the end point a3p0zg4970tbb2-ats.iot.us-east-1.amazonaws.com
Device is Ready for Publishing and Subscription of Messages

This board version does not have an IMU, and therefore the IMU sensor data is zero as shown below.

Topic Received from Cloud for ICM Sensor Data
ICM data acce 000.000
ICM data acce 000.000
ICM data acce 8192.000
ICM data mag 000.000
ICM data mag 000.000
ICM data mag 000.000
ICM data gyr 000.000
ICM data gyr 000.000
ICM data gyr 001.000

All other sensors work as expected as per the recorded data. The CK-RA6M5 board behaves now as an IoT sensor.

RA AWS MQTT/TLS Cloud Connectivity Solution - Cellular

For the Cellular application we use the sample software and related documentation presented in this link below. 

RA AWS MQTT/TLS Cloud Connectivity Solution - Cellular

Cloud Kit Based on RA6M5 MCU Group

AWS Dashboard for CK-RA6M5 and CK-RX65N Application Note

The source guide (1) will contain details that guide the user through the necessary steps. The source code (2) should be downloaded and compiled as per the above instructions. 

image

The first step after successful compilation and run on the board is to collect the necessary data from the board (detailed numbers have been omitted for security reasons).

4. CAT-M INFORMATION

 a) IMEI:   +CEREG: 5,"xx","xx",7
 b) ICCID:  xx
 

3. GET UUID

   RA MCU 128-bit Unique ID (hex) :  2dxx-xx-xx-xx
   

Next we go to the "renesas.micro.ai" to activate the SIM card with this information. Successful registration of the cellular hardware results in a screen as shown below. At this point the Cellular module is ready to work. 

renesas.micro.ai

image

We check the credentials on the board to ensure that all has been done well and the board is ready for communication. 

CHECK CREDENTIALS STORED IN DATA FLASH

 Certificate saved in data flash is verified and successful
 Private key saved in data flash is verified and successful
 MQTT end point saved in data flash is verified and successful
 IOT thing name saved in data flash is verified and successful

The following log illustrates the successful connection of our IoT node with the cloud via cellular modem.

********************************************************************************
*   Renesas FSP Application Project for AWS Core MQTT                         *
*   Application Project Version 1.2                                            *
*   Flex Software Pack Version  3.8.0                                          *
********************************************************************************
Refer to Application Note for more details on Application Project and
FSP User's Manual for more information about AWS Core MQTT
********************************************************************************
**** Cellular SIM okay  ****
Network CS registration status received: 2.
Network PS registration status received: 0.
Network CS registration status received: 2.
Network PS registration status received: 2.
Network CS registration status received: 2.
Network PS registration status received: 5.
Network CS registration status received: 5.
Network PS registration status received: 5.
>>>  Cellular module registered  <<<
>>>  Cellular module registered, IP address "10.xx.xx.xx"  <<<
Cellular Setup Done
TLS Connect Success 0
Successful MQTT Connection to the end point a3p0zg4970tbb2-ats.iot.us-east-1.amazonaws.com
Device is Ready for Publishing and Subscription of Messages


HS3001 sensor setup success

OB1203 sensor setup success

ZMOD4410 sensor setup success

ZMOD4510 sensor setup success

ICM30498 sensor setup success

ICM20948 sensor setup success
Topic Received from Cloud for IAQ Sensor Data
IAQ data tvoc  000.000
IAQ data etoh  000.000
IAQ data eco2  000.000
Msg Sequence Number = 0

 SPO2 : 78   Heart rate : 41   breath rate : 0  perfusion_index : 0

 SPO2 : 76   Heart rate : 42   breath rate : 0  perfusion_index : 0

 SPO2 : 75   Heart rate : 42   breath rate : 0  perfusion_index : 0

 SPO2 : 75   Heart rate : 42   breath rate : 0  perfusion_index : 0

 SPO2 : 76   Heart rate : 43   breath rate : 0  perfusion_index : 0

 SPO2 : 74   Heart rate : 82   breath rate : 0  perfusion_index : 0

 SPO2 : 72   Heart rate : 82   breath rate : 0  perfusion_index : 0
 Topic Received from Cloud for OAQ Sensor Data
OAQ data  000.000

 SPO2 : 71   Heart rate : 82   breath rate : 0  perfusion_index : 1

 SPO2 : 70   Heart rate : 79   breath rate : 0  perfusion_index : 1

 SPO2 : 68   Heart rate : 73   breath rate : 0  perfusion_index : 1

 SPO2 : 66   Heart rate : 64   breath rate : 0  perfusion_index : 1
 Msg Sequence Number = 1

 SPO2 : 63   Heart rate : 60   breath rate : 0  perfusion_index : 1

 SPO2 : 64   Heart rate : 58   breath rate : 0  perfusion_index : 1

 SPO2 : 65   Heart rate : 58   breath rate : 0  perfusion_index : 1

 SPO2 : 66   Heart rate : 62   breath rate : 0  perfusion_index : 1

 SPO2 : 69   Heart rate : 60   breath rate : 0  perfusion_index : 0

 SPO2 : 70   Heart rate : 61   breath rate : 0  perfusion_index : 0

 SPO2 : 71   Heart rate : 61   breath rate : 0  perfusion_index : 0

 SPO2 : 71   Heart rate : 62   breath rate : 0  perfusion_index : 0

 SPO2 : 71   Heart rate : 60   breath rate : 0  perfusion_index : 1

 SPO2 : 70   Heart rate : 58   breath rate : 0  perfusion_index : 1

 SPO2 : 70   Heart rate : 56   breath rate : 0  perfusion_index : 1

 SPO2 : 70   Heart rate : 55   breath rate : 0  perfusion_index : 1
 Topic Received from Cloud for HS3001 Sensor Data
HS3001 data  018.989
HS3001 data  082.453
Msg Sequence Number = 2
Topic Received from Cloud for ICM Sensor Data
ICM data acce 000.000
ICM data acce 000.000
ICM data acce 8192.000
ICM data mag 000.000
ICM data mag 000.000
ICM data mag 000.000
ICM data gyr 000.000
ICM data gyr 000.000
ICM data gyr 001.000
Msg Sequence Number = 3
Topic Received from Cloud for ICP Sensor Data
ICP data  083.414
ICP data  99557.945
Msg Sequence Number = 4
Topic Received from Cloud for OB1203 Sensor Data
OB1203 data  070.000
OB1203 data  055.000
OB1203 data  000.000
OB1203 data  000.000
Msg Sequence Number = 5
Topic Received from Cloud for IAQ Sensor Data
IAQ data tvoc  000.123
IAQ data etoh  000.065
IAQ data eco2  423.380
Msg Sequence Number = 6
Topic Received from Cloud for OAQ Sensor Data
OAQ data  000.000
Msg Sequence Number = 7
Topic Received from Cloud for HS3001 Sensor Data
HS3001 data  017.170
HS3001 data  082.111
Msg Sequence Number = 8
Topic Received from Cloud for ICM Sensor Data
ICM data acce 000.000
ICM data acce 000.000
ICM data acce 8192.000
ICM data mag 000.000
ICM data mag 000.000
ICM data mag 000.000
ICM data gyr 000.000
ICM data gyr 000.000
ICM data gyr 001.000
Msg Sequence Number = 9
Topic Received from Cloud for ICP Sensor Data
ICP data  083.563
ICP data  99557.648

Relevant details are the successful Cellular module registration and MQTT connection to the end point.

**** Cellular SIM okay  ****
Network CS registration status received: 2.
Network PS registration status received: 0.
Network CS registration status received: 2.
Network PS registration status received: 2.
Network CS registration status received: 2.
Network PS registration status received: 5.
Network CS registration status received: 5.
Network PS registration status received: 5.
>>>  Cellular module registered  <<<
>>>  Cellular module registered, IP address "10.168.253.146"  <<<
Cellular Setup Done
TLS Connect Success 0
Successful MQTT Connection to the end point a3p0zg4970tbb2-ats.iot.us-east-1.amazonaws.com
Device is Ready for Publishing and Subscription of Messages

AWS Dashboard for CK-RA6M5

The instructions for to access the AWS dashboard are found in the application note:

AWS Dashboard for CK-RA6M5 and CK-RX65N Application Note

Once provisioning has taken place and there is access to Reneas's landing place at:

https://renesas.cloud-ra-rx.com/dashboard/devices-list

Then please note the following in section (8) in the above application note.

  1. Click go to Dashboard button to access the dashboard.
  2. First time users will access the dashboard with credentials “admin” for
    both username and password.
  3. Then, users will be directed to change the password.
  4. Once completed, users can access the dashboard.

image

After the initial admin/admin login has been done, access to the dashboard is granted seamlessly.

AWS Dashboard CK-RA6M5 MQTT/TLS Cloud Connectivity - Ethernet

The graph below show data collected by the CK-RA6M5 and transmitted via the AWS MQTT/TLS Cloud Connectivity Solution via ethernet. We were able to corroborate by visual inspection that the data updated in the graph corresponded to the data collected by the CK-RA6M5.

image

AWS Dashboard CK-RA6M5 MQTT/TLS Cloud Connectivity - RYZ014A Pmod Cloud Kit Cellular

The graph below show data collected by the CK-RA6M5 and transmitted via the AWS MQTT/TLS Cloud Connectivity Solution via the cellular RYZ014A Pmod Cloud Kit. We were able to corroborate by visual inspection that the data updated in the graph corresponded to the data collected by the CK-RA6M5.

image

Hardware/Software Integration Review

The CK-RA6M5 cloud kit with LTE Cellular CAT-M1 module RYZ014A is a great hardware that is well integrated with Renesas Flexible Software Package. The following points are worth some consideration.

  1. The hardware works well off-the-box. 
  2. Initial documentation that comes with the hardware is sufficient to immediately get acquainted with the hardware
  3. The CK-RA6M5 kit has a full suite of sensors available for experimentation. The IMU component was missing from the board.
  4. Software integration requires some work, but it works as advertised.
  5. In Linux OS (and perhaps in Windows OS), the available IoT cloud example software requires the specific version 3.7.0 to 3.8.0 of the FSP.
  6. Initial FSP setup with ARM compiler does not work as expected in Linux. The ARM toolchain has to be downloaded, installed and integrated onto the e2 Studio manually.
  7. The LTE Cellular CAT-M1 module RYZ014A hardware works as expected and trouble free. 
  8. The AWS integration works well, but leaves no room for mistakes.
  9. If a mistake is made during AWS setup, there will be no graphical presentation of the data arriving through the ethernet or cellular network.
  10. Interacting with Renesas help via a ticket seems to work, but it takes a long time for the issue to get resolved. The issues did get resolved to satisfaction. 
  11. When compiling the example software for IoT ethernet and cellular connectivity, the autogenerated software has some typos, and some of the necessary software stack are missing. This issues are relatively easy to troubleshoot and solve.
  12. The hardware is capable and all the testing done with it demonstrate that this is a viable platform for IoT applications. 

Overall Experience with the CK-RA6M5 cloud kit with LTE Cellular CAT-M1 module RYZ014A and ethernet network connectivity

  • The documentation is ample and readily available. This by itself helps with the familiarization and subsequent mastery of the hardware and software system integration.
  • The tools available with the e2 Studio are familiar since they are based on the popular Eclipse platform. 
  • The Flexible Software Package (FSP) is comprehensive. The learning curve is steep, but the available examples are sufficient for an experienced engineer to readily have a working prototype that can form the bases for any project. 
  • The  Flexible Software Package (FSP) is well integrated and works flawlessly, but in-depth development will take time. 
  • Developers will need to get deeply familiarized with the software staks and the hardware it controls to fully exploit the full capability of the CK-RA6M5 kit.
  • The Segger J-Link software/hardware integration is robust and works flawlessly in the Linux OS.
  • The overall software / hardware integration with the  e2 Studio and FSP is also robust. 
  • Any issues that arouse while developing software were readily dealt with the use of the  Segger J-Link debug integration. This gives the developer a high degree of confidence in the overall product solution.
  • All goals for this Road Test were met with time to spare.
  • Namely the Renesas CK-RA6M5 hardware kit and its seamless integration with the e2 Studio and Renesas' FSP
    • was able to quickly establish a secure connection to the AWS IoT Core and to the numerous related Cloud and IoT services
    • was able to establish seamless cloud connectivity
    • was able to corroborate that the provided cellular module worked without a gateway
    • verified that the software made it easy to explore the features of the Cortex®-M33 based RA6M5 group of MCUs and related cloud services
    • verified the software stack support using FreeRTOS
    • verified that the platform allows for efficiently developing cloud solutions
    • the software stack and its tight integration with the provided hardware makes it relatively easy to develop IoT solutions, 
    • the kit provides a plethora of sensors all of which worked well with the available hardware and software. 

Results

The following are results and take away of the CK-RA6M5 with RYZ014A Pmod Cloud Kit RoadTest:

  1. Out of the box experience of the CK-RA6M5 with RYZ014A Pmod Cloud Kit is positive. All the hardware and software worked as expected with minimal effort.
  2. The CK-RA6M5 and RYZ014A Pmod hardware integration with the Renesas' Flexible Software Package (FSP) is effective, seamless and error free.
  3. Building a simple IOT project is easily done with current, readily available support from Renesas in the form of excellent hardware and software integration and ample accessible and available documentation.
  4. All the sensors of the CK-RA6M5 board tested and worked well. This board is a highly capable hardware on its own that is easy to integrate in/with any number of embedded projects.
  5. Cloud connectivity was tested satisfactorily for both wired ethernet network and wireless cellular network. The CK-RA6M5 with RYZ014A Pmod Cloud Kit provides a solution that works out of the box.
  6. Documentation for the CK-RA6M5, the RYZ014A Pmod, the Flexible Software Package (FSP) was tested. The available documentation is ample, complete, readily available, and comprehensive with some minor exceptions.
  7. The documentation itself was tested, and we found that all information needed was available in one form or another within the available documentation. In this RoadTest we consider available sample software solutions as a form of documentation all on its own.

Conclusions

All the RoadTest objectives were met satisfactorily and are summarized in the Results section above this one. 

The CK-RA6M5 board is a capable hardware that can be the starting point for any number of embedded projects, and it is highly recommended all on its own. The addition of the RYZ014A Pmod Cloud Kit makes the CK-RA6M5 a very capable IoT platform. Renesas' Flexible Software Package (FSP) integrates well with the hardware, and provides a complete software solution for IoT development. Existing documentation is ample and comprehensive. 

We recommend the CK-RA6M5 board, the CK-RA6M5 with RYZ014A Pmod Cloud Kit and the Flexible Software Package (FSP) as an efficient starting platform for robotic projects, industrial automation and  IoT solutions. 

Anonymous
  • Hi Steve…

    Sorry to hear about your struggles with the CK-RA6M5. I had a few issues to resolve, but I was working in Linux OS which is not supported officially. I did not take points away if I was able to work out the problems on account of that. 

    Regarding the toolchain integration, I thought that perhaps the integration issues were related to working in Linux. The solution was relatively easy to implement, and once it worked it was very robust. I never worried about the toolchain after this, and therefore I gave them full credit for robustness. Compilation errors were precise, and debugging software with the JLink was robust and never faulted. 

    Please let me know if I can be of help  

    Regards…

    M.  Simon. 

  • Hello  

     WOW you had a lot more luck then I had reviewing the CK-RA6M5. I was runing FSP and eStudio on windows and I had zero sucess with all the Examples. It's reasuring that it runs better under Linux. I'll have to give it a try.

    Your CONS are right on with my experience. I'm suprised you gave it a five star rating though, given the Buggy toolchain?

    I'm still working with engineering to get all my problems solved.

    It is a nicley designed board though.

    Thanks for the Review

    Steve K