Download presentation
Presentation is loading. Please wait.
Published byLesley Weaver Modified over 9 years ago
1
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Rapid Development on the Renesas RX63N RDK using uEZ ® and FreeRTOS Lysle Shields, Senior Software Engineer Future Designs, Inc. 9C12I
2
© 2012 Renesas Electronics America Inc. All rights reserved.2 Renesas Technology & Solution Portfolio
3
© 2012 Renesas Electronics America Inc. All rights reserved.3 Senior Software Engineer 10 years with Future Designs, Inc. Software Team Leader for uEZ® Middleware Solution Experience Embedded Software Mobile Phone Applications Obscure Operating Systems (GEOS) Game programming (back in the DOS days!) Lysle E. Shields III
4
© 2012 Renesas Electronics America Inc. All rights reserved.4 Renesas Platinum Alliance Partner Co-design and produce Renesas RDKs RX62N, RX63N, RL78, etc. Development Kits Touch Screen GUI / HMI Kits uEZ GUI Board Assemblies (modules) Engineering Design Services GUI / HMI and Embedded Focus Hardware, Software, Mechanical & Strategy Production Services Seamless integration with our design team One stop shopping, 100% guaranteed Future Designs, Inc. We’re on a Mission … Yours! www.teamfdi.com uEZGUI-RX62N-35QT
5
© 2012 Renesas Electronics America Inc. All rights reserved.5 Introduction What is uEZ? What are we demonstrating? Part I – Setup & Serial Interface Getting commands into the RDK Part II – Sensors Interacting with the outside world Part III – Data Logging Recording information Part IV – Web Server Getting access from the web Summary – Questions? Agenda
6
© 2012 Renesas Electronics America Inc. All rights reserved.6 Introduction
7
© 2012 Renesas Electronics America Inc. All rights reserved.7 μEZ is a rapid development platform that enhances portability of application code to multiple platforms with high reusability. μEZ RTOS Abstraction μEZ Four Tier Hierarchy Reusable HAL and Device Drivers RX62N/RX63N FDI and Community Support Network What is μEZ (“Muse”)?
8
© 2012 Renesas Electronics America Inc. All rights reserved.8 Renesas YRDKRX63N Features: 120 MHz RX63N w/512KB Flash On-Board J-Link JTAG 10/100 Ethernet USB Host and Function CAN & RS-232 Push buttons, LEDs Speaker & Microphone 3-Axis Accelerometer Potentiometer MicroSD 3-Phase Motor Control w/LEDs PMOD & Other Expansion Headers RX63N RDK Overview
9
© 2012 Renesas Electronics America Inc. All rights reserved.9 Renesas YRDKRX63N HEW Renesas RX C/C++ Compiler for RX63N On-Board USB to JTAG uEZ® Software Hardware and Software Tools
10
© 2012 Renesas Electronics America Inc. All rights reserved.10 Steps to this demonstration 1.Create the project 2.Setup command line parser 3.Control LEDs (output) 4.Read from sensors (input) 5.Record sensor data to log file 6.Access via web access Example Project – The Data Logger
11
© 2012 Renesas Electronics America Inc. All rights reserved.11 Part I – Setup & Serial Interface WARNING! Easy C Programming up ahead!
12
© 2012 Renesas Electronics America Inc. All rights reserved.12 Copy uEZ RX63N RDK Template to work directory Open project and select features in uEZPlatformStartup() Compile and Run! Setting up a New Project
13
© 2012 Renesas Electronics America Inc. All rights reserved.13 Four Layer Design Application Program (User Lives Here) μEZ System Libraries (Easy to Use) Device Drivers (RTOS aware) Hardware Abstraction Layer (HAL) (Nuts and Bolts) uEZ Driver and HAL Design Goals Application Tasks Device Driver μEZ System Libraries HAL Driver Device DriverRTOS
14
© 2012 Renesas Electronics America Inc. All rights reserved.14 uEZ Serial Device “UART0” RS232 Full Duplex, 8 bit, 115200 baud, 1 stop bit uEZ Stream Device “Console” Mapping UART0 to the Console Command console goes here uEZ LED Device “LED” Heartbeat LED Status LED uEZ LCD Device “LCD” Character display using Glyph API Device Tour and Initialization
15
© 2012 Renesas Electronics America Inc. All rights reserved.15 FDICmd Library Provides standard for handling console input Command Array, Stream, and Library call Command Line Implementation (part 1)
16
© 2012 Renesas Electronics America Inc. All rights reserved.16 Example Function: SPEAKER Command Line Implementation (part 2)
17
© 2012 Renesas Electronics America Inc. All rights reserved.17 Adding Function to control Status LED Command Line Implementation (part 3)
18
© 2012 Renesas Electronics America Inc. All rights reserved.18 Demonstration Add Speaker Command Add LED Command Command Line Implementation (part 4)
19
© 2012 Renesas Electronics America Inc. All rights reserved.19 Part II – Sensors
20
© 2012 Renesas Electronics America Inc. All rights reserved.20 uEZ’s Goals for Sensors Keep them Simple! Leverage the Power of the RTOS and Multitasking uEZ Provides Access to A/D (Potentiometer) Push Buttons Real Time Clock Accelerometer Let’s Read the Accelerometer! Sensors Provided
21
© 2012 Renesas Electronics America Inc. All rights reserved.21 Accelerometer Monitoring Task Sensors: Logging the Accelerometer (part 1)
22
© 2012 Renesas Electronics America Inc. All rights reserved.22 Catching the Data Log Start the Monitoring Task Sensors: Logging the Accelerometer (part 2)
23
© 2012 Renesas Electronics America Inc. All rights reserved.23 Sensor Examples with Monitoring Tasks: Real Time Clock – Time stamped data Push Buttons – Digital inputs A/D (Potentiometer) – Variable input Sensor Demonstrations
24
© 2012 Renesas Electronics America Inc. All rights reserved.24 Part III – Data Logging
25
© 2012 Renesas Electronics America Inc. All rights reserved.25 uEZ’s Goals for the File System Keep it Simple! FATFS Lightweight and Easy to Use Works on large devices (32 GB!) Our Simple Steps to Data Logging 1.Open File 2.Store Data 3.Close File Let’s Record the Accelerometer Data! Data Logging (part 1)
26
© 2012 Renesas Electronics America Inc. All rights reserved.26 Catch the Data and Store to the SDCard Data Logging (part 2)
27
© 2012 Renesas Electronics America Inc. All rights reserved.27 Part IV – Web Server
28
© 2012 Renesas Electronics America Inc. All rights reserved.28 uEZ Goals Provide a TCP/IP stack – lwIP Create an easy to use Network API Work with Wireless as well as Wired Provide a simple HTTP Server! Ethernet and uEZ
29
© 2012 Renesas Electronics America Inc. All rights reserved.29 uEZ’s Simple to Use HTTPServer HTML files are stored on the SDCard Tags are embedded in the HTML files as ${VARIABLE} Forms post variables Variables are handled through callback functions Starting the HTTPServer Let’s read the time back! HTTP Server (part 1)
30
© 2012 Renesas Electronics America Inc. All rights reserved.30 Return the Clock with ${time} and ${date} Let’s try it out! HTTP Server (part 2)
31
© 2012 Renesas Electronics America Inc. All rights reserved.31 Demonstration Control of Speaker Control of LED Show Downloading of Accelerometer log file HTTP Server (part 3)
32
© 2012 Renesas Electronics America Inc. All rights reserved.32 Summary
33
© 2012 Renesas Electronics America Inc. All rights reserved.33 Introduction What is uEZ? uEZ is a rapid development system Part I – Setup & Serial Interface uEZ gets a command console running quickly Part II – Sensors Drivers are written for easy access Part III – Data Logging Data is stored to a compatible file system Part IV – Web Server Ethernet and Web Server is working now Open Source! Download: http://sourceforge.net/projects/uez/http://sourceforge.net/projects/uez/ Summary
34
© 2012 Renesas Electronics America Inc. All rights reserved.34 RX62N & RX63N SODIMM Modules 8MB External SDRAM 10/100 Ethernet PHY Micro SD, Mini JTAG CARRIER Board USB Host & Device Ports 10/100 Ethernet Port, Wi-Fi RS-232 RTC with SuperCap backup 3-axis Acc & Temp Sensor LCD CARRIER 4.3” or 4.7” WQVGA TFT LCD 4-Wire Resistive Touch Screen Part Numbers: DK-43WQT-RX62N & DK-47WQT-RX62N FDI RX Development Kits
35
© 2012 Renesas Electronics America Inc. All rights reserved.35 3.5” QVGA TFT LCD from Tianma 4-Wire Resistive Touch Screen Renesas RX62N Microcontroller 512KB of PSRAM microSD Memory Card USB Device Port for power & comm Speaker JTAG Connector Expansion via 50- pin I/O connector UARTs, I2C, SPI, USB Host/Device Part Number: uEZGUI-RX62N-35QT RX62N 3.5” uEZ-GUI
36
© 2012 Renesas Electronics America Inc. All rights reserved.36 Future Designs, Inc. http://www.teamfdi.com/ Open Source! Download: http://sourceforge.net/projects/uez/http://sourceforge.net/projects/uez/ Documentation: http://www.teamfdi.com/uez/docshttp://www.teamfdi.com/uez/docs FreeRTOS + Trace http://www.freertos.org/FreeRTOS-Plus/index.shtml Renesas RX Family http://www.renesas.com/products/mpumcu/rx/index.jsp Online Resources μEZ ®
37
© 2012 Renesas Electronics America Inc. All rights reserved.37 Questions? Questions?
38
© 2012 Renesas Electronics America Inc. All rights reserved.38 Please utilize the ‘Guidebook’ application to leave feedback or Ask me for the paper feedback form for you to use… Please Provide Your Feedback…
39
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.