Renesas EK-RA2L1 Manual Download Page 1

 Manual

R36UZ0008EU0100 Rev.1.0

Page 1

Jul 2, 2021

© 2021 Renesas Electronics

Quick Connect IoT is a combination of hardware and software modules that simplifies the design process of 
developing system solutions. It allows you to put together systems to evaluate sensors, connectivity, and the MCU 
in a full system environment with a minimal amount of set-up time or without writing the basic firmware structure.

Hardware modules are available with low-level drivers and middleware that allow you to immediately start writing 
the application layer code. 

This manual reviews the Quick Connect IoT with an example that uses a specific sensor, but you are encouraged 
to consider other scenarios and explore all the devices available. 

Contents

1.

Reference Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

2.

Hardware Example   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

2.1 

MCU Selection   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2

2.2 

MCU Setup  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3

2.3 

Sensor Selection  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4

2.4 

Connectivity Selection  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4

2.5 

Complete RA Hardware Setup   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  5

2.6 Complete 

RX 

Hardware 

Setup   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  6

3.

RA FSP  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  6

3.1 

Start Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7

3.2 

Insert Middleware   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7

3.3 

Resolve User Items Related to the Sensor Stack  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7

3.4 

Generate Code  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9

3.5 

API Examples  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10

4.

RX Smart Configurator  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10

4.1 

Start Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11

4.2 

Insert Component  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  12

4.3 

Resolve User Items Related to the Sensor Stack  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4.4 

Generate Code  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  14

4.5 

API Examples  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15

5.

Additional Information   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15

6.

Revision History   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15

Appendix A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16

Quick Connect IoT

Summary of Contents for EK-RA2L1

Page 1: ...ews the Quick Connect IoT with an example that uses a specific sensor but you are encouraged to consider other scenarios and explore all the devices available Contents 1 Reference Documents 2 2 Hardware Example 2 2 1 MCU Selection 2 2 2 MCU Setup 3 2 3 Sensor Selection 4 2 4 Connectivity Selection 4 2 5 Complete RA Hardware Setup 5 2 6 Complete RX Hardware Setup 6 3 RA FSP 6 3 1 Start Project 7 3 ...

Page 2: ...ncludes some combination of PMODTM Arduino Mikro CLICK and Grove For this manual the example uses the EK RA2L1 this device has memory footprints and is chosen based on full system requirements Document number Title R20UT4827EG0100 Rev 1 00 EK RA2L1 V1 User Manual R20UT3558EG0100 RSK RX651 RX65N User Manual R36UZ0002EU0100 US082 ZMOD4410EVZ Evaluation Board Manual R36UZ0004EU0100 US082 HS3001EVZ Ev...

Page 3: ...rds support Digilent Type2A extended SPI Type3A extended UART Type6A and extended I2C For the EK RA2L configure a PMOD to be Type3A UART for our connectivity choice and another for Type6A I2C for the sensor connection Reference the specific EK that you are using to reconfigure to the correct IO that is required See the EK RA2L1 User Manual for PMOD1 reconfiguration to Type6A PMOD2 is the UART PMOD...

Page 4: ... releases new sensors peripherals and plug in modules Visit the Renesas website for more information 2 4 Connectivity Selection Renesas supports numerous connectivity choices from UART wired to Bluetooth and Wi Fi This manual focuses on a common connectivity solution for an IoT example Wi Fi using a PMOD Figure 2 Type 6A Interposer Table 1 Sensor Board List Part Number Type HS3001 Temperature and ...

Page 5: ...ardware Setup In the hardware setup plugged in is the selected PMODs and the USB cable for the debugger interface and in Figure 3 a complete solution for a connected Air Quality Sensor system is shown Figure 3 Air Quality System ZMOD4410 PMOD HS3001 PMOD Wi Fi PMOD Debug USB Connection ...

Page 6: ... BSP 3 Insert Middleware Stacks 4 Resolve middleware issues remove the red out by defining user items such as which I2C port to use 5 Generate code At this point you have a buildable project with limited to no debug required so you can start to write your application code Typically this consists of instantiating USER buffers for the data and then a simple POSIX such as APIs to talk to the devices ...

