Tải bản đầy đủ (.pdf) (61 trang)

Using Embedded Tools for I2C, SPI, and USB Debugging for the Renesas RX63N RDK

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.25 MB, 61 trang )

Renesas Electronics America Inc.
© 2012 Renesas Electronics America Inc. All rights reserved.
Using Embedded Tools for I2C, SPI, and
USB Debugging for the Renesas RX63N RDK
© 2012 Renesas Electronics America Inc. All rights reserved.2
Renesas Technology & Solution Portfolio
© 2012 Renesas Electronics America Inc. All rights reserved.3
 Introduction to the Renesas RX63N RDK
 Introduction to Total Phase Development Tools
 Lab
 Beagle protocol analyzers and Data Center Software
 Aardvark I2C/SPI Host Adapter and Flash Center
Software
 Development Start Up
 Bug 1: I2C LCD
 Bug 2: Read I2C
 Q&A
Agenda
© 2012 Renesas Electronics America Inc. All rights reserved.4
Renesas RX63N RDK
© 2012 Renesas Electronics America Inc. All rights reserved.5
Renesas RX63N RDK
J-Link
debugger
Ext. Power
5 VDC
Speaker
Stereo headphone
jack
Expansion
header


LED
Ring
10/100 Ethernet
(Opt. IEEE1588)
USB
Host/Function
CAN
transceiver
128 Mb PCM
Memory
SD-Card
Application header
WiFi/Bluetooth
I2C/SPI Debug
Connector
PMOD
expansion
Graphics
LCD
Digital sensors
Temp & Accel
User push
buttons
POT
VR1
MIC and
amplifier
RS-232
Serial Port
Expansion header

© 2012 Renesas Electronics America Inc. All rights reserved.6
Total Phase Development Tools
© 2012 Renesas Electronics America Inc. All rights reserved.7
 By using debugging tools manufactured by Total Phase, you
can:
 Debug in real time
 Quickly evaluate embedded systems
 Program EEPROMS and flash memories
 Easily collaborate with colleagues

Maximize productivity
© 2012 Renesas Electronics America Inc. All rights reserved.8
 General purpose I
2
C/SPI master or slave
 Active communication on the I
2
C bus up to 800 kHz
 Active communication up to 8 MHz as an SPI master
and up to 4 MHz as an SPI slave
Aardvark I
2
C/SPI
Host Adapter
© 2012 Renesas Electronics America Inc. All rights reserved.9
 Designed to work with the Aardvark I
2
C/SPI Host Adapter
 Read and Write I
2

C/SPI messages
 XML Batch Script support
 Built-in Help System
 Multiple adapter support
 Windows, Linux, Mac OS X
Control Center Software
© 2012 Renesas Electronics America Inc. All rights reserved.10
 Non-intrusively monitor an I
2
C or SPI bus
 Interactive Real-Time Display, Filter, and Search
 Monitors I
2
C data up to 4 MHz
 Monitors SPI data up to 24 MHz
Beagle I
2
C/SPI
Protocol Analyzer
© 2012 Renesas Electronics America Inc. All rights reserved.11
 Non-intrusively monitor high-, full-, and low-speed USB 2.0
 Interactive Real-Time Display, Filter, and Search
 Real-time class-level decoding
 64 MB on-board hardware buffer
Beagle USB 480
Protocol Analyzer
© 2012 Renesas Electronics America Inc. All rights reserved.12
 Designed to work with the Beagle Protocol Analyzers
 LiveDisplay
 LiveFilter

 LiveSearch
 32-bit and 64-bit support
 Tree View and Block View

Windows, Linux, Mac OS X
© 2012 Renesas Electronics America Inc. All rights reserved.13
Lab Introduction
© 2012 Renesas Electronics America Inc. All rights reserved.14
Lab Introduction
Beagle USB 480
Protocol Analyzer
Hub
Beagle I
2
C/SPI
Protocol
Analyzer
Aardvark
I
2
C/SPI Host
Adapter
EEPROM Activity
Board
Host
Computer
External
Power
Ribbon Cable
Renesas RX63N

RDK
Physical Set Up
© 2012 Renesas Electronics America Inc. All rights reserved.15
Logical Set Up
RX63N RDK
I
2
C
EEPROM
I
2
C Bus
Beagle I
2
C/SPI
Protocol Analyzer
PC
Aardvark I
2
C/SPI
Host Adapter
Beagle USB 480
Protocol Analyzer
USB
Lab Introduction
© 2012 Renesas Electronics America Inc. All rights reserved.16
Beagle Protocol Analyzers
© 2012 Renesas Electronics America Inc. All rights reserved.17
 Objective: Introduce the Beagle protocol analyzers


Task: Set up and start a live capture using the Data Center
Software
Beagle Protocol Analyzers
© 2012 Renesas Electronics America Inc. All rights reserved.18
1. Open the Data Center Software.
2. Click Connect to Analyzer.
3. Select the I2C/SPI analyzer and Click OK.
Configuring the Beagle analyzer for use
Beagle Protocol Analyzers
© 2012 Renesas Electronics America Inc. All rights reserved.19
4. Click Device Settings.
5. Change the capture protocol to I2C.
6. Set the sampling rate to 50 MHz.
7.
Set the protocol lens to I2C.
Configuring the Beagle analyzer for use
Beagle Protocol Analyzers
© 2012 Renesas Electronics America Inc. All rights reserved.20
4. Click Device Settings.
5. Change the capture protocol to I2C.
6. Set the sampling rate to 50 MHz.
7.
Set the protocol lens to I2C.
8. Start the capture.
Configuring the Beagle analyzer for use
Beagle Protocol Analyzers
© 2012 Renesas Electronics America Inc. All rights reserved.21
Aardvark I
2
C/SPI Host Adapter

© 2012 Renesas Electronics America Inc. All rights reserved.22
 Objective: Introduce Aardvark I
2
C/SPI Host Adapter.
 Task: Use the Aardvark adapter and Flash Center
Software to read and write from the I
2
C EEPROM.
© 2012 Renesas Electronics America Inc. All rights reserved.23
1. Open the Flash Center Software
2. Click on Add Adapters
3. Select Aardvark I
2
C/SPI Host Adapter
4. Click Add
Configuring the Aardvark I
2
C/SPI Host Adapter for use
© 2012 Renesas Electronics America Inc. All rights reserved.24
5. Turn on the Target Power button
6.
Click on Choose Target to specify which part you will be using
© 2012 Renesas Electronics America Inc. All rights reserved.25
7. Select I
2
C EEPROM under Device Type
8. Under Manufacturer, select Atmel
9. Under Part Number, choose AT24C02
10. Click OK

×