background image

Corporate Headquarters

TOYOSU FORESIA, 3-2-24 Toyosu,

Koto-ku, Tokyo 135-0061, Japan

www.renesas.com

Contact Information

For further information on a product, technology, the most 

up-to-date version of a document, or your nearest sales 

office, please visit:

www.renesas.com/contact/

Trademarks

Renesas and the Renesas logo are trademarks of Renesas 

Electronics Corporation. All trademarks and registered 

trademarks are the property  of their respective owners.

IMPORTANT NOTICE AND DISCLAIMER

RENESAS ELECTRONICS CORPORATION AND ITS SUBSIDIARIES (“RENESAS”) PROVIDES TECHNICAL 

SPECIFICATIONS AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING 

REFERENCE DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND 

OTHER RESOURCES “AS IS” AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, 

INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 

PARTICULAR PURPOSE, OR NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY 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 without notice. Renesas grants you permission to use these resources only for 

development of an application that uses Renesas products. Other reproduction or use of these resources is strictly 

prohibited. No license is granted to any other Renesas intellectual property or to any third party intellectual property. 

Renesas disclaims responsibility for, and you will fully indemnify Renesas and its representatives against, any claims, 

damages, costs, losses, or liabilities arising out of your use of these resources. Renesas' products are provided only subject 

to Renesas' Terms and Conditions of Sale or other applicable terms agreed to in writing. No use of any Renesas resources 

expands or otherwise alters any applicable warranties or warranty disclaimers for these products. 

(Rev.1.0  Mar 2020)

© 202

1

 Renesas Electronics Corporation. All rights reserved.

Summary of Contents for SIMPLE DEMO

Page 1: ...le a simplest button pressed operation will be recorded by MQTT server through publishing a message by MQTT client Through this guide and related demo you can easily start your development on DA16200 a Wi Fi module using AT command and EK RA6M4 an evaluation kit for RA6M4 MCU group Target Device EK RA6M4 R7FA6M4AF3CFB DA16200 PMOD Contents 1 Kit Contents 2 1 1 Hardware components 2 1 2 Software co...

Page 2: ...d Category Item Remark Firmware RA6M4_DA16200_MQTT_CLIENT zip Compressed project file RA6M4_DA16200_MQTT_CLIENT mot Motorola S record file for programming RA6M4 chip Software e2 studio 2021 10 SSP v3 5 0 A GUI and related software package for RA6M4 development SEGGER J Link V7 52a A flash programmer for downloading file to RA6M4 meanwhile a tool using J Link RTT function to observe the state of th...

Page 3: ...QTT client The topic of button with message is published to MQTT Server when the button S1 on EK board is pressed Make a smartphone a MQTT client subscribing button topic getting the status of button from MQTT Server 3 Set Up the Demo 3 1 Prerequisite Step 1 Connect your PC set as a MQTT Server later to a Wi Fi Router Open Windows Settings click Network Internet go to WLAN Set it to ON click show ...

Page 4: ...ame unix socket path add line of listener 1883 below it signifying that the listening port number is 1883 Search allow_anonymous false delete to not allow anonymous logins Search password_file change it to password_file pwfile example setting the file location which involving account name and log in password Then set users name and password In the installation path right click mouse when holding d...

Page 5: ...is necessary to subscribe this message for monitoring the entire information Step 4 Download MQTTool from App Store which is a MQTT client software on Iphone or something like this from Google Shop Here use MQTTool running on Iphone as an example Firstly open settings in Iphone select WLAN and choose the name of AP which is projected a Wi Fi signal by Wi Fi Router After connecting successfully the...

Page 6: ...es connecting command and displays that a new connection from smartphone has been established Click Subscribe tab input button in topic blank which is designed by sample code click subscribe to subscribe to message based on this topic All message based on this topic sent by MQTT server will be received by MQTTool ...

Page 7: ...ug MCU and SEGGER J Link firmware to provide the on board debug functionality so all the customer needs for debugging is a Micro USB cable Step 1 Insert Micro USB cable into Debug USB Micro B connector J10 establishing a debug channel Step 2 Modify the project according to the actual internet environment Import project into e2 studio open project src da16200_AT c find the array variables associate...

Page 8: ...refer to 5 Customizing the Quick Start Example Project chapter of EK RA6M4 Quick Start Guide https www renesas com jp zh document qsg ek ra6m4 quick start guide language en If the project doesn t need to be modified or it has been updated and only needs to be downloaded to the target MCU please find the srec file in the debug folder under the project and modify the suffix to mot to get the type of...

Page 9: ...me under JLink folder with this file Back to Download_Tool folder and click bmp bat file to program MCU This folder combines the version of J Link v7 52a in JLink folder involving all files at software installation and realizing all J Link operations Once programming begins Flash download interface appears like the picture below ...

Page 10: ...powering off and on the system causing the program to run again While under debugging restart the program is necessary Step 2 Open JLinkRTTViewer exe in JLink folder which is unzipped at chapter 3 3 step 2 specify target device as R7FA6M4AF change RTT Control Block from Auto Detection to Search Range and input 0x20000604 0x1000 to the blank block shown below The first address of Search Range can b...

Page 11: ...d MQTT operation After MQTT connection finished Green Led on EK RA6M4 lights Press S1 on EK RA6M4 publishes a message of button is pressed with topic of button to MQTT Server any subscribers subscribing this topic will receive this information smartphones are no exception Mosquitto software updates the current Wi Fi and MQTT connection state and message received from MQTT client ...

Page 12: ... pressed If you want to observe AT Command use a UART to USB bridge and connect RXD of UART part to P410 pin on EK RA6M4 board open serial tool such as Tera Term and set the baud rate to 115200 Then AT command will pop up It s an auxiliary way to debug the program and of course as an option Summarize All described above is a simplest demo for a beginner If you want a more complex example please re...

Page 13: ...enesas EK RA6M4 EK RA6M4 Evaluation Kit for RA6M4 MCU Group Renesas DA16200 DA16200 Dialog dialog semiconductor com DA16200MOD DA16200 Modules Dialog dialog semiconductor com Technical Updates Technical News The latest information can be downloaded from the Renesas Electronics Website Website and Support Renesas Electronics Website http www renesas com Inquiries http www renesas com contact ...

Page 14: ...Revision History Rev Date Description Page Summary 1 00 Feb 22 2022 First edition issued ...

Page 15: ...e for input signal during power off state as described in your product documentation 4 Handling of unused pins Handle unused pins in accordance with the directions given under handling of unused pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced near the LSI an...

Page 16: ...ons failure or accident arising out of the use of Renesas Electronics products outside of such specified ranges 7 Although Renesas Electronics endeavors to improve the quality and reliability of Renesas Electronics products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Unless designated as a hi...

Page 17: ...re 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 without notice Renesas grants yo...

Reviews: