Home

M16C R8C FoUSB/UART Debugger User Manual

image

Contents

1.
2. m semet e Og x SIEGEN Cork Sail EEE Line Sow P S Source OUUU O pragma entry start sample m oid start void i initsct c 32 extern void initsct void B intprg c 33 extern void init void resetpra c 34 oid exit void a5 SiW Breakpoints h void 36 Sin fpracma section program interrupt 38 39 oid start void 40 080C8 gt resetpra h 41 080C8 _isp_ istack_top set interrupt stack pointer E sfr r827 h 42 080CC prer 0x02 change protect mode register B typedefine h 43 080DO pmo 0x00 set processor mode register 44 080D3 prer 0x00 change protect mode register 45 080D6 _flg F value set flag register 46 Hif STACKSIZE 0 47 080D Sp amp stack top set user stack pointer 48 Hendif 49 O80DE sb 0x400 400H fixation Do not change 50 O80E2 intbh 0x00 set variable vector s address r b um resetprg c Communication ERROR Can t accept data 16014 Disconnected Connected Disconnected Connected gt Build A Debug A Find in Files 1 Find in Files 2 Macro Test version Control Ready FEZ E3 E E3 Defaulti desktop Read write 40 72 1 INS NUM 19 3 Memory Map When Using the R8C UART Debugger Figure 4 shows a memory map 32 KB 00000h 002FFh LU User RAM T FFh Monitor RAM Oe OFFDCh yd
3. o m60 8 2 m Detuosetinos OD ELE Bm SES ME eT REI re sample amp sample El Go 3 C source file EI Reset Go mes goers ee EXE URURCU SE E Free Go WURCKCKCHCKCHCKCh KC ACA ACA Ch KC AC ACA ACA ChCKCh A Ch KC ACA RR A Ch A Ch A Ch Ch A Ch A 8 A 8 A 8 f E tf Elf Go To Cursor sample c I Set PC To Cursor Frl May 30 2008 au RIPTION main program file TT GROUP A c Display PC Ctrl Shift sample x30 E file is generated by Renesas Project Generator Ver 4 12 E ample x3 T3 step In Fli g y 3 Dependencies cstartdef h P step Over F10 URCKCKCHCKCHCK CH MCA ACA CHCKCHCKCh KC ACA ACA ChCKCh RR A Ch Ch A Ch A KARAS initscth P step Out Shift F11 meman me in void str 1827 b typedefine h i Step Mode STOR Halt Program Initialize a Connect m Disconnect Save Memory p a Verify Memory Download Modules gt 01 OT AL AT 21 91 7 Unload Modules Communication ERROR Can t accept data 16014 Disconnected Connected Disconnected Connected F Build A Debug A Find in Files 1 Find in Files 2 Macro Test version Control Reset CPU FEZ E3 E E3 Defaulti desktop Read write 4 16 20 INS NUM 18 w The cursor moves to the top of the user program and debugging starts e sample High performance Embedded Workshop resetprg c lt gt File Edit view Project Build Debug Setup Tools Test Window Help 8 x Ose 8 EP omena
4. May 30 2008 B initsct c 5 DESCRIPTION main program file i intprg c 6 CPU GROUP 27 Y resetpra c E ty ERES 8 This file is generated by Renesas Project Generator Ver 4 12 a g Deos 9 cstartdef h 10 AC RR RR CR RR RR RR initsct h resetpra h 12 oid main void sfr_1827 h 13 E typedefine h 15 UT Phase M16C Load Module Converter finished Build Finished O Errors O Warnings Ed Build Debug A Find in Files 1 Find in Files 2 Macro Test version Control Ready FEZ F2 EZ EF Defaulti desktop Read write 14 16 1 INS NUM 15 q The Init screen is displayed Select the Serial radio button and press Refer ence Init M16C RBC FoUSB UART MCU Debugging Information Run Mode Script MCU Refer C LAM C LPT f USB Port COM Baud Rate 35400 Monitor Debug Start up for monitor debug Cancel Help Do not show this dialog box again r Select R8C Tiny Series Select MCU File Look ir C3 McuFiles eE 9M16C 20 Group jM16C 26 Group EXER IS JM16C 6N Group jM18C 254 Group M16C 65 Group jM18C 28 Group 9M16C 6 Group M16C 23 Group CjMIBC 10 Series 9 M16C 624 Group _JM16C 24 Group M16C 62P Group File name meu Files of type MCU Files meu L ancel 16 S Select one of the following MCU files depending on the
5. Previous workspaces are displayed in the pull down menu e Browse to another project workspace Select this when using an existing workspace and there are no previous workspaces listed in the pull down menu After selecting an existing workspace and pressing OK the screen under letter t Page 17 is displayed b Select Create a new project workspace Press OK Welcome Cancel Administration c The Project Generator starts When a toolchain is preinstalled the following screen is displayed New Project Workspace Projects Workspace Mame Project Types E Application eme SSSOSOSCS S C source startup Application Project Mame Empty Application e hie rien sample icd Library Director Fe Debugger only M16C FoLISE CAworkSpace sample 0 ens Fe Debugger only M16C Simulat CPU family ME Tool chain Renesas MTEC Standard Properties e Workspace Name Enter a name to create a new workspace sample has been input as an example e Project Name Enter a project name If the project name is to be the same as the workspace name it is not necessary to input anything in the Project Name field e CPU family Select the applicable CPU family In this case M16C has been selected for the R8C Family e Toolchain When using a toolchain select the applicable toolchain name When not using a toolchain select None e Project
6. Stop Tool Execution Ctrl Break Depender cstart Include Exclude Build E initsct 5 resetp Build Phases sfr r8 i typed Build Configurations Linkage Order Generate Makefile Z ol or al at 21 2t 7 e Lh FX E7 E3 E Default desktop eo BR RR FIORI l Renesas M16C Standard Toolchain is displayed Click on the Link tab and select Section Order from the Category pull down menu Make sure the section start address does not overlap with the monitor program occupied area shown in Table 1 If there is any overlap edit the address value Renesas M16C Standard Toolchain Configuration C Assembly Link Librarian Lmc RTOS ces Category Section Order bi 0x00000400 C source file Hee SE Assembly source file data 50 bss Sl data ME bss ME data NO bss ML stack istack heap ME data SEI Options Link L r amp clib G MS 0 ICONFIBGBBIR ISE IPROJECT MAME 30 ORDER data SE 0400 bas SE data 50 bss SOU data NE bss NE dat a NO bes NO stack stack heap NE rom NE 08000 rorn_ MO data SElidata SOldata MEl data MO switch table program e 13 m Double click the source program to launch the program editor e sample High performance Embedded Workshop File Edit view Project Build Debug Setup Tools Test Window Help D S u g 6 rejo E G sample
7. Come Therefore it is possible to detect when the user program is stopped by a break or other command Select this mode when performing a normal debug e Free run mode In free run mode execution status of the user program will not be monitored when executing Go and Come Although real time operation of the user program is secure it is not possible to detect if the user program is stopped by a break or other command Therefore even when the user program stops the R8C UART debugger does not stop executing Go and Come Press STOP to stop the R8C UART debugger Note In free run mode use the R8C UART debugger while the RAM window C watch window and ASM window are closed 2 5 9 Executing anomalistic steps e Software interrupt instruction The step execution cannot be performed continuously to the instruction internal process of the instructions undefined instruction overflow BRK instruction and INT instruction which generate the software interrupts Example INT instruction NOP NOP INT 3 INT instruction is skipped over NOP when performing step execution JMP MAIN INT 3 NOP Address at which program execution should stop NOP NOP REIT e INT instruction To debug the program using the INT instruction set the software break for the INT instruction process and use the Go command Example NOP INT 3 Executed by the Go NOP command JMP MAIN INT 3 4 NOP NOP REIT Break 28 5 10 Lim
8. HER i to O3h Register 2 Oscillation Stop Detection Register H I H Set this register to 00h En l Whiting to the D flag is ignored Do not sc DA ISP Interrupt Stack Pointer Resetto 057Fh e not used by the monitor Partial UART 1 TransmtReceve Mode i 15h Register UART 1 Bit Rate Register UART 1 TransmifReceve Control Reset to Register O Do not change this register UART 1 TransmtRecewe Control Mm Register 1 Port Mode Register Pin Select Register 1 UART 1 Transmit Buffer Register UART 1 Receive Buffer Register Sas 2 2 Do not write data to this register Do not read this register 5 6 Limitations on stop mode and wait mode When using stop mode or wait mode start the R8C UART debugger in free run mode and close the RAM window C watch window and ASM window in advance Also do not operate the R8C UART debugger until the program stops at the break point by setting the break point after exiting stop mode or wait mode 26 5 7 Watchdog timer The watchdog timer is refreshed while the monitor program is running When using the watchdog timer while running the user program note that by referring to or changing memory content the monitor program intervenes and the watchdog timer is refreshed 5 8 Real time operation of user program e Sampling run mode also known as sampling mode In sampling mode execution status of the user program will be regularly monitored when executing Go and
9. The monitor program may not run with frequencies not listed below so use an oscillator that has this frequency range 1 MHz minimum to 20 MHz maximum Table 3 lists each frequency and communication available speed However note that operation may not be possible when dividing the main clock and using it with less than 1 MHz even in the range of the above frequency Table 3 Communication Available Speed of Each Frequency Frequency Communication Speed bps O 4800 9600 19200 88400 O Communication available NO cS je NO N je X X Communication not available Note Communication may not be possible depending on temperature and voltage If communication is not possible lower the communication speed 25 5 5 Limitations of SFR operations Table 4 lists the limitations of register operations Changing registers that are disabled will cause the monitor program to malfunction Table 4 Limitations on SFR Operation Register ds B Limitation Processor Mode Register O Resetto00h Single chip mode only Processor Mode Register 1 to 00h Es RE System Clock Control Register O to08h Setthe CMOS bitto 0 5 Set bits CM13 and CM15t01 Partial System Clock Control Register 1 Resetto 28h Set the C14 bitto 0 High Speed On Chip Oscilator Control to08h Setthe FRAOObitto 1 Register O High Speed On Chip Oscilator Control Dand this register Register 1 MID TV FER 3 lt D i i
10. Types Window Select a project type The project type which supports the C start up has been selected as an example d Setthe toolchain version Mew Project 1 5 Select Target CPU Toolchain version HIEI T aalchain version 5 44 00 Which CPU da vau want to use for this project CPU Seres IF there is na CPU group to be selected select the CPU Group that a similar to hardware specification or select Other Mex gt Finish Cancel Select the Toolchain Version CPU Series CPU Group and then press Next In this example R8C 27 Group is selected e Select the MCU ROM size and other related settings New Project 2 5 Setting the Contents of Files to be Generated HIEI What kind of initialization routine would you like ta create HUM ek Use Standard 10 Library UARTI Use Heap Memory Heap Size 0 30 Generate main Function C source file Use OnChip Debugging Emulator Firmware Address T WiorkAaM Address Back Neto Finish Cancel Select the MCU ROM size and heap size Select None for the on chip debugging emulator And press Next f Set the stack New Project 3 5 Setting the Stack Area What are the stack settings User Stack Pointer Stack Size ox80 Interrupt Stack Pointer Stack Size 0x80 Back Net Finish Cancel Set the Stack Size and press Next g
11. a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited e Please contact Renesas Technology Corporation or Renesas Solutions Corporation for further details on these materials or the products contained therein EE S Table of Contents Connecting the Target Board to the User System rara 4 Preparing the M16C R8C FoUSB UART Debugger erra 6 Memory Map When Using the R8C UART Debugger een 20 Monitor Program Occupied Ale asninn sci uem seul uei t beum EE cte eate teu aa eUn 21 Notes on Using the R8C UART Debugger eee nnne 21 5 1 Changing communication speed and restarting the R8C UART debugger after the R8C UART debugger IS dOflG iata eon Oeo Piae eaten Dodo a e eene oiu 21 SEES SI QeceiaiiBbeoo em i 21 ds User program download area ssa ec i reete tuit tenga ta aee dec tes EU stis 22 5 4 Frequency characteristics us vadias dra Gia ooa cav ado a uid ai re an a 25 5 5 Limitations ot SER OODEFAUODS iu aeree a tetas ualet aN 26 5 6 Limitations on stop mode and wait mode ssssseeseseeeeeenenne 26 dd Watchdog Imera o mmm 27 5 8 Real time operation of user program ccccccssececcceseeecseeseeccese
12. sample E Go FS 3 C source file EI Reset Go sum EEE E PPP E RR RR RR RR RR RR RR 3 Free Go a initsct c Elf Go To Cursor sample c tf intpra c I Set PC To Cursor Frfi May 30 2008 3 resetprg c hs RIPTION main program file wf sample c psit GROUP 1 27 wardoad modu c Display PC Ctrl Shift f i E file is generated by Renesas Project Generator Ver 4 12 sample 30 3 step In EH g y j i cstartdef h P step Over F10 RHRAAKAAAAAAAAAAAAAAAAA AREA RATER EAA ATER AAA AREA AREA AAR EEEE EEE E initscth P step Out Shift F11 sfr 1627 b E typedefine h Step Mode STOP Halt Program Initialize ma Connect T Disconnect Save Memory p a Verify Memory Download Modules gt CiyworkSpacelsampleisamplejDebugisample x30 00000000 E Ol OT AI AT 21 21 cg Unload Modules All Download Modules Communication ERROR Can t accept data 16014 Disconnected Connected Disconnected Connected gt Build A Debug A Find in Files 1 Find in Files 2 Macro Test Version Control FEZ E2 E E3 Defaulti desktop Read write 4 16 20 INS INUM v To reset the user program select Reset CPU under the Debug menu zi File Edit view Project Build er Setup Tools Test Window Help EM X Dg v DebugSessons JA RA IE amp ES t Debug SessianM16C REC Fou v At 4
13. ODE Vec 9 0 22uF 9 em 5k P4 5 RxD1 d P3_7 TxD1 Voc D SUB9 Q CONNECTOR 5k S77 8 o JUMPER 101 RS 232C j Straight PLQP0032GB A IBM PC AT Vcc 20MHz e xiN P4 6 5k 4 XOUTIP4 7 3 RESET Push 0 1uF SW HH Figure 3 Circuit Using the RS 232C Cable R8C 26 27 Groups Preparing the M16C R8C FoUSB UART Debugger The M16C R8C FoUSB UART debugger hereinafter R8C UART debugger is used for debugging by connecting an RS 232 cable between the host computer and the target board A monitor program comes bundled and is automatically installed with the R8C UART debugger software For the R8C Family the monitor program is automatically programmed when starting the R8C UART debugger The monitor program does not need to be preprogrammed with an M16C FlashStarter or other flash programmer a To start the High performance Embedded Workshop HEW go to Start Programs Renesas High performance Embedded Workshop and High performance Embedded Workshop You will see the following Welcome dialog box Welcome P C Create a new project workspace DA Cancel Cc w ark5 pace sample ample hws Administration e t Browse to another project workspace e Create a new project work space Select this when creating a new workspace e Open a recent project workspace Select this when using an existing workspace
14. REJ10J1724 0100 Everywhere you imagine a 2 ENESAS M16C R8C FoUSB UART Debugger User Manual Renesas Microcomputer Development Environment System R8C Family R8C 2x Series Notes on Connecting R8C 26 R8C 27 R8C 28 R8C 29 Rev 1 00 Renesas Technology Issued July 15 2008 WWW renesas com Active X Microsoft MS DOS Visual Basic Visual C Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries IBM and AT are registered trademarks of International Business Machines Corporation Intel and Pentium are registered trademarks of Intel Corporation Adobe and Acrobat are registered trademarks of Adobe Systems Incorporated All other brand and product names are trademarks registered trademarks or service marks of their respective holders Keep safety first in your circuit designs e Renesas Technology Corporation and Renesas Solutions Corporation put the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as i placement of substitutive auxiliary circuits li use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials Th
15. Undefined 009FFh instruction 08000h Address Match Flash Memory Monitor Program Je 32 KB 08A00h 7 User Program M Watchdog Timer 4 Area Single Step Vector Area OFFFFh Note o are monitor program occupied areas Figure 4 Memory Map 32 KB 20 4 Monitor Program Occupied Area Table 1 Monitor Program Occupied Area ROM RAM Occupied Area for Monitor Program KB B Vector FFE8h to FFEBh FFECh to FFEFh s FFF4h to FFF7h KB 1 KB FFE8h to FFEBh FFECh to FFEFh E FFF4h to FFF7h RAM 8FFh to 9FFh 24 KB 1 5 KB Vector FFE8h to FFEBh FFECh to FFEFh FFF4h to FFF7h RAM 8FFh to 9FFh Flash memory 8000h to 89FFh Vector FFE8h to FFEBh FFECh to FFEFh FFF4h to FFF7h 32 KB 1 5 KB 5 Notes on Using the R8C UART Debugger 5 1 Changing communication speed and restarting the R8C UART debugger after the R8C UART debugger is done The target MCU holds the baud rate value after the R8C UART debugger is done Therefore when changing communication speed and restarting the R8C UART debugger a communication error occurs The R8C UART debugger can be started when using the previous communication speed When changing communication speed turn off the target power and turn on the power again 5 2 User program ID code Set the ID code of the user program to all FFh when using the R8C UART debugger Table 2 ID Code Storing Address Address ID No Vector Table OFFE7h OFFEd
16. When the toolchain setting is complete the following screen is displayed Mew Project 4 5 Setting the Target System for Debugging HIEI MIBE ASC FoLISBALIART IMTBC REL Simulator External Debugger MI6C Family EDU 4 10 Release 1 Target type RBC Tinj Back Net Finish Cancel Select M16C R8C FoUSB UART and press Next If necessary select other targets h Set the configuration file name Configurations are the build option settings e g output of debug information or optimization having their own names The term configuration can also be referred to as build configuration Mew Project 5 6 Setting the Debugger Options Target name M1B5C R8C FaLlSB LIART Configuration name Debug M15C R8C FoUusB LI amp RT Detail options Setting Back Nets Finish Cancel 10 i Verify the file names to be generated Mew Project 6 6 Changing the File Mames to be Created HIEI The following source files will be generated Ext Description tupedefine define scalar types resetprq Initialize for C language resetprq include some headder Intec Initialize each sections mitact define the macro for in fector define the ted vector intprg define the top address sfr roe define the sfr register str oe define the sfr register heap define the size of hear sample main program file cstartdel define the size of star 11 j The figure below displays the files generated by t
17. accuracies or errors Please also pay attention to information published by Renesas Technology Corporation and Renesas Solutions Corporation by various means including the Renesas home page http www renesas com e When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage liability or other loss resulting from the information contained herein e Renesas Technology semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation Renesas Solutions Corporation or an authorized Renesas Technology product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use e The prior written approval of Renesas Technology Corporation and Renesas Solutions Corporation is necessary to reprint or reproduce in whole or in part these materials e f these products or technologies are subject to the Japanese export control restrictions they must be exported under
18. autSession PARE E ix QS sample MEEEEESkR PESO sample 1 URCRCR CK CHOR R E CR RR E E hok hok Ch oW Ch E E Oh A 8 E C source file 2 ty fvector c 3 FILE sample c 4 DATE Fri May 30 2008 2 initsct c 5 DESCRIPTION main program file i intprg c 6 CPU GROUP 27 Y resetpra c T sample c 8 This file is generated by Renesas Project Generator Ver 4 12 EG ispendendes 9 cstartdef h 10 AR RR RR RR RC RR RR RC RR RR initscth 11 E resetprg h 12 oid main void sfr 1827 h 13 8 typedefine h 14 TS H Phase M16C Load Module Converter finished Build Finished O Errors O Warnings lt Build Debug A Find in Files 1 Find inFiles 2 A Macro Test Version Control Ready FEZ E2 E E3 Defaulti desktop Read write 14 16 1 INS NUM p Connect with the target A host computer can be connected with the target easily by switching to the session file in which the setting to use the R8C UART debugger is pre registered e sample High performance Embedded Workshop sample c md gt File Edit View Project Build Debug Setup Tools Test Window Help x De ga G rejea 6 ale T a SessionM16C RBC FoUSB sample sample al AR RC ERR RC RR ERC C source file 2 3 fvector c 3 FILE sample c E heap c 4 DATE Fri
19. d Renesas M16C Standard Toolchain is displayed Select Defines from the Show Entries For pull down menu and then press Add Renesas M16C Standard Toolchain Configuration ERA All Loaded Projects sample 3 C source file Assembly source file EMO Options C c finfo dir CONFIGDIR R8C e Set defined macro is displayed Enter _UART_ in the Macro field and press OK 23 Set defined macro Macro UART Replacement ca f To set the link option in the Renesas M16C Standard Toolchain window click on the Link tab and select Section Order from the Category pull down menu Add FirmArea NE to the start address of the monitor program occupied area shown in Table 1 Renesas M16C Standard Toolchain Configuration C Category Sector Order ey All Loaded Projects eae TE E Ox00000400 C source file Assembly source file data SEI Options Link L r amp clib G MS 0 CONFIGDIRINSE IPROJECT NAME x30 ORDER data SE U400 bas SE data SO bss SO data NE bss NE dat a NO bss NO stack stack heap NE rom NE U68000 rom NO data SEl data SOldata MEl data NOL suntoh table prograrm When the user program overlaps with the monitor program occupied area due to the above settings an error is output 24 5 4 Frequency characteristics The monitor program operates in the range of the main clock Xin frequency shown below
20. eeceuseecseuseeessaseeessaeees 27 5 9 Executing anomaliste Steps c cera drip reete atate eed Ga Nava Marie cu roe re ate a ad 28 95 10 Liranations on peripheral TUDGCHOFIS cesis ra rui remind 2x tasa v ca modis B vas dada pa aito 29 5 11 Limitations on the flag reQister ccccccssssceccesseeeceseeeceeseeceeseeecsaueeecseuseeessaseeessaaeees 29 5 12 Operation on peripheral I O during a break eee 29 1 Connecting the Target Board to the User System Host External Computer Power Supply F a 25059 25090 29009 00090 050 050 0 a 93990909 a 2080807 8 p o Target Board Figure 1 Connecting the Target Board to the User System LHA 0812 472K Vcc Q 0 1uF MAX3221EAE 0 22uF DIODE 10 5 Vss AVss Vcc AVcc 7 22ur 22w 22uF ANV 10 E Vec 5V DIODE Vcc O E T 9 DIODE CON1 T 5k P4 5 RxD1 4 E 0 1uF 2 j P3_7 TxD1 L E Vcc D SUB9 O CONNECTOR EE 8 77 o JUMPER 101 RS 232C Straight na IBM PC AT Vcc 20MHz A e XIN P4_6 5k 4 XOUTIP4 7 0 1uF HH Push SW Figure 2 Circuit Using the RS 232C Cable R8C 28 29 Groups Q LHA 0812 472K VE 0 1uF MAX3221EAE Nee 2 022 77 VE DIODE 40 5 Vss AVss 7 7 v 5 22F 22wF ZAUR ANV 8 RT 10 TOT 9 ewm mja FORCEON en Vcc 5V INV oe DI
21. ese materials are intended as a reference to assist our customers in the selection of the Renesas Technology product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas Technology Corporation Renesas Solutions Corporation or a third party e Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials e All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corporation and Renesas Solutions Corporation without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corporation Renesas Solutions Corporation or an authorized Renesas Technology product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage liability or other loss rising from these in
22. group R8C 26 Group R5F21266UART MCU R8C 27 Group R5F21276UART MCU R8C 28 Group R5F21284UART MCU R8C 29 Group R5F21294UART MCU Select MCU File Look in 3 R8C Tiny Series hd da t R5F21144 MCU RSF21174 MCU amp RSF21258UART MCU RsF21144UART MCU 9 RsF21174UART MCU REF21266UART MCU R5F21154 MCU R RSFZ1184UART MCU AAGE RsF21154UART MCU R RSF21194UART MCU R5F21285UART MCU E ESF211864 MCLI EY RSFZIZS LART MCLI EY RoF21296U4R7 MCU E ESFZ1184LIART MCLI E RSFZ12586LlART MCLI s t Select the appropriate Port and Baud Rate from the pull down menus Press OK and a monitor program is downloaded Init M16C RBC FoUSB UART MCU RS5FZTZ7BLIART MELI EO f Senal C Port COM Baud Hate 30400 Monitor Debug Start up for monitor debug OF Cancel Help Do not show this dialog box again 17 u To download a user program select Download File X30 file in the Download Modules submenu under the Debug menu e sample High performance Embedded Workshop sample c lt gt File Edit View Project Build PSSE Setup Tools Test Window Help D gei cj amp Debug sessions ly amp a IE B B Debug x SessionM16C REC Fou v At d Fr g g v Debuosetnos OD IEEE Bm SIE xl f Reset cru 45 sample ES
23. h BRK instruction OFFEFh OFFECh Single step OFFE3h OFFFOh ID5 Watchdog timer oscillation stop detection voltage monitor 2 OFFF7h OFFF4h IDG Reserved o Z o OFFFBh OFFF8h OFFFFh OFFFCh See Note Note Refer to the hardware manual for the value set to address OFFFFh 21 5 3 User program download area As shown in Figure 4 a monitor program uses a part of RAM or flash memory when using the R8C UART debugger The R8C UART debugger does not download a user program only in the area which overlaps with a monitor program Note that the R8C UART debugger does not output an error at this time When an error is output set the following a Make firm c and enter the following include typedefine h ifdef_ UART pragma section bss FirmArea far UBYTE _firmarea OxA00 endif b Add the file created above to the project Under the Project menu select Add Files When the file selection screen is displayed select firm c cB sample High performance Embedded Workshop fiem c gt File Edit View Digam Build Debug Setup Tools Test Window Help 0 x DgG ug Set Current Project JA A ie Debug SessionM16C_R8C_Fol v a Insert Project typedefine h E Create Project Type o zd is UART Add Files ection bss Firmirea Remove Files E firmarea 0xA0OO File Extensions 7 Components Dependencies c
24. he High performance Embedded Workshop based on the above settings Pressing OK launches High performance Embedded Workshop Summary Project Summary PROJECT GENERATOR PROJECT MAME sample PROJECT DIRECTORY CA MorkS pace ssample sample CPU SERIES HSL Tiny CPU GROUP ee TOOLCHAIN MAME Renesas M160 Standard Toolch TOOLCHAIN VERSION 5 44 00 GENERATION FILES LAWork Space sample sample tupedetine h define scalar types L wW arkSpace ssample ssample resetprg c Initialize for C language wW arkSpace ssample sample resetprg h Include same headder files Sw arkSpace ssample ssample iniEsct c Initialize each sections CAWWork Space sample sample initsct h define the macro for initialization of sections Click OF to generate the project or Cancel to abort iw Generate Readme tet as a summary File in the project directory Cancel 12 k Check the section address Under the Build menu select Renesas M16C Standard Toolchain 33 sample High performance Embedded Workshop PEIES File Edit view Project MEME Debug Setup Tools Test Window Help Dg k ES l Renesas MI6C Standard Tookhain yj oA K a e if Debug DetautSession A EO de Build File ll sample 4 Build al x C source MS E fvectd Build Multiple E heap Clean Current Project 2 initsct 3 Clean All Projects A i intprg Update All Dependencies 3 resetp B B sampl
25. itations on peripheral functions UART1 is used for communication between the monitor program and the host computer Do not use UART1 in the user program Do not connect the pins below to other pins as they are used for communication with the host computer e R80 26 27 28 and 29 Groups TxD1 2 pin RxD1 9 pin 5 11 Limitations on the flag register When operating the flag register in a user program execute the FSET instruction and FCLR instruction not to change the debug flag D flag 5 12 Operation on peripheral I O during a break Although an interrupt cannot be accepted during a break peripheral I O continues operating For example when stopping a user program by a break during operating a timer the timer continues counting but the timer interrupt cannot be accepted 29 REVISION HISTORY M16C R8C FoUSB UART Debugger Description Rev Date Page Summary M o uisa medem SSCS PDT flo nm M16C R8C FoUSB ART Debugger User Manual Notes on Connecting R8C 26 R8C 27 R8C 28 R8C 29 Publication Date Rev 1 00 Jul 15 2008 Sales Strategic Planning Div Published by Renesas Technology Corp Edited by Renesas Solutions Corp O 2008 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan M16C R8C FoUSB UART Debugger User Manual Notes on Connecting R8C 26 R8C 27 R8C 28 R8C 29 24 NC S AS Renesas Technology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
26. sample C source file fvector c E heap c i initsct c i intprg c E resetprg c Dependencies cstartdef h Z initsct h 5 resetprg h str 1827 h 5 typedefine h Ed E4 3 E Default desktop x RM n When the program is complete under the Build menu select Build or Build All to build the program e sample High performance Embedded Workshop mef File Edit view Project Wf Debug Setup Tools Test Window Help D c id amp Renesas M16C Standard Toolchain amp amp Build File Ctr F7 sample Build Em sample ess url All amp ES Csouce EB fvecte Build Multiple Y heap Clean Current Project initsct i Clean All Projects E intprg reset g Stop Tool Execution Ctrl Break H E Depender cstart Include Exclude Build initsct E reset Build Phases sfr r8 B typed Build Configurations B E Update All Dependencies Linkage Order Generate Makefile Version Control Build the active project and all dependent projects regardless of whether the project files are c Ft E2 3 ES Defaulti desktop INS NUM 14 o The result of the build is displayed e sample High performance Embedded Workshop sample c md gt File Edit View Project Build Debug Setup Tools Test Window Help Dc ug 6 Bam 8 a gt My AR IE EX EJ Debug x Def
27. startdef h initsct h E resetprg h E sfr 1827 h IE typedefine h I muy 3 o a 3 o Phase M16C Load Module Converter finished Build Finished O Errors O Warnings LJ gt Build Debug Find in Files 1 Find in Files 2 Macro A Test version Control Add File s to project FEZ EZ E3 ER Defaultt desktop Read write 717 7 INS NUM 22 c To add the compile option select Renesas M16C Standard Toolchain under the Build menu Ea sample High performance Embedded Workshop fiem c Deugsa M E e 10 8 2 amp BsuldFie Ctrl F ES Build F7 bii Build All cQ sample Aca UE sample Build Multiple C source file Clean Current Project ii fiem c Clean All Projects L fvector c E heap c Update All Dependencies E initsct c x Stop Tool Execution Ctri Breal L intpra c t resetpra c Include Exclude Build LE sample c E Download mo Build Phases cstartdef Build Configurations E initscth E resetprg H Linkage Order sfr 1827 h Generate Makefile typedefine fiem c ot or al at 21 2t 7 e M Phase M16C Load Module Converter finished Build Finished O Errors O Warnings I mam gt Build Debug A Find in Files 1 Find in Files 2 Macro Test version Control 7 INS NUM FEZ E3 EZ EF Defaulti desktop Read write 7I

Download Pdf Manuals

image

Related Search

Related Contents

Installation de la carte SIM - D-Link  consignes de sécurité    LS-10 - Manual Avançado  DIWINE SR - sofralab  Bedienungsanleitung    Gigaset S790 - User Manual  Samsung EK-GC110 manual do usuário  1 - Factory Pro  

Copyright © All rights reserved.
Failed to retrieve file