Manuale d’uso / di manutenzione del prodotto SH7362 del fabbricante Renesas
Vai alla pagina of 64
Revision Date: A ug. 20, 2007 Renesas Microcomputer Deve lopment Environment System SuperH ™ Family E10A-USB for SH7362 HS7362KCU01HE Rev.1.00 SuperH ™ Family E10A-USB Emulator Additional Document.
.
1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with r.
.
i Contents Section 1 Connecting the Emul ator with the User System ................................1 1.1 Components of the Emulator ............................................................................................ 1 1.2 Connecting the Em ulator with the User System .
ii.
1 Section 1 C onnecting t he Emulat or with the User Syst em 1.1 Components of the Emulator The E10A-USB emul ator support s the SH7362. Ta ble 1.1 lis ts the components of t he emulat or. Table 1.1 Comp onents of th e Emulator Classi- fication Component Appearance Quan- tity Remarks Hard- ware Emulator box 1 HS0005KCU01H: Depth: 65.
2 1.2 Connecting the Emulator with the User System To connect the E10A-USB emulator (he reinafter referre d to as the emulator), t he H-UDI port connector must be ins talled on the user s ystem to connect the user s ystem interface cable.
3 1.3 Installing the H-UDI Port Connector on the User System Table 1.3 show s the recommended H-UD I port connect ors for the em ulator. Table 1.3 Recommended H-UDI Port Connectors Connector Type Number Ma nufacturer Specifications DX10M-36S Screw type 36-pin conne ctor DX10M-36SE, DX10G1M-36SE Hirose Electri c Co.
4 5 mm 2-5767004-2 Tar g et system E10A-USB optional 38-pin user system interface cable H-UDI port connector (top view) : Area to be kept free of other components 50 mm 20 mm 1 37 38 2 Figure 1.1 Restri ction on Com ponent Moun ting 1.4 Pin Assignments of th e H-UDI Port Connector Figures 1.
5 1. Input to or output from the user system. 2. The symbol (/) means that the si g nal is active-low. Notes: H-UDI port connector (Pin 1 mark) (top view) Unit: mm 4.8 M 2.6 x 0.45 9.0 0.3 3.9 H-UDI port connector (front view) 3. The emulator monitors the GND si g nal of the user system and detects whether or not the user system is connected.
6 Pin 1 mark Notes: 1. Input to or output from the user system. 2. The symbol (/) means that the si g nal is active-low. 3. The emulator monitors the GND si g nal of the user system and detects whether or not the user system is connected. 25.0 23.0 6 x 2.
7 N.C. N.C. MPMD (GND) TCK N.C. /A UDSYNC N.C. N.C. A U D ATA 0 A U D ATA 1 UVCC_A UD N.C. N.C. TMS /UCON (GND) N.C. A UDCK UVCC N.C. N.C. /RESETP /RESET A TDI H-UDI por t connector (top view) Unit: m.
8 1.5 Recommended Circuit between th e H- UDI Port Connector and the MPU 1.5.1 Recommended Circuit (36- Pin Type) Figure 1.5 shows a recommended circuit for connection between the H-UDI and AUD port connectors (36 pins) and t he MPU when the emulat or is in us e.
9 When the circuit is connected as shown in figure 1. 5, the switches of the emulato r are set as SW 2 = 1 and SW3 = 1. F or details , refer to section 3.8, Setting t he DIP Swi tches, in the SuperH TM Family E10A-US B Emulator U ser’s Manual. 1 AUDATA0 AUDATA2 AUDATA1 AUDATA3 TCK TMS AUDSYNC N.
10 3. When the voltage level of Vcc Q_SR (power supply for H-UDI and AUD) is 2.85 V and that of VccQ_MF I (power suppl y for /RESETA ) is 1.8 V, a le vel-shift circuit i s required as show n in the fi gure. 1.5.2 Recommended Circuit (14- Pin Type) Figure 1.
11 When the circuit is connected as shown in figure 1. 6, the switches of the emulato r are set as SW 2 = 1 and SW3 = 1. F or details , refer to section 3.
12 1.5.3 Recommended Circuit (38- Pin Type) Figure 1.7 shows a recommended circuit for connection between the H-UDI and AUD port connectors (38 pins) and t he MPU when the emulat or is in us e. Notes: 1. Do not connect an ything to t he N.C. pins of the H-UDI port connector.
13 When the circuit is connected as shown in figure 1. 7, the switches of the emulato r are set as SW 2 = 1 and SW3 = 1. F or details , refer to section 3.
14 Notes: 1. Do not use /R ESETP in the emul ator after the user syst em has been activated. When reset s ignals are used fo r debugging, use / RESETA. 2. Fix /RES ETA as high level w hen it is not used. 3. When the voltage level of Vcc Q_SR (power supply for H-UDI and AUD) is 2.
15 Section 2 Soft ware Specific ati ons w hen Usi ng the SH 7362 2.1 Differences between th e SH7362 and the Emulator 1. When the emu lator system is initiated, it initializes th e genera l registers and part of the control registers as s hown in table 2.
16 3. Low-Power S tates (Sleep, Soft ware Standby, Module S tandby, U Standb y, and R St andby) For low-power consumption, t he SH7362 has sleep, softw are standby, m odule stand by, U standby, and R standby stat es. The sleep, softw are standby, U Standby, and R S tandby states are switched us ing the SLEEP instruction.
17 7. Memory Access during User Program Break The emulator can download t he program f or the fl ash memor y area (for details, refer to s ection 6.22, Download Fu nction to th e Flash Memory Area, in the SuperH TM Family E10A-USB Emulator User’s Manual).
18 11. MFI When the MFI boot mode is u sed, be sure to activate the emulator by setting the MFIINT signal as a trigger f or the MFI transfer from the base- band side.
19 The RCLK wa tchdog timer op erates only when t he user program i s executed. D o not change the value of the freque ncy change register in t he [IO] window or [Memory] wind ow. The internal I/O registers can be accessed fr om the [IO] window. However, n ote the following when accessi ng the SDMR register of the bus-state controller.
20 2.2 Specific Functions for the Em ulator when Using the SH7362 2.2.1 Event Cond ition Func tions The emulator is used t o set 12 event conditions (C h1 to Ch12) and the software trace.
21 Table 2.5 Di alog Boxes f or Setting E vent Condition s Fu ncti on Dialog Box Addr ess Bus Con ditio n (Addres s) Data Bus Con ditio n (Data) ASID Con ditio n (ASID) Bus State Con ditio n (Bus Stat.
22 Table 2.5 Di alog Boxes f or Setting E vent Condition s (cont) F u n c t i o n Dialog Box Addr ess Bus Con ditio n (Addres s) Data Bus Con ditio n (Data) ASID Con ditio n (ASID) Bus State Con ditio.
23 Sequential Setting : In the emulator , sequential setting o f an Event Condition is enabled. Table 2.6 Sequent ial Event Co nditions Type Event Condition Description [CPU Sequential Event] Page 2 Channel Sequential Ch2 -> 1 Halts a pro gram when a c ondition i s satisfied i n the order of Event C ondition 2, 1.
24 Table 2.6 Sequent ial Event Co nditions (c ont) Type Event Condition Description [CPU Sequential Event] Page (cont) CPU Extend Expands the [C PU Sequentia l Extend] pa ge. The sequential sett ing is enabled with any combinatio n. For details, r efer to sect ion 2.
25 Sequential Break Extensio n Setting: Figure 2.1 [CPU Sequent ial Ex tend] Pag e (a) Indicates the channel name for setting condi tions. (b) Selects a condition that is satis fied bef ore the channel which sets up con ditions.
26 Usage Exa mple of Sequentia l Break Ex tension Setting: A tutorial program provi ded for the product is used as an example. For the tutorial program , refer to section 6, Tuto rial, in the SuperH TM Fa mily E10A-USB Emulator User’s Manual . The conditions of Event Condition ar e set as follows: 1.
27 Figure 2.2 [Source] Window at Execu tion Halted (Se quential B reak).
28 2.2.2 Trace Functions The emulator su pports the trac e functions li sted in table 2.7. Table 2.7 Tr ace Functions Function Internal Trace AUD Trace Memory Output Trace Branch trace Supported (eigh.
29 Branch Trace Functions: The branch s ource and desti nation addr esses , their source lines, branch types, and types of acces sed bus mast ers are displayed.
30 Range Memory Access T race Functions: The memory access within the specified range is acquired by a trace. The rea d cycle, write cycle, or read/write cycle can be se lected as the bus type, ASID value, or bus cycle for trace acquisition.
31 (iii) Open the [ASID] page, remove the check mark of the [Don’t care] check box, and enter the ASID value to b e set. When the ASID val ue is not se t as a condition, do not remo ve the check mark of the [Don’t care] check box. (iv) Open the [Bus s tate] page and specify th e bus type an d bus cycle that are to be s et.
32 Software Trace Func tion: Note: This function ca n be suppo rted with SHC /C++ compiler (manufacture d by Renes as Technology Corp .; includin g OEM and bundle p roducts) V 6.0 or later. However, SHC /C++ compiler (incl uding OEM and bundle products ) V8.
33 AUD Trace Function: This function is o perational when the AUD pin of the device is conn ected to the emulator. It is activat ed by selecting the [AUD trace] radio b utton in the [Trace type ] group box of the [Trace mo de] page. Set the trace condition to be used.
34 To set the AUD trace acquisition mode, click the [T race] window with the right mouse but ton and select [Setting] from the pop -u p menu to display the [Acqui sition] dialog box. The AUD trace acquisition mode can be s et in the [Trace Mode 1] or [Trace Mode 2] gro up box in the [T race Mode] page of the [Acquisi tion] dialog bo x.
35 Notes on AUD Trace: 1. When the trace display is per formed durin g us er program execution, the m nemonics, operands , or source is n ot displayed. 2. The AUD branch trace functio n outputs the diff erences between newly o u tput branch source addresses and pre viously outp ut branch sour ce addres ses.
36 Memory Output Tra ce Funct ion: This function is activated by selectin g the [Use Memory trace] radio button in the [ Trace type] grou p box of the [Tra ce mode] page.
37 To set the memory-output trac e acquisition mode, click the [ Trace] window with the right mous e button and s elect [Setti ng] from the po p-up menu to displ ay the [Acquis ition] dialo g box. The AUD trace acquisition mod e can be set in the [Trace Mode 1] or [Trace Mode 2] group box in the [Trace Mode] page of the [Acquisition] dialog box.
38 Notes: 1. The memor y range for which trace is out put is the address on the system bus and not supported for the MMU or cache. 2. In the memory range for outp ut, do not specify t he ranges that the user program has been downloaded or t he user program acces ses.
39 instructions cannot be set . For these cases , do not set BR EAKPOINTs. Refer to t he hardware manual for d etails. 7. When the [Normal ] option i s selected in t he [Memory area] group box in the .
40 2.2.5 Notes on Se tting the [Event Conditi on] Dialog Box an d the B REAKCONDITION_ SET Command 1. When [Go to cu rsor], [St ep In], [Step Over] , or [Step Out ] is se lected, the setti ngs of Event Conditi on 3 are disa bled. 2. When an Even t Condition is satisf ied, emulation may stop after two or more instructions have been executed.
41 2.2.8 Performance Me asurement Function The emulator su pports the per formance measurement function. 1. Sett ing the performance meas urement conditions To set the performance measurement conditions , use t he [Performa nce Analysis] dial og box and the PERFORMANCE_SET command.
42 Note: Fo r the comm and line syntax, refer to th e online help. (a) Specifying the measur ement s tart/end conditions Set the performan ce measurement cond itions in the [Action] pag e after condit.
43 Table 2.11 Cond itions Sp ecifi ed in the [Action] Page Item Description PA1 pa1_start_po int Specifies th e conditio ns of Eve nt Condition th at has been set as the measurem ent start c ondition of performance channel 1.
44 Figure 2.9 [A ction] Page Note: PA1 or PA2 cann ot be set fo r Ch8 and Ch9..
45 (b) Measurement tolerance • The measured value in cludes tolerance. • Tolerance will be generated before or after a break. For details , see table 2.14. (c) Measurement items Items are measured in the [P er formance Analysi s] dialog bo x for each channel from Ch1 t o Ch4.
46 Table 2.12 Measurement Items Classification Type Measur ement Item Option Note Disabled None Not measured. CPU performance Cycle Elapsed cycles AC Except for power-on perio d; counted by t he CPU c lock. Cy cl es ex ecu ted in privileged m ode PM The number of privileged- mode cycl es among t he number of ela psed cycle s.
47 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note CPU performance (cont) Stalled cycle Cycles stalled in f ull- trace mode (w ith multi-count s) SFM All items are counted independent ly.
48 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note Instructi on bus performance (cont) Instructi on (cont) Number of instruct ion cache miss ICM The number of cache mi sses by an instru ction cac he access (th e number of accesses to t he outside of the CPU core d ue to a cac he miss).
49 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note Operand bus performance (cont) Access count (cont) Number of intern al- RAM acce ss for operand fetch (READ) (XY-RAM or O-L memo ry) XLR The number of accesses to XY memory in t he SH7362 durin g memory acces s (read) of an operand.
50 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note Operand bus performance (cont) Access miss count Number of opera nd cache miss (READ) CMR The n umber of ca che miss es by an op erand cach e access (read) (number of access es to the outside of the CPU core due to a cac he miss).
51 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note System b us performance (only avail able for Ch3 and Ch4) System bus Number of reque sts RQ The number of va lid bus c ycles (cells) is counted by the system bu s clock.
52 Table 2.13 shows the measurement i tems and methods that are mainly us ed. Table 2.13 Main Measurement Items Main Measurem ent Item Measurement Method Elapsed t ime Number of e lapsed cycles x CPU .
53 Each measurement conditio n is also counted wh en con ditions in table 2.14 are ge nerated. Table 2.14 Perf ormance Measu rement Conditions to be Co unted Measurement Condition Notes No cachi ng due to the settings of T LB cacheab le bit Counted for accessing th e cacheab le area.
54.
SuperH ™ Family E10A-USB Emulator Additional Document for User's Manual Supplementary Information on Using the SH7362 Publication Date: Rev.1.00, August 20, 2007 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Customer Support Department Global Strategic Communication Div.
Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan http://www.renesas.com Refer to " http://www.renesas.com/en/network " for the latest and detailed information. Renesas Technology America, Inc. 450 Holger Way, San Jose, CA 95134-1368, U.
.
SuperH ™ Family E10A-USB Emulator Additional Doc ument for User’s Manu al Supplementary Information on Using the S H7362.
Un punto importante, dopo l’acquisto del dispositivo (o anche prima di acquisto) è quello di leggere il manuale. Dobbiamo farlo per diversi motivi semplici:
Se non hai ancora comprato il Renesas SH7362 è un buon momento per familiarizzare con i dati di base del prodotto. Prime consultare le pagine iniziali del manuale d’uso, che si trova al di sopra. Dovresti trovare lì i dati tecnici più importanti del Renesas SH7362 - in questo modo è possibile verificare se l’apparecchio soddisfa le tue esigenze. Esplorando le pagine segenti del manuali d’uso Renesas SH7362 imparerai tutte le caratteristiche del prodotto e le informazioni sul suo funzionamento. Le informazioni sul Renesas SH7362 ti aiuteranno sicuramente a prendere una decisione relativa all’acquisto.
In una situazione in cui hai già il Renesas SH7362, ma non hai ancora letto il manuale d’uso, dovresti farlo per le ragioni sopra descritte. Saprai quindi se hai correttamente usato le funzioni disponibili, e se hai commesso errori che possono ridurre la durata di vita del Renesas SH7362.
Tuttavia, uno dei ruoli più importanti per l’utente svolti dal manuale d’uso è quello di aiutare a risolvere i problemi con il Renesas SH7362. Quasi sempre, ci troverai Troubleshooting, cioè i guasti più frequenti e malfunzionamenti del dispositivo Renesas SH7362 insieme con le istruzioni su come risolverli. Anche se non si riesci a risolvere il problema, il manuale d’uso ti mostrerà il percorso di ulteriori procedimenti – il contatto con il centro servizio clienti o il servizio più vicino.