Page 7: ...n View For additional information see the FSP manuals that are available through the SmartBrowser or help facilities of e2Studio The following steps are for adding a single sensor Select New Stack Middleware Sensor ZMODXXXon rm_zmod4xxx See Figure 5 3 3 Resolve User Items Related to the Sensor Stack When the stack is instantiated it displays red indicating that you need to select user configurable...

Page 8: ...the configurations items are satisfied Hovering on the red X does pop up the error that is in the particular block In this case the GPT trigger for measurement is red See Figure 9 for an example of pop up help Figure 7 I2C Master on r_iic_master Selection Figure 8 Pop Up Help on GPT Error Figure 9 Pop Up Help On GPT Error ...

Page 9: ...flow interrupt on the GPT The callback function and name are defined by the middleware 3 4 Generate Code After all the stacks HAL code is satisfied and all the user selections are made you must Generate Project Content See Figure 11 Figure 10 GPT Overflow Interrupt Setting Figure 11 Generate Project Content ...

Page 10: ...e layer to account for multiple device instances and multiple configurations In this case your calls may be abstracted by a function table in the configuration instance For details see to the FSP manuals For this case shown it is defined by the ctrl instance for Sensor 0 rm_zmod4xxx_instance_ctrl_t g_zmod4xxx_sensor0_ctrl ZMOD API Examples Device 0 defined by err g_zmod4xxx_sensor0 p_api measureme...

Page 11: ...t project type 2 Name the project 3 Select the BSP 4 Select the type of project executable or Library including RTOS support Because this example is for non RTOS Bare Metal Minimal is chosen After generating the RX C C executable project it opens in the RX Configuration View as shown in Figure 12 Figure 12 RX Smart Configuration View Empty Project ...

Page 12: ... Configuration View The following example adds a single sensor the HS3001 Humidity and Temperature sensor For additional information reference the Smart Configuration manuals that are available through the SmartBrowser or help facilities of e2Studio Select Components Tab r_hs3001_rx Finish See Figure 13 Figure 13 RX Component Selection ...

Page 13: ...Select the number of I2C channels that are supported in the driver Select r_drvif_iic in the component list followed by selecting the number of IIC communications lines In this case select 1 and choose RX FIT IIC See Figure 15 Finally the actual pin connection is chosen Go to the Pins Configuration tab select RIIC0 in the list and the two used pins display Use the Pin Number pulls downs and choose...

Page 14: ...oblems tab In default layout this is in the lower right of screen 4 4 Generate Code After all the component settings are satisfied and there are 0 items in the Configuration problems you simply generate code with the feature Generate Project Content See Figure 17 Figure 16 I2C Pin selection on RX Figure 17 Generate Project Code ...

Page 15: ...ose hs3001_ctrl_t const p_ctrl hs3001_err_t R_HS3001_GetVersion hs3001_version_t p_version void r_hs3001_callback drvif_iic_event_t event drvif_iic_instance_t p_inst hs3001_cfg_t p_cfg Note Because the Middleware supports multiple instances of the HS3001 sensors on multiple I2C busses these are typically abstracted one layer to account for multiple device instances and multiple configurations In t...

Page 16: ...4W1 RA RA2A1 EK RA2A1 RA RA4M1 EK RA2A1 RA RA6M1 EK RA6M1 RA RA6M2 EK RA6M2 RA RAM3 EK RA6M3 RA RAM3G EK RA6M3G RX RX111 RX111 Starter Kit RX RX231 RX231 Starter Kit RX RX23W RX23W Starter Kit RX RX23T RX23T Starter Kit RX RX24T RX24T Starter Kit RX RX24U RX24U Starter Kit Synergy S5D9 PK S5D9 Synergy S3A7 DK S3A7 Synergy S128 DK S128 Synergy S1JA TB S1JA Synergy S3A6 TB S3A6 Synergy S7G2 DK S7G2 ...

Page 17: ...RTY RIGHTS These resources are intended for developers skilled in the art designing with Renesas products You are solely responsible for 1 selecting the appropriate products for your application 2 designing validating and testing your application and 3 ensuring your application meets applicable standards and any other safety security or other requirements These resources are subject to change with...

Reviews: