Home

E8a Emulator Additional Document for User`s Manual

image

Contents

1. cc ccccecceeeeeeeeeeeeceeeeeeaeeeeaaeeeeeeeseaeeesaaaeenaeeeeeeeeaas 22 This user s manual is applicable to the E8a emulator software V 1 02 Release 00 or later E8a Emulator Section 1 Inside the E8a Emulator User s Manual Section 1 Inside the E8a Emulator User s Manual The E8a emulator manual consists of two documents the E8a User s Manual and the E8a Additional Document for User s Manual this document Be sure to read BOTH documents before using the E8a emulator 1 E8a Emulator User s Manual The E8a Emulator User s Manual describes the hardware specifications and how to use the emulator debugger E8a emulator hardware specifications Connecting the E8a emulator to the host computer or user system Operating the E8a emulator debugger Tutorial From starting up the E8a emulator debugger to debugging 2 E8a Additional Document for User s Manual The E8a Additional Document for User s Manual describes content dependent on the MCUs and precautionary notes MCU resources used by the E8a emulator Example of the E8a emulator connection or interface circuit necessary for designing hardware Notes on using the E8a emulator Setting the E8a emulator debugger during startup REJ10J1638 0400 Rev 4 00 Page 1 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 2 E8a Emulator Specifications Section 2 E8a Emulator Specifications Table 2 1 shows the E8a emulator specifications for the M16C Tiny Se
2. Figure 7 2 Emulator mode Tab MCU Group Select the name of the MCU group to be used from the MCU Group drop down list Device Select the type of MCU to be used from the Device drop down list REJ10J1638 0400 Rev 4 00 Page 19 of 23 Apr 30 2010 RENESAS E8a Emulator Section 7 Debugger Setting Mode Erase Flash and Connect When starting the debugger the E8a emulator erases the Flash memory data for the MCUs and simultaneously writes the E8a emulator program Keep Flash and Connect When launching the debugger the E8a emulator retains the Flash memory data for the MCUs Note that the area for the E8a emulator program and the vector area used by the E8a emulator will change Program Flash The E8a emulator starts as a simple programmer When downloaded the E8a writes only the user program E8a emulator program is not written Therefore the program cannot be debugged in this mode Debugging of CPU rewrite mode Select this setting when debugging the program which rewrites the CPU In this mode the following debug operation which rewrites the Flash memory cannot be executed Setting the PC break points Changing the memory contents in the Flash memory area In this mode when starting the debugger the E8a emulator erases the Flash memory data for the MCUs and simultaneously writes the E8a emulator program When Execute the user program after ending the debugger is selected with the E8a emulator connect
3. CENESAS T D o lt D 5 v E8a Emulator Additional Document for User s Manual ROEQOOO8AKCEOOEPS3 Renesas Microcomputer Development Environment System M16C Family M16C Tiny Series Notes on Connecting the M16C 26 M16C 26A M16C 28 and M16C 29 All information contained in these materials including products and product specifications represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice Please review the latest information published by Renesas Electronics Corporation through various means including the Renesas Electronics Corporation website http www renesas com Renesas Electronics www renesas com Rev 4 00 Apr 2010 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Re
4. 6 1 Program Area for the E8a Emulator ROM size Program Area for E8a Emulator Group Part No RAM size a Data Area Vector Area ROM Area RAM Area M30262F3 24 KB 1 KB MI6C 26 M30262F4 32 KB 1 KB M30262F6 48 KB 2 KB M30262F8 64 KB 2 KB M30260F3 24 KB 1 KB M30260F6 48 KB 2 KB M16C 26A M30260F8 64 KB 2 KB M30263F3 24 KB 1 KB M30263F6 48 KB 2 KB M30263F8 64 KB 2 KB idee EREN M30280F6 48 KB 4 KB FFFE8h FFFEBh 2KBofthe geese M30280F8 64 KB 4 KB 4KB FFFECh FFFEFh programming 1 FFFF4h FFFF7h area 1 M30280FA 96 KB 8 KB FFFFCh FFFFFh M16C 28 M30280FC 128 KB 12 KB M30281F6 48 KB 4 KB M30281F8 64 KB 4 KB M30281FA 96 KB 8 KB M30281FC 128 KB 12 KB M30290FA 96 KB 8 KB M16C 29 M30290FC 128 KB 12 KB M30291FA 96 KB 8 KB M30291FC 128 KB 12 KB Note 1 When starting the debugger the Emulator Setting dialog box shown in Figure 6 1 is displayed Specify the area which will not be used in the user system The data area cannot be specified REJ10J1638 0400 Rev 4 00 Page 9 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 6 Notes on Using the E8a Emulator Emulator Setting MCU Setting Communication Baud Rate Emulator mode Firmware Location Firmware location Program 800h Byte Use FOO 00 MIN FOOO0 MAX FF700 Work RAM 80h Byte Use 040 0 MIN 04
5. 00 MAX 0B80 7 Debugging of program that uses WDT 5 Cancel M Do not show this dialog box again Figure 6 1 Firmware Location Tab of the Emulator Setting Dialog Box 2 When the system is launched the E8a emulator initializes the general registers and some of the flag registers as shown in Table 6 2 Table 6 2 E8a Emulator Register Initial Values PC Reset vector value in the vector address table RO to R3 bank 0 1 0000h AO A1 bank 0 1 E8a FB bank 0 1 Emulator INTB Activation Note 1 The Work RAM address for the E8a emulator is specified in the Firmware Location tab of the Emulator Setting dialog box 3 The E8a emulator controls the MCUs by using the P64 P65 P66 P67 RESET and CNVss and P86 or P85 and P16 pins 4 The E8a emulator uses up to 14 bytes of the stack pointer ISP during a user program break Therefore set aside 14 bytes for the stack area REJ10J1638 0400 Rev 4 00 Page 10 of 23 Apr 30 2010 ztENESAS E8a Emulator 5 SFRs used by the E8a emulator program Section 6 Notes on Using the E8a Emulator As the SFRs listed in Table 6 3 are used by the E8a emulator program do not change any of these values If these values are changed the E8a emulator cannot control the MCU Note that UARTI1 transmit interrupt control register SITIC and UARTI receive interrupt control register SIRIC always read out values used by the emulator These registers are not initialized by selectin
6. Program should be stopped at this address NOP NOP REIT b INT instruction To debug the user program with the INT instruction set a PC break for the internal processing of the INT instruction and execute the program with the GO command Example INT_3 NOP INT 3 NOP JMP MAIN Execute using GO command NOP Break lt NOP REIT 19 Go to cursor function The Go to cursor function is actualized using an address match break Therefore when you execute the Go to cursor command all the address match breaks you set become invalid while all the PC breaks remain valid 20 Note on PC break point When downloading a user program after modifying it the set address of PC break may not be corrected normally depending on the modification Therefore break points other than the set PC breaks may shift After downloading a user program check the setting of PC breaks in the event point window and reset it If a low speed clock such as the sub clock is used as the operation clock of the MCU setting or canceling PC breaks may take time Use address match breaks as the first choice REJ10J1638 0400 Rev 4 00 Page 15 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 6 Notes on Using the E8a Emulator 21 22 23 24 Note on debugging in CPU rewrite mode When debugging in CPU rewrite mode do not rewrite in CPU block 0 area addresses FFOOOh FFFFFh and block containing the E8a emulator program I
7. Trade Centre No 18 JIn Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Te Renesas E 11 Te lectronics America Inc 1 408 588 6000 Fax 1 408 588 6130 ectronics Canada Limited 01 Nicholson Road Newmarket Ontario L3Y 9C3 Canada 1 905 898 5441 Fax 1 905 898 3220 lectronics Europe Limited 44 1628 585 100 Fax 44 1628 585 900 lectronics Europe GmbH 49 21 1 65030 Fax 49 211 6503 1327 lectronics China Co Ltd 86 10 8235 1155 Fax 86 10 8235 7679 lectronics Shanghai Co Ltd 86 21 5877 1818 Fax 86 21 6887 7858 7898 lectronics Hong Kong Limited 852 2886 9318 Fax 852 2886 9022 9044 lectronics Taiwan Co Ltd 886 2 8 175 9600 Fax 886 2 8175 9670 lectronics Singapore Pte Ltd Front Avenue 06 10 keppel Bay Tower Singapore 098632 65 6213 0200 Fax 65 6278 8001 lectronics Malaysia Sdn Bhd 60 3 7955 9390 Fax 60 3 7955 9510 lectronics Korea Co Ltd F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea 82 2 558 3737 Fax 82 2 558 5141 2010 Renesas Electronics Corporation and Renesas Solutions Corporation All rights reserved Colophon 1 0 E8a Emulator ROEQOOO8AKCE00 Additional Document for User s Manual 2rCENESAS Renesas Electronics Corporation REJ10J1638 0400
8. am Flash mode When the ID code is specified by the ID option of the Imc30 download the MOT file or HEX file When the X30 file is downloaded the ID code is not valid When downloading the X30 file specify the ID code using an assembler directive command such as BYTE The file to which the ID code specified by the assembler directive command JD is output varies depending on the version of the assembler For details refer to the Assembler User s Manual 9 Reset The reset vector is used by the E8a emulator program If the MCU is reset while executing the user program control is transferred to the E8a emulator program and the user program is forced to stop Do not use the hardware reset 2 software reset watchdog timer reset and oscillation stop detection reset otherwise the E8a emulator will not operate normally REJ10J1638 0400 Rev 4 00 Page 13 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 6 Notes on Using the E8a Emulator 10 11 12 13 14 15 16 17 Memory access during emulation execution When referring to or modifying the memory contents the user program is temporarily halted For this reason a real time emulation cannot be performed When a real time emulation is necessary during a program execution disable the automatic update in the watch window or fix the display in the memory window before running the program so that memory accesses do not occur during an execution Setting
9. an be referenced 5 4 this __b_BaseClass m_iBase Can be referenced 6 m_iDerive 5 __b_BaseClass m_iBase Can be referenced 6 THUMM HMMM REJ10J1638 0400 Rev 4 00 Page 23 of 23 Apr 30 2010 ztENESAS E8a Emulator ROEQOOO8AKCE00 Additional Document for User s Manual Notes on Connecting the M16C 26 M16C 26A M16C 28 and M16C 29 Publication Date Apr 30 2010 Rev 4 00 Published by Renesas Electronics Corporation Microcomputer Tool Development Department 2 Edited DY Renesas Solutions Corporation tENESAS SALES OFFICES Renesas Electronics Corporation http www renesas com Refer to http www renesas com for the latest and detailed information Renesas E 2880 Scott Boulevard Santa Clara CA 95050 2554 U S A Te Renesas E 11 Te Renesas E Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Te Renesas E Arcadiastrasse 10 40472 D sseldorf Germany Te Renesas E 7th Floor Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100083 PR China Te Renesas E Unit 204 205 AZIA Center No 1233 Lujiazui Ring Rd Pudong District Shanghai 200120 China Te Renesas E Unit 1601 1613 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Te Renesas E 7F No 363 Fu Shing North Road Taipei Taiwan Te Renesas E 1 harbour Te Renesas E Unit 906 Block B Menara Amcorp Amcorp
10. ch window follow either method described below Case 1 Use indirect references from the class object to refer to member variables of the base class 2 3 Case 2 Use indirect references from this pointer to refer to member variables of the base class 5 6 lt Example code gt THUMM HMMM h class BaseClass public int m_iBase public BaseClass m_iBase 0 void BaseFunc void class DerivedClass public BaseClass public int m_iDerive public DerivedClass m_iDerive 0 void DerivedFunc void REJ10J1638 0400 Rev 4 00 Apr 30 2010 RENESAS Page 22 of 23 E8a Emulator Section 8 Applicable Tool Chain and Third party Products cpp main class DerivedClass ClassObj ClassObj DerivedFunc return void BaseClass BaseFunc void m_iBase 0x1234 void DerivedClass DerivedFunc void BaseFunc m_iDerive 0x1234 TTT lt Watch window registration example gt TATUM Case 1 If the PC value resides in the main function 1 ClassObj m_iBase Cannot be referenced 1 2 ClassObj __b_BaseClass m_iBase Can be referenced 2 3 ClassObj _b_BaseClass m_iBase Can be referenced 3 m_iDerive Expansion symbol Case 2 If the PC value resides in the DerivedClass DerivedFunc function 1 m_iBase Cannot be referenced 4 2 this gt __b_BaseClass m_iBase Can be referenced 5 3 __b_BaseClass m_iBase C
11. ct Vss and Vcc to the Vss and Vcc of the MCU respectively Do not connect anything to the N C pin The amount of voltage input to Vcc must be within the specified range of the MCU Pin 14 is used for checking the connection between the E8a and the user system and is not directly connected to the Vss inside the E8a Make sure that pins 2 6 10 12 and 14 are all connected to the Vss orn wM REJ10J1638 0400 Rev 4 00 Page 7 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 5 Examples of E8a Connections 9 Figure 5 7 shows the interface circuit in the E8a emulator Use this figure as a reference when determining the pull up resistance value User system connecter Power supply circuit use only with power supply mode Emulator control circuit 74LVC125 2802462 1 Power for 74LVC125 and 74LVC2T45 are supplied from Vcc in the user system connecter or power supply circuit in power supply mode Figure 5 7 Interface Circuit Inside the E8a Emulator For Reference REJ10J1638 0400 Rev 4 00 Page 8 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 6 Notes on Using the E8a Emulator Section 6 Notes on Using the E8a Emulator 1 Program area for the E8a emulator Table 6 1 lists the program areas allotted for the E8a emulator Do not change this area allocation otherwise the E8a emulator will not control the MCU If settings were changed disconnect the debugger and then reconnect it Table
12. d area Do not change the contents Otherwise the E8a emulator cannot control the MCU Debugging in stop mode or wait mode When debugging in stop mode or wait mode do not operate windows until the program stops at the breakpoint by setting the breakpoint at the line of the program which will be executed after the stop mode or wait mode is cancelled In addition disable the automatic update in the watch window or fix the display in the memory window before running the program so memory accesses do not occur during an execution When the program is forcibly stopped or when the memory is referred to or modified in stop mode or wait mode these mode will be cancelled Peripheral I Os during a halt During a user program halt interrupts are not accepted although peripheral I Os continue to run For example a timer interrupt is not accepted although the timer continues to count when a user program is stopped by a break after the timer started REJ10J1638 0400 Rev 4 00 Page 14 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 6 Notes on Using the E8a Emulator 18 Exceptional step execution a Software interrupt instruction Step execution cannot be performed in the internal processing of instructions undefined overflow BRK and INT which generate a software interrupt continuously in the program Example INT instruction NOP NOP INT 3 2 Passes through if the STEP execution is carried out NOP JMP MAIN INT_3 NOP lt _
13. e user system in the same way REJ10J1638 0400 Rev 4 00 Page 3 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 4 E8a Connecting Connector Pin Assignments Figure 4 1 shows the pin assignments for the E8a connecting connector Section 4 E8a Connecting Connector Pin Assignments M16C Tiny pimo MCU signals Pin 1 mark 1 P65 SCLK Connector S 2 Vss D Pi 3 CNVss ae an 4 N C _ P85 EPM 5 P67 TxD 6 Vss 7 P86 CE P16 _ eS 10 Vss A 11 P66 RxD 12 Vss 13 RESET Pin 1 mark 14 Vss Figure 4 1 E8a Connecting Connector Pin Assignments Note Pin 14 is used for checking the connection between the E8a and the user system and is not directly connected to the Vss inside the E8a Make sure pins 2 6 10 12 and 14 are all connected to the Vss REJ10J1638 0400 Rev 4 00 Apr 30 2010 RENESAS Page 4 of 23 E8a Emulator Section 5 Examples of E8a Connections Section 5 Examples of E8a Connections Figure 5 1 shows a connection example When using the emulator as a programmer the connection specification between the E8a and the MCUs is the same as shown in Figure 5 1 Vcc Pulled up at 4 7kQ or more P67 P64 2 M1 pas 2 M16C Tiny Note 1 For pins EPM and CE select one of the following settings 1 EPM P85 Disconnected CE P86 Connected 2 EPM P85 Connected CE P16 Con
14. ed to the user system the user program is executed at the same time the debugger is terminated This check box setting is available only when the Program Flash mode is selected Power supply When supplying power to the user system from the E8a click the Power Target from Emulator MAX 300mA check box 3 Firmware Location tab For details see 1 Program area for the E8a emulator and 7 Debugging using the watchdog timer in Section 6 Notes on Using the E8a Emulator REJ10J1638 0400 Rev 4 00 Page 20 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 7 Debugger Setting 4 MCU Setting Tab In the MCU Setting tab set the operating condition of the MCU used in the user system Emulator Setting Emulator mode Firmware Location MGU Setting Communication Baud Rate MCU Setting MCU M30262F8 Processor Mode Sinele Chip Mode M PM10 bO of 000005H is 1 Cancel dialog box again Figure 7 3 MCU Setting Tab PM10 b0 of 000005H is 1 Specify whether PM10 zero bit of processor mode register 1 is set When using the user program with PM10 set to 1 check this option 5 Communication Baud Rate Tab Select communication baud rate between the E8a and MCU in the Communication Baud Rate tab 2000000bps default setting should be selected Emulator Setting Emulator mode Firmware Location MCU Setting Communication Baud Rate Please select commun
15. enesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics Contents Section 1 Inside the E8a Emulator Users Manual 0 ccc ccceeceeeeeeeeeeeceeeee cae eeeeaee scenes eeaeeeeaaeeeeeeeseieeseaeeseaeeeeneee 1 section 2 E8a Emulator Specifications ccsiccscjieessersbecenscdesetitecdeagadivesssiedesecdelind ante dds tbe deaas dong telat diiad aiaa 2 Section 3 Connecting the E8a Emulator to the User System cccescceeeeeeceeeeeeee scenes cae eeeaaeeeeeeeesaeeeeaesnaeeeeeeee 3 Section 4 E8a Connecting Connector Pin Assignments cc cccceeeeeeeeeeeeeeeaeeeeaee tenets ceaeeeeaaeseeeeeesaeeetaeseaeeseeeee 4 Section 5 Examples of E8a Connections cccccccccseccecessneceeeeneeeeeeceaeeeeecaeeeeeeeaeeeseesaeeesecaaaeeesssaeesesaeeseseseeesenaas 5 Section 6 Notes on Using the E8a Emulat0l 0 ccccccccccsssececsesneeeeesesneeeessaeeeeesaeeeeseaeeeeseaaeeesscsaesesseeeeesssaeeeseaaas 9 section Deb gger SettNg ossi iniiai eisai ai ea aiaa iaaa Aaa AEAEE AEE agin 18 Section 8 Applicable Tool Chain and Third party Products
16. f these areas are rewritten the E8a emulator will not control the MCU Do not halt the user program while setting up the CPU rewrite mode and releasing it If halted the E8a emulator may not control the MCU In addition disable the automatic update in the watch window or fix the display in the memory window before running the program so memory accesses do not occur during an execution To check the data after executing the CPU rewrite mode halt the program after releasing the CPU rewrite mode and refer to the memory window etc When rewriting the Flash memory in the program area select Menu gt Setup gt Emulator gt System to open the Configuration dialog box in the High performance Embedded Workshop In this dialog box change the Flash memory synchronization setting to Flash memory to PC and set the debugger cache to OFF In this setting the Flash memory is read whenever a break occurs which takes some time Use it with the Disable setting except when debugging in CPU rewrite mode If CPU rewrite can be executed for the data area and erase process can be suspended do not use software breaks Notes on rewriting Flash memory Do not reset the MCU when rewriting the Flash memory The Flash memory is rewritten when the Flash memory write end is displayed in the output window of the High performance Embedded Workshop If the MCU is reset when rewriting the Flash memory the user program or the E8a emulator program ma
17. g Debug gt Reset CPU or by using the RESET command If register contents are referred to a value that has been set in the E8a emulator program will be read out Table 6 3 SFRs Used by the E8a Emulator Program Address Register Symbol Bit Ras ae aac 0009h Address match interrupt enable register AIER All bits 1 0010h 0012h Address match interrupt register 0 RMADO All bits 1 0014h 0016h Address match interrupt register 1 RMAD1 All bits 1 O3A8h UART1 transmit receive mode register U1MR All bits 1 O3AAh 03ABh UART1 transmit buffer register U1TB All bits 1 03ACh UART1 transmit receive control register O U1C0 All bits 1 O3ADh UART1 transmit receive control register 1 U1C1 All bits 1 O3AEh 03AFh UART1 receive buffer register U1RB All bits 1 03B0h UART transmit receive control register 2 UCON Bits 1 3 4 5 and 6 2 03ECh Port P6 register P6 Bits 4 5 6 and 7 2 O3EEh Port P6 direction register PD6 Bits 4 5 6 and 7 2 025Dh Pin Assignment Control Register 3 PACR Bit 7 2 Notes 1 Do not change this register value 2 Do not change the value of the bits listed in the column to the left When operating this register make changes using the bit operation instructions to avoid changing the bit values 3 Not included in the M16C 26 Group 6 Interrupts used by the E8a emulator program The BRK instruction interrupt address match interrupt si
18. gn laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard
19. he d IUEEE Power supply V Power Target from Emulator MAX 300mA K 33aV 60 l Do not show this dialog box again Figure 7 1 Emulator Setting Dialog Box If you check Do not show this dialog box again at the bottom of the Emulator Setting dialog box the Emulator Setting dialog box will not be displayed the next time the debugger is launched You can open the Emulator Setting dialog box using one of the following methods After the debugger is launched select Menu gt Setup gt Emulator gt Emulator Setting Hold down the Ctrl key while launching the debugger When Do not show this dialog box again is checked the E8a does not supply power to the user system REJ10J1638 0400 Rev 4 00 Page 18 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 7 Debugger Setting 2 Emulator mode tab Device selection mode specification and power supply setting are made from the Emulator mode tab of the Emulator Setting dialog box Emulator Setting MCU Setting Communication Baud Rate Emulator mode Firmware Location MOU Group M16C 26 Group 7 Device M30262F8 z Mode f Erase Flash and Connect Keep Flash and Connect Program Flash Debugging of CPU rewrite mode J Execute the user program after ending the d ebueger Power supply V Power Target from Emulator MAX 300maA K 33aV 50 Cancel I Do not show this dialog box again
20. ication baud rate between Emulator and MCU 2000000 bps i Cancel I Do not show this dialog box again Figure 7 4 Communication Baud Rate Tab REJ10J1638 0400 Rev 4 00 Page 21 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 8 Applicable Tool Chain and Third party Products Section 8 Applicable Tool Chain and Third party Products With the M16C Tiny Series E8a emulator you can debug modules created by the inhouse tool chain and third party tools listed in Table 8 1 below Table 8 1 Applicable Tool Chain and Third party Tools Tool chain M3T NC30WA V 5 20 Release 01 or later Third party tools TASKING M16C C C EC Compiler V 2 3r1 or later IAR EWM16C V 2 12 or later Notes on debugging the load modules created in ELF DWARF2 format If the load module was created in ELF DWARF2 format using TASKING M16C C C EC compiler V3 0r1 the precautionary note described below must be observed when displaying member variables of the base class in the watch window Precautionary Note If any class object with a base class is defined the following problems may occur Case 1 Member variables of the base class cannot be referenced directly from the class object 1 Case 2 If the PC value resides in any member function of a derived class member variables of the base class cannot be referenced directly 4 Solution If member variables of the base class need to be referenced in the wat
21. ion maximum 14 7 m s Ambient gases No corrosive gases REJ10J1638 0400 Rev 4 00 Page 2 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 3 Connecting the E8a Emulator to the User System Section 3 Connecting the E8a Emulator to the User System Before connecting the E8a emulator to the user system a connector must be installed in the user system so a user system interface cable can be connected When designing the user system refer to Figure 4 1 E8a Connecting Connector Pin Assignments and Figure 5 1 Example of an E8a Connection Before designing the user system be sure to read the E8a Emulator User s Manual and related device hardware manuals Table 3 1 shows the recommended connector for the emulator Table 3 1 Recommended Connector Type Number Specification 14 pin connector 2514 6002 3M Limited 14 pin straight type Connect E8a connecting connector pins 2 6 10 12 and 14 firmly to the GND on the user system board These pins are used as an electric GND and monitor the connection of the user system connector Note the pin assignments for the user system connector User system interface cable Ve Connector User system Figure 3 1 Connecting the User System Interface Cable with an E8a Connecting Connector Notes 1 Do not place any components within 3 mm area of the connector 2 When using the E8a emulator as a programmer connect it to th
22. n 6 Notes on Using the E8a Emulator 8 Flash memory ID code This MCU function prevents the Flash memory from being read out by anyone other than the user The ID code in Table 6 4 written to the flash memory of the MCU must match the ID code displayed in the Figure 6 3 ID Code verification dialog box at debugger startup otherwise the debugger cannot be launched Note that when the ID code is FFh FFh FFh FFh FFh FFh FFh the ID code is regarded as undefined In this case the ID code is automatically authenticated and the ID Code verification dialog box is not displayed In Program Flash mode the contents of the user program are input into the ID code area When debugging in other modes FFh FFh FFh FFh FFh FFh FFh is written into the ID code area regardless of the contents of the downloaded user program Table 6 4 ID Code Storage Area of M16C Tiny Address Description FFFDFh First byte of ID code FFFES3h Second byte of ID code FFFEBh Third byte of ID code FFFEFh Fourth byte of ID code FFFF3h Fifth byte of ID code FFFF7h Sixth byte of ID code FFFFBh Seventh byte of ID code ID Code verification Please input the ID code being written in the flash memory ID Code 01020304050607 hput Mode Hex Specify ID code by hexadecimal 14 digits ASCI Specify ID code by ASCI character within 7 letters Cancel Figure 6 3 ID Code verification Dialog Box Note on Progr
23. nected Pulled up at 4 7KQ or more Pulled down at 4 7KQ or more 14 pin 2 54mm pitch connector Open collector buffer User system Figure 5 1 Example of an E8a Connection Note 2 For details on setting pins P64 P65 P85 P86 and P16 refer to numbers and 2 of Points to Remember on page 6 REJ10J1638 0400 Rev 4 00 Page 5 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 5 Examples of E8a Connections Points to Remember 1 Pins P64 P65 P66 and P67 are used exclusively by the E8a emulator Connect the E8a emulator to the MCU pins Connect pins P66 and P67 to the E8a emulator after pulling up the MCU pins at the Vcc level For P64 and P65 pull up the pins at the Vcc level or pull down them according to the MCU pin state after disconnecting the E8a emulator P64 may be in a Hiz state while the E8a emulator is active Therefore set the pin resistance value so the voltage cannot be at the midpoint potential depending on the voltage dividing of the resistance inside the E8a emulator Figure 5 7 Pulled up at 4 7kQ or more P65 pe6 _11 User system connector M16C Tiny Figure 5 2 E8a Emulator and MCU Connection 2 P86 or P85 and P16 are used by the E8a emulator for MCU control Connect the E8a emulator to the MCU pins Tf the P86 and CE pins are connected the sub clock function cannot be used Tf the P85 and EPM and P16 and CE pins are connected respectively NMI cannot be u
24. nesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or forei
25. ngle step interrupt and DBC interrupt are used by the E8a emulator program Therefore make sure the user program does not use any of these interrupts The E8a emulator changes these interrupt vector values to the values to be used by the emulator No problems occur if the interrupt vector values are written in the user program REJ10J1638 0400 Rev 4 00 Apr 30 2010 RENESAS Page 11 of 23 E8a Emulator Section 6 Notes on Using the E8a Emulator 7 Debugging using the watchdog timer When debugging the user program using the watchdog timer click the Debugging of program that uses WDT check box in the Firmware Location tab of the Emulator Setting dialog box By clicking this box the E8a emulator program refreshes the watchdog timer during program operation If memory access is executed through memory reference or modification the watchdog timer will be refreshed by the E8a emulator program Note that this timing will differ from the actual operational timing Emulator Setting MCU Setting Communication Baud Rate Emulator mode Firmware Location r Firmware location Program 800h Byte Use FOO 00 MIN FOOOO MAX FF700 Work RAM 80h Byte Use 040 0 MIN 0400 MAX 0B80 V Debugging of program that uses WDT l Do not show this dialog box again Figure 6 2 Firmware Location Tab of the Emulator Setting Dialog Box REJ10J1638 0400 Rev 4 00 Page 12 of 23 Apr 30 2010 ztENESAS E8a Emulator Sectio
26. of address match break during user program execution When adding or cancelling the address match break the user program is temporarily halted For this reason a real time emulation cannot be performed When the E8a emulator does not supply power to the user system it consumes the power voltage of the user system from several mA to more than 10 mA This is because the user power supply drives 74LVC125 74LVC1T45 and 74LVC2T45 to make the communication signal level match the user system power supply voltage When debugging the Flash memory is frequently rewritten by the E8a emulator Therefore do not use an MCU that has been used for debugging in products Also as the E8a emulator program is written to the MCU while debugging do not save the contents of the MCU Flash memory which were used for debugging nor use them as the ROM data for products NMI interrupt If NMI interrupts are used be sure to take the necessary precautions before executing the user program like disabling the automatic update in the watch window or fix the display in the memory window before running the program so that memory accesses do not occur during an execution If an NMI interrupt occurs while the user program halts or when memory contents are referenced or modified during user program execution the E8a emulator cannot control the MCU Reserved area The addresses not specified in the Hardware Manual for M16C 26 M16C 26A M16C 28 and M16C 29 Groups are reserve
27. ries Table 2 1 E8a Emulator Specifications for the M16C Tiny Series Tanne M16C Family M16C Tiny Series ical M16C 26 M16C 26A M16C 28 and M16C 29 Groups Available operating modes Single chip mode Address match break 6 points Break functions PC break points maximum 255 points Forced break Trace functions Flash memory programming function Available Clock synchronized serial communication via P64 P65 P66 P67 ROM size 2 KB variable assigned address RAM size 128 bytes variable assigned address Stack 14 bytes UART1 function and P64 P65 P66 P67 Pin P86 Xcout or Pins P85 NMI SDI and P16 Address match interrupt USB USB 1 1 full speed Also connectable to host computers that support USB 2 0 Power supply function Can supply 3 3 V or 5 0 V to the user system maximum 300 mA Power voltages M16C 26 3 0 5 5 V f BCLK 20MHz 1 Normal ver M16C 26A 2 7 5 5 V f BCLK 10MHz M16C 28 3 0 55V M16C 29 4 2 5 5V Note 1 M16C 26B of the M16C 26A Group 24MHz M16C 28B of the M16C 28 Group 24MHz MCU resources to be used Interface with host machine Table 2 2 shows the operating environment of the E8a emulator Table 2 2 Operating Environment Active 10 C to 35 C Inactive 10 C to 50 C Active 35 RH to 80 RH no condensation Inactive 35 RH to 80 RH no condensation Active maximum 2 45 m s Temperatures Humidity Vibrations Inactive maximum 4 9 m s Transportat
28. sed P86 or P85 and P16 may be in a Hiz state while the E8a emulator is active Therefore set the pin resistance value so the voltage cannot be at the midpoint potential depending on the voltage dividing of the resistance inside the E8a emulator Figure 5 7 User system connector l M16C Tiny Figure 5 3 Connection of E8a Emulator and Pin P86 REJ10J1638 0400 Rev 4 00 Page 6 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 5 Examples of E8a Connections User system connector 7 4 Figure 5 4 Connection of E8a Emulator and Pins P85 and P16 3 The E8a emulator uses the CNVss pin for MCU control Pull down the E8a emulator and MCU pins and connect the E8a emulator Pulled down at User system 4 7kQ or more connector M16C Tiny Figure 5 5 E8a Emulator and CNVss Pin Connection 4 The RESET pin is used by the E8a emulator Therefore use an open collector output buffer or a CR reset circuit as the reset circuit for the user system The recommended pull up value is 4 7 kQ or more The MCU can be reset by outputting L from the E8a emulator However if the reset IC output is H the user system reset circuit cannot be set to L As such the E8a emulator will not operate normally User system connector RESET M16C Tiny Pulled up at 4 7kQ or more Open collector buffer Figure 5 6 Example of a Reset Circuit Conne
29. semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a R
30. unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products
31. window etc it shows that DMA is disabled DMAO Control Register DMOCON DMA enable bit bit 3 0 DMA disabled DMAI Control Register DM1CON DMA enable bit bit 3 0 DMA disabled Interrupt Control Register Interrupt request bit bit 3 0 Interrupt not requested 1 Do not enable DMA transfer from the memory window etc but enable it in the user program Note 1 When restarting the user program though the E8a emulator sets back the value of a DMA enable bit to the previous value that was set before the program stops the interrupt request bit remains 0 REJ10J1638 0400 Rev 4 00 Page 17 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 7 Debugger Setting Section 7 Debugger Setting 1 Emulator Setting dialog box The Emulator Setting dialog box is provided for setting items that need to be set when the debugger is launched The contents set from this dialog box excluding Power Supply group box items also become valid the next time the debugger is launched When launching the debugger for the first time after creating a new project work space the Emulator Setting dialog box is displayed with the Wizard Emulator Setting MOU Setting Communication Baud Rate Emulator mode Firmware Location MOU Group m 60 26 Group Device M30262F8 z Mode Erase Flash and Connect C Keep Flash and Connect Program Flash Debugging of CPU rewrite mode iia BE te the user program after ending t
32. y be disrupted Flash memory rewrite occurs When downloading the user program After setting PC breaks in the Flash memory and executing the user program After canceling PC breaks in the Flash memory and executing the user program After rewriting the value of the Flash memory in the memory window and executing the user program Notes on the E8a emulator power supply When writing a program with the E8a emulator for mass production processes the program requires reliability so do not use the E8a emulator power supply function Supply power separately to the user system according to the allowable voltage for MCU writing Voltage supplied from the E8a emulator depends on the quality of the USB power supply of the PC and as such precision is not guaranteed Low power consumption mode When debugging in low power consumption mode do not operate windows until the program stops at the breakpoint by setting the breakpoint at the line of the program which will be executed after the low power consumption mode is cancelled REJ10J1638 0400 Rev 4 00 Page 16 of 23 Apr 30 2010 ztENESAS E8a Emulator Section 6 Notes on Using the E8a Emulator 25 DMAC during a user program halt When the user program is halted or when the memory is referred to or modified during user program execution DMA transfer is disabled In such cases the E8a emulator sets the registers below as following Therefore if you refer to the registers below in the memory

Download Pdf Manuals

image

Related Search

Related Contents

取扱説明書等 - アイ・オー・データ機器  商品パンフを見る - b-zone  GEBRAUCHSANWEISUNG Im-Ohr-hörsysteme USER MANUAl In  取扱説明書 - ご利用の条件|取扱説明書|ケンウッド  Speciation Tool User`s Guide  EtherCAT User`s Manual  AUGERMATIC  OIL ON WATER ALARM, TYPE OF  iSpy: Automatic Reconstruction of Typed Input from Compromising  Kingston Technology HyperX KHX6400D2B1K2/2G memory module  

Copyright © All rights reserved.
Failed to retrieve file