Home

W7100A Debugger Guide v1.1

image

Contents

1. Assembly xl Search ei er eC_STARTUP LJMP sTaRTU Name Vale Type Address 020126 LJMP LOOOO O2015E LJMP LOOOO 131 ANL OFFH 07FH S3FF F LOOO1 ANL OFFh 7Fh 134 BOY RO ID Y Fig 5 3 Complete opening the project Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 15 apin 4966nqeq OOLZM VOOLZM WiZnet Note When the user open the project and have the error message like shown below the user must delete the xxx SRC file in project directory and check both the Generate Assembler SRC File and Assemble SRC File options to avoid error on the W7100A W7100 debugger For a more detailed solution please refer to section4 KEIL Project WOO Debugger GC error uVision Project Workspace gt FARMEMCPY C file gt Click right mouse button Select Option for File FARMEMCPY C gt Check Generate Assembler SAC file and Assemble SAC file in Properties tab Fig 5 4 Open error message Reload project The Reload command is used to reload a project When the loaded project is changed click the reload toolbar button to reload the project It can also be done by clicking Project gt Reload or pushing the short key F4 Close project The Close project command is used to close a project Select Project gt Close or push the short key Ctrl Q Note While using the W7100A W7100 debugger the user must use the stop
2. Ex Code memory gt C 0x1000 5 Internal memory D 0x30 2 External memory gt E 0x000300 4 Local Variable D Ox 000008 UCHAR BINAR Bi DU UU CHA 192 166 1 86 ARRAY ee 152168 1 ARRAY DECIMAL D d Zb Zb 0 ARRAY HEX al U6 2 70 1854 ARRAY ii thsize GGG ARRAY SOx O0007C resize Ct eet ete ARRAY oO OOO084 Data Memo a Global Yari g Symbol Code Memo Si External M de Local Varia Ey Search Fig 6 1 Display format User can select the display format by clicking the mouse right button on the search local and global window such as binary octal decimal and hexadecimal Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 25 apin 4966nqeq OOLZM VOOLZM WiZnet 6 2 Local Variable Window The local variable window shows the value of the local variable in the PC located function Local Variable x Search MM D 0x000008 D 0x000009 00000008 Ox 000064 Ox 00006E x 0x 000072 0000076 Ox 00007C Ox 000084 Fig 6 2 Local variable window The local variable window has almost the same interface as the search window But it is not allowed to register a new variable or a memory address 6 3 Global Variable Window The global variable window shows all the global variables in the project The global variable window has the same interface as the local variable window Global Yariable x Global Variable Name Value E Type i Address data bu
3. Global Variable Window on the Window Menu Activate Symbol window Click the Klor select the Global Variable Window on the Window Menu Activate Register window Click the Kr or select the Register Window on the Window Menu 6 1 Search Window The search window shows the global variable local variable or the memory value depending on which ones the user registered The global local variable windows also show the values of variables But usually users want to see one or two variable values and sometimes want to see both global and local variables simultaneously In this case just register the variables on the search window Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 24 p n5 4966nqeq OOLZM VOOLZM WiZnet Search VM D 0x00 4 249 42 14 255 ARRAY C 0x00 4 2 18 105 120 ARRAY 0x6 192 168 1 85 ARRAY s 4 U_CHAR 00000008 len 0 INT D 0x000009 eee ee Fig 5 14 Search windows To register the global local variables write down the register name on the name field of the search window On the search window user can not only confirm the variable but also can modify its value To modify the value of the variable click the value field on the search window and write down the value To see the memory value on the search window write in the form memory type address size The memory types are C D and X code memory internal data memory and external data memory
4. command in order to close the debugger 5 2 Initialize the W7100A W7100 Debugger This section is for initialization of the debugger and iMCU7100EVB WTOO Debugger sTSATUP 451 ga gga TTi ABS steaeabeaeae Bop yaua ZEEE Fig 5 5 Initialize menu Debugger and board reset The Debugger and board reset command is used to reset the debugger and board simultaneously If breakpoints were set all initialized breakpoints will be removed To reset click the button on the toolbar or select Tool menu Init Debugger and Board reset menu Then the Debugger and board will reset Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 16 p n5 4966nqeq 00LZM VOOLZM WiZnet Board reset only The Board reset command only is used to reset the board only If breakpoints were set they will be maintained To reset the board click the button of the toolbar or select the Debug menu gt Board reset It can also be done by short key F2 Image load The Image load command Is used to load an image Write the HEX image for debugging to the Flash memory Click the button or select Debug menu gt Image Load menu to execute Image Load It can also be done by short key F3 If the image writing and verifying is successful Write OK message will show Note If there is a mismatch between the board image file and present HEX file the error message is shown when execute the Debug
5. el Code ha Fig 7 6 Flash memory window for code memory The basic interface of the flash memory window is the same as other memory windows But it has the flash write button K which writes the whole value of flash memory window to the flash memory of iMCU7100API Also it has a button amp for updating the value of flash memory 7 4 2 Data Memory Domain Start Address nmn End Address Dm w Data memory 2j4 a 2 3 Address Oetf O000 OxtfOoio Oetfoozo0 OxtfO03s0 OetfOoo4ao OeffOoso OmftfO0eo OmtfO070 OmtfO0eo OeftfO09o OetfO0al OxtfOO0bo OxtfO0co OxtfO0do OettO0el Oetfooro O123 sOOOs000 EQe61A4EC DFOOSsCeo BeOSFF A JOEQEE6 2 Baber 40 FFDF5FFF FEB 7296 DGbbOAGL 2 BBF7FD4 GERS 1FFS93BD CoC4Ba sB 9EFDD FF 52934012 DOC 7 D04 4567 02112800 DCDDIDSB FAFED4E2 FFIFDACA JLAFIER FoeCcoge Bac4bsud 00378124 J0E6AEGS B7FBFFDS 3F76FFEF BIEEBR SE BasaAgsad 2EDDAFDF ASFDOO1O O81b2908 2945 O8FCICITA OBF 94160 FAEVFOFF FFEDSeF9 2FDFFBS F6CeICBRC beFEBOD DOBBIOZS JIFESFEE S4FD7 3E0 FUBDFRO 4 IDFSCaAd PDFFD 82 31F700C6 BOB9409F 42C2B800 COEF ZUERRERIO BEDDOBOO SAFFA7 DS SESDBO9A SF IOFD9O SFAIEBSO E6BDDD99 SEET ECFPFCAF4 FFBBEIF 168483BF FDUUDAUU J6EESESS 70270000 AEF 43002 ooogoo000 alSearch HE Local Y Global ga Symbol Dale M E Externa E Flash M E Code NM Fig 7 6 Flash memory window for dat
6. Ver 1 1 19 p n5 4966nqeq OOLZM VOOLZM WizZnet 5 4 Break Point This section will explain how to set clear and find breakpoints The breakpoint can be set only when the debugger is not being used If the user was using the debugger use the Stop command to stop in order to set the breakpoint Project Tool Window Environment Help g E a TT age Az2 geg d H aja o a WorkSpace gt a a x project test_driver Sourc e Files amp W7100 C ei SOCKET C ei SERIAL C amp MAIN C amp FARMEMCPY C 4 STARTUP ASI Assembly Assembly SR UxUU 0x005b 0x005d 0x005f 0x006c 0x006e 0x0070 0x0072 7E 00 7F08 12095D 79D1 7E00 7F08 12095D Gz uint xdata Set break point To set the breakpoint 1 Click the shadowed region eu Ul E LA NO Locate the cursor and click the 7 Short key F9 0 0 0 0 0 0 uint8 xdata ip 4 192 168 1 86 uint8 xdata gw 4 192 168 1 1 uint8 xdata sn 4 255 255 255 0 uint8 xdata txsize MAX SOCK_NUM uint8 xdata rxsize MAX SOCK _NUM Init8051 Initialize 8051 iinchip init setSHAR mac setGAR gw setSUBR sn setSIPR ip sysinit txsize rxsize M D r D r uint8 xdata mac 6 0x00 0x08 0xDC 0x11 0x22 0x86 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 BreakPoint BreakPoint MOV R 0h MOV R7 8h LCALL 10016 rxsize MAX _SOCK_NUM 2 2 2 2 2 2 2 2 MOV RO
7. 64h MOV R4 0h MOV R5 1h MOV R3 0FFh MOV R1 0D1h MOV Re 0h MOV RI 48h LCALL 10016 Fig 5 9 Break point of the debugger Locate the cursor in the Assembly window and click the side of the source window J utton on the Toolbar Locate the cursor and click the Debug Menu gt Set Break Double click the C code line in the source window Double click the Assembly code line in the Assembly window Register Register on Zt Register amp Default Registers PU main 101 main 105 main 103 EI ne Assembly Toolbar Value Oxf9 0x16 0x0e Oxtt Oxf8 0x00 0x08 0x2e 0x78 0x08 0x61 0x7700 Ox00de a Break El search E iData E Exter Ej Flas Me Glob E code 62 Symbol i Local Set the breakpoint and execute the Continue command Then the debugger will run until it meets the breakpoint and will stop at the checked breakpoint After that the user can use Copyright 2012 WlZnet Co Inc All rights reserved Ver 1 1 20 p n5 4966nqegqg OOLZM VOOLZM WiZnet other Debug commands If the PC program counter can t move to the breakpoint the debugger will keep running If that is the case the user should execute the Stop command to stop It Clear Break The Clear command is used to clear the breakpoint 1 Click the checked breakpoint E region 2 Click the _ button on the selected breakpoint line 3 Locate the cursor at the C code line and click
8. 005b 7E00 MOV R6 0h Ox005d 7F08 MOV R7 8h Ox005f 12095D LCALL L0016 Fig 5 12 Assembly window In figure5 12 D gt Indicates the PC s location of the instruction e D Indicates the break point Ee Shows the assemble code with related C code D E Shows the break point double click Sets or unsets the break point Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 apin 4966nqeq OOLZM VOOLZM WiZnet 6 Search amp Variable Window The W7100A W7100 debugger provides various windows to see the local variable global variable and the register value Global variable window Shows the value of global variable in the project Local variable window Shows the value of local variable at the PC program counter now Search window Puts the variable name then it shows the value at the PC now Register window Shows the value of registers at the PC now Symbol window Shows the all symbols and its values of the project To activate each window select the related window on the Window menu or click the window button on the Toolbar WTOO Debugger STARTUP 451 268 5 oe h SG O8 808 gt a Fig 5 13 Search window Activate Search window Click the Da or select the Search Window on the Window Menu Activate Local variable window Click the or select the Local Variable Window on the Window Menu Activate Global variable window Click the EA or select the
9. 2 WlZnet Co Inc All rights reserved Fig 5 11 Source Window menu 22 Ver 1 1 apin 4966nqeq 00LZM VOOLZM WiZnet e Ts Indicates the PC Program Counter in the source code e RB means Breakpoint is set on this line ge the breakpoint can only be set on this shadowed line Click the mouse right button in the Source window user can see the Source window menu as in the figure5 11 Goto source line Move the cursor to the set line Set break Set the breakpoint Insert Variable window Add the variable to the Search window Run To Cursor Line Run the C code to cursor line Moreover the Source window can assist some functions as below Can set the breakpoint by double clicking the C code Show the indicated variable value when the mouse pointer on the variable Assembly window The assembly window shows the currently running assembly code Also if the user clicks the C code at the source window it shows the related assembly codes If the user opens only the HEX file without Keil project files only the assembly window will be shown without the source window Assembly CO La 0x0044 TAGE MOV R2 0Eh a Ox0046 79C3 MOV R1 0C3h J ox0048 7E00 MOV R6 0h Ox004a 7F06 MOV R7 6h Ox004c 12095D LCALL L0016 56 uint xdata tusize MAX SOCK NUM 2 2 2 2 2 2 2 2 ox0051 7co0 MOV R4 0h 0x0053 7DO1 MOV RS 1h 0x0055 BFF MOV R3 0FFh 0x0057 7A0E MOV R2 0Eh ox0059 79C9 MOV R1 0C9h Ox
10. DEF Oz000000 Ox000010 EES Ox000040 OxOO0050 Ox000080 UsSUUUU U b2000000 UUUOUUUUU UUUUUUUU UUUUUUUU UUUOUUUUU ZUUUUUUU UUUOUUUUU 00000100 oooooo0d oooooo0d CHARLE o INT 0 LONG a QOOOO0000 UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU UUUOUUUUU UUUUUUUU UUUUUUUU UUUUUUUU p n5 4966nqeq OOLZM VOOLZM Ox0000ed QOOOO0000 UUUUUUUU pogoara Ox000090 FRFOOO OO UUUUUUUU UUUOUUUUU UUUUUUUU Usel FFOOOOOO UUUUUUUU UUUOUUUUU UUUUUUUU Sibata Memo a Global Yari R2 Symbol el Code Memgn JS External M Fig 7 3 Change the display format FPREZFRIA Ww If the internal data memory value updates and the debugger command is in stop state It updates the internal data memory value to the IMCU7100API board 7 2 The external data memory window shows the value of external data memory X 0x000000 A OXFFFFFF External Data Memory Window Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 WiZnet External Memory 0000100 0123 4567 S9AB CDEF Ox000000 O7FFOYEF OF PRFO FE OV FFO FE O7FFOYEF Ox000010 O7FFOYEF OF PFO FE OV FFO FE O7FFOYEF Ox000020 OSO000800 Os000800 Os000800 ogaoga Ox000030 ogaoga Os000800 Os000800 ogaoga Ox000040 SFOS217F SC4665E5 COOOCSsOO DoOoOODSoo Ox000050 FOOGESOO FOOOFSOO saasaa a003 00 Ox0000680 AQOOASOO BOOOUBSOO ADAC DAD UIGpGCHAn Ox000070 O1LO1FFFF FFOOOOOS DC112266 02020202 a Ox000080 02020202 02020202
11. O2020202 O14230DAC Ox000090 20008320 16270CSBR Ca4 s41FFC rl4B82B4 Ox0000e0 J600F98F 4E076809 4020dA000 2124BF55 Fig 7 4 External Data memory window The value of external data memory is not automatically updated If the value of external data memory updates on each debugging command the speed of the debugger may be slower due to the size of external data memory being larger than the internal data memory Therefore the debugger has a button fp for updating the value of external data memory As in section7 1 IData Memory Window if the user changes the value of external data memory in the debugger the real value of IMCU7100API board will also change 7 3 Code Memory Window The code memory window shows the value of code memory 0xFF0000 OxFFFFFF This window Is for reading only it cannot be modified Code Memory M OxO000000 O2126A76 bAYCOO D O1YBFF YA ORY9IR YE KE OxO000010 OOYFO412 O95D 7o6E COO4DO1 BFF AOE Ox000020 JBBYEOO FO41209 BD ey 270 OO7D0175 OxO000030 FRYAUE S BRYEOO F 04120950 7o767COOD Ox000040 DO017BFF FADER ICS EOO FO6 1209507585 OxO000050 FCFYCOO D O1 YBFF YA DEFICITE 00FF02 OxO000060 O95D7o04 COOFDOL BFF AQE 9D1 7EOO OxO000070 7F081209 SD121A09 121AF075 O17A0079 Ox000080 76121932 BO17A00 796E1219 E37B017A x00000 00797212 19F67B01 FAOUO Y96A 1219CF 5 Ox0000a0 OFOL Y510 00751184 7B0i7A0D 797C iz203 Fig 7 5 Code Memory window As in the section7 2 External Data Memory Window the code me
12. WizZnet W7100A W7100 Debugger Guide Version 1 1 Ww IZnet 2012 WiZnet Co Inc All Rights Reserved For more information visit our website at http www wiznet co kr Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqeq 00LZM VOOLZM WiZnet Table of Contents 1 Driver installation for the EREECHEN den 3 2 Connect the Debugger cece arei iTA a A inaa a ada 5 3 Installation of the W7100A W7100 Debugger 7 A REIL PPO CC EE 8 ek PEDWO EE EE 14 5 1 OPER DFO CC d 14 5 2 Initialize the W7100A W7100 Debugger cece cece ee eee sees ee eeeeeeeeeeaneees 16 5 3 BUNA ge EE 18 5 4 Break POC EE 20 6 Search amp Variable Wumdow cece cece cece eee e eee settee eee seen este eee eseeeeeeeeeeteneennanes 24 6 1 GETRENNT E ates 24 6 2 Local Variable WINdOW EE 26 6 3 Global Variable WINGOW visiwatacivevesediteindbwartiav even tenrebusiaaaeenrteeaeass 26 6 4 einer Keis e He 6 5 Kelte ech Lee 27 L Memory ee EE 28 7 1 Data Memory Wimgdow ccc cee cece ee eeeee eset eee eeeeteeneeeeettaneenettennnees 29 7 2 External Data Memory WINKOW EE 29 7 3 code Memory tele e EE 30 7 4 Fasn Memory Vl ele EE 30 7 4 1 Code Memory Domain 30 7 4 2 Data deele E EE 31 Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqeq OOLZM VOOLZM WiZnet 1 Driver installation for the Debugger Connect the Debugger and PC with USB cable and then the new hardware searc
13. Znet click the END button to finish Completing the Found New eS Hardware Wizard The wizard has finished installing the software for S USB Seral Converter Click Finish to close the wizard Back Found New Hardware Wizard Completing the Found New eS Hardware Wizard The wizard has finished installing the software for y USB Seral Fort Click Finish to close the wizard Cancel Cancel Fig 1 3 Completing the new hardware searching 2 Copyright 2012 WlZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqeq OOLZM VOOLZM WiZnet 2 Connect the Debugger This section will explain how the Debugger is connected with iMCU7100EVB Connect the Debugger to the DTAG of IMCU7100EVB Fig 2 2 W7100A W7100 Debugger Connect the other DTAG cable between the Debugger and iMCU7100EVB The red line of DTAG cable must be connected to line number 1 of iMCU7100A DTAG socket Also connect the USB cable between the Debugger and PC Next insert the power cable to the IMCU7100EVB and push the EVB reset button as figure 2 1 Then push the debugger reset button of the Debugger Confirm the LED5 RUN LED after pushing these reset button Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqeq OOLZM VOOLZM WiZnet If the Debugger successfully recognizes the W7100A W7100 the LED5 RUN LED will turn on But if the LED5 is not turned on it m
14. a memory If the Data memory option is checked it will shows the value of flash data memory 0x00 OxFF It can modify the value with flash write button The basic interface of the flash memory window is the same as other memory windows But it has the flash write button which writes the whole value of flash memory window to the flash memory of IMCU7100API Also it has a button for updating the value of flash memory Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 31 WiZnet Document History Information Version Date Descriptions Ver 0 9 Beta 2009 8 13 Release with W7100 launching Ver 0 91 2009 12 Modify section2 Connect the debugger Add about debugger reset button Ver 1 0 2011 6 Release with W7100A lunching Ver 1 1 Jun 2012 Fixed some awkward expressions of English documents Copyright Notice Copyright 2012 WlZnet Inc All Rights Reserved Technical Support support wiznet co kr Sales amp Distribution sales wiznet co kr For more information visit our website at http www wiznet co kr Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 32 p n5 4966nqeq OOLZM VOOLZM
15. eans that W7100A W7100 is not recognized Check the connecting cable or try to reset the IMCU7100EVB and the Debugger The LED5 should be turned on before using the W7100A W7100 Debugger Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 apin 4966nqeq OOLZM VOOLZM WiZnet 3 Installation of the W7100A W7100 Debugger In this section the installation of W7100A W7100 Debugger is explained First run the W7100A W7100 Debugger install file Kn Ak ETag SE e 8 Setup Launcher Unicode bell Wl net Fig 3 1 The W7100A W7100 Debugger install file Then the installation of IMCU7100EVB debugger is started Push the Next button to setup Wi O0Debugger InstallShield Wizard Welcome to the InstallShield Wizard for Wi 100Debugqger The Installshieldi Fi Wizard will allow you to modify repair or remove WF 100Debugger To continue click Nest InstallShield Wizard Completed The InstallShield Wizard has successfully installed W 100Debugger Click Finish bo exit the wizard Fig 3 3 End of debugger installation Copyright 2012 WlZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqegqg OOLZM VOOLZM WiZnet 4 KEIL Project Projects that are supported by the W7100A W7100 debugger are as below Keil uVision2 project Keil uVision3 project Only hex file Restricted symbol function x The W7100A W7100 Debugger don t support the KEIL uVision4 or upper versio
16. elect the Window menu gt Code Memory Window Activate Flash memory window Click the ES button or select the Window menu gt Flash Memory Window Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 28 p n5 4966nqeq OOLZM VOOLZM WizZnet 7 1 Data Memory Window The IData memory window can show the value of internal data memory D 0x00 D 0xFF or modify the value IData Memory 0123 A567 S9AB CDEF Ox000000 Ox000010 Ox000020 Ox000030 UxO000040 Ox000050 Ox000060 OxO0000 70 Ux000080 OxO000090 OUx0000e0 OxO000050 DEI 0007000 OOOO0000 OOOO0000 OOOO0000 OOOOO000 OOO00202 OOOO0000 FReloa44 FFOOOGOO FFOOOOOO FFOOOOOO Fig 7 2 IData Memory window 14044414 40004000 OOOOO000 QOOOO000 QOOOO000 QOOOOO000 C4193516 QOOOO000 ogaao QOOOO000 OOOOOO000 OOOOOO00 O4000000 OOOOO000 DUDUUOUD DUDUUOUD DUDUUOUD DUDUUOUD DUDUUOUD DUDUUOUD c 000FE SOOOO000 DUDUUOUD DUDUUOUD 07011338F QOOO0000 QOOOOO000 OOOO0000 QOOOOO000 OOOOO0 70 QOOOO000 OOOOO000 OOPLOLOO OOOO0000 QOOOO000 OOOO0000 To modify the value of internal data memory click the value field of internal data memory and write the new value All memory windows can change into the display format 2 4 8 byte display unit or CHAR INT LONG display format It is shown in figure7 3 IData Memory such as Start Address DI End Address DT ESO 0123 4567 S9AB C
17. elected breakpoint Source and Assembly window In the Source window and Assembly window user can see the source code and assembly code The user can also use Debug commands In the source window user can check all variables and add it to the search window WTO Debugger STARTUP A6 Seelam TT E Hwa E gd Baach JET EAE Fig 5 10 Window menu aa aol h To use the Assembly window click the button on the Toolbar or select the Window Menu gt Assembly menu The Source window is always shown unless opening only HEX file Source Window E wrtog e d sockeT c e SERIAL c MAIN C x c FARMEMCPY C e STARTUP 451 CI uint sn sr tmp sn mr tmp f f uint xdata tmp 6 0 0 0 0 0 0 uint8 xdata ip 4 192 168 1 86 ff o uint8 xdata gw 4 192 168 1 1 ff Ee uint xdata sn 4 255 255 255 0 if uint xdata mac 6 0x00 0x08 0xDC 0x11 0x22 0x86 1 uint amp xdata txsize MAX SOCK NUM 2 2 2 2 2 2 2 2 Lj uint8 xdata rxsize MAX 30CK NUM 2 2 2 2 2 2 2 2 Goto Source Lime Initgo5 set Break B 8051 iinchip Inser Variable Window Aun To Cursor Line hs SetSHAR mac setGAR qw Set GUDD sn setSIPR ip sysinit txsize rusize TE gaa ths Put Stringhn UI W 100 Net Config Information lt The Source window is shown in the figure 5 11 Copyright 201
18. etailed information about WizISP WizISP program and user manual are available on the WiZnet website Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqeq OOLZM VOOLZM WiZnet WizISP v2 0 0 0 D File Device Options Help e ae a Sec Se Load HexToBin Edit Save Erase Blank Program Read Verify Auto Run Help Exit COM Port Configuration Hex Editor 03 04 05 06 OF 08 09 DA OB OC OD OF OF O12Z3456TESABCDEF Port COM4 Ki FE FE FE FF FE FF FF FF FF FF FF FF PFF K 00000010 FF Baud 115200 Close Fieber 00000020 Flash Operation Mode OO OD 0030 Flash Operation Mode 00000040 Code Data Set i Code Data JEt W Code Data Lock 00000070 tad Eege kock 000090980 F Code F Data Lock Auto Task Selection 00000930 W 1 Flash Erase 290900920 F OO OO OOBO W 2 Blank Check Fe 3 Program Op 00 0000 7 d Verity oo0000E0 OO00800 FO lt ig 4 2 gt Unlock the W7100A W7100A using WizISP program The W7100A W7100 debugger cannot recognize multi directory structure of KEIL project so all project file and source file must be placed in same directory to use W7100A W7100 debugger And the make hex file option and make symbol option should be activated in the KEIL project If they are not activated the W7100A W7100 debugger cannot find the hex file to load Also an error message could appear even if it finds the hex file Since t
19. ey F6 The debugging commands Search memory view break point etc are executed only in the Stop state Step The step command is used to run only one specific line among all lines The Step command is executed in units of one line of the C code If there is a Function call the Step command will enter into the related Function After the execution the debugger is stopped and waits for the next command To use this command click the button on the toolbar or select the Debug menu gt Step It can also be done by short key F11 If the user has only the HEX file to debug the Step command executes one instruction just like the Stepi command Next The Next command is basically the same as the Step command The Next command is executed in units of one line of the C code But if there is a Function call the Next command does not enter into the Function After the execution the debugger is stopped and waits for the next command To use this command click the button on the toolbar or select the Debug menu gt Next It can also be done by short key F10 If the user has only the HEX file to debug the Step command executes one instruction just like the Nexti command Stepi The Stepi command executes only one instruction If the instruction is a Function call the command enters into the related Function After the execution the debugger is stopped and waits for the next M command To use this command click the button on
20. ger commands such as Continue Step Next w100 Debugger A Error Load Image mismatch please reload Image Stol Fig 5 6 Load image mismatch Debugging The W7100A W7100 Debugger serves Debug and Tool menu and Toolbar button for debugging wT OO Deby qger 3s STARTUL IF AR Fig 5 7 Deugging menu Go to Source Line The Go to Source Line command is used to move the cursor to the wanted source line To use this function select the Tool menu gt Go to Source Line or use short key Ctrl G Find The Find command is used to find some words on the source window To use this function select the Tool menu gt Find or use short key Ctrl F Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 17 apin 4966nqeq OOLZM VOOLZM WiZnet 5 3 Run and Stop This section will explain how to use commands like step in out next and more Continue The Continue command runs the program until the Break point is met To use this command click the button on the toolbar or select the Debug menu gt Continue It can also be done by short key F5 During the Continuing state user cannot use the debugging menu In order to use the debugging menu execute the Stop command Stop The Stop command is used to stop the running program To use this command click the A button on the toolbar or select the Debug menu gt Stop It can also be done by short k
21. h window will open as figure 1 1 below Select Automatically setup the software I and click the Next N button Found New Hardware Wizard Welcome to the Found New eS Hardware Wizard This wizard helps you install sottware for USB lt gt Serial fe If pour hardware came with an installation CD lt or floppy disk insert it now What do vou want the wizard to do Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue Fig 1 1 The new hardware search window 1 If it is not automatically installed select the Install from a list or specific location Advanced and set our attached driver as below Found New Hardware V Browse For Folder Please choose your 4 Search for the bes WS ancamera Use the check bo E Zei CompanyWork paths and removal E B Debugger _ Search rem a ob 2 04 16 WHOL Certified amd 4 E 9 i386 H Di a leevs 6 MPS gt Don t search will EK MPEI Choose this option 8 Officez007 the driver you choi LH wizISP compact veri 0 E E H To view any subfolders click a plus sign above Fig 1 2 The new hardware search window 2 Wait for searching the device driver of the Debugger When the device driver installation is completed Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqeq 00LZM VOOLZM Wi
22. he W7100A W7100 debugger use slower clock than normal running clock running speed under the debugging mode is very slow So we recommend that don t use a delay function or something like that First open the KEIL project Click Project gt Options for Target Target name menu Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqeq OOLZM VOOLZM WiZnet Me Test_Driver Zision3 File Edit View Project Debug Flash Peripherals Tools SVCS Window Help B ekg iael cecel zs aAa ja gt ajaja EE ar m amp GO GE e oe Target 1 sl SS oe Project Workspace zi SCH Target Fly Source Group STARTUP 451 main C serial c socket c wef TOU c ne SES p n5 4abbnqeq 00LZM VOOLZM Blau Output wirid Find in Files Fig 4 3 Open the KEIL project Check the Create HEX File option from the Output tap as figure 4 2 Device Target Output Listing User CR A51 BLS Locate BL51 Misc Debug Utilities Select Folder for Objects Hame of Executable eet D river Ce Create Executable West Driver W Debug Information W Browse Information M Create HEX File HEX Format JHEX 80 si Create Library West Drive LIB T Create Batch File Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 10 WiZnet Fig 4 4 Output tap of the Options for Target window Select the Listing
23. le XK Delete this file LOOPBACK LOOPBACK LOOPBACK hex LOOPBACK Jop Other Places s Local Disk C 3 My Documents N N N CH Shared Documents d My Computer SA My Network Places loopback LST LOOPBACK MAP LOOPBACK Opt LOOPBACK_Opt Bak Details Fig 4 6 Hex file of the KEIL project If the KEIL project includes the assembly code such as xxx SRC file the Generate Assemble SRC File and Assembler SRC File options must be checked First open the Options for File xxx c that uses the Assemble code E File Edit View Project Debug Flash Peripherals Tools SVCS Window Help x Qe i pell Age DEIER AP D EE x DEE HEHEHE EEE EH EEE HEAL EE EE EE EE EEN SEKR Toast WiZnet Inc ALL RIGHT RESERVED river e Kl Source Group 1 HAHAHAHAHAHA AAAFASAAAAAAEAAA d Ls 3 STARTUP A51 Ze J delay c i y file wizmemcpy c 4 Icd c 08 Gbrief Define memory copy function between MCU memory and TCPIPCore memory H 2 loopback c i H 2 main c H serial c HS Pee w7100 h e i Ti Inciuge wizmemcpy CN eeng include TCPIPCore h E TCPIPCore c AX dafina GENFRAl spp DOE for File wizmemcpy c Open wizmemcpy lst pen Map File Open wizmemcpy c 3 Rebuild all target files i Build target Translate D WiZnet _PurplewW7100 _W7100_Application_Note_IntegratedVeriApplications TCPHTCPs_modified wizmemcpy c X Stop build Ges u New Group Add Files to Group d Manage Com
24. mory window has a button for updating the value of code memory 7 4 Flash Memory Window 7 4 1 In the flash memory window if the Data memory option is unchecked it will shows the Code Memory Domain Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 30 p n5 4966nqeq OOLZM VOOLZM WizZnet value of code memory 0xFF0000 OxFFFFFF Basically it is same the Code Memory Window but it can modify the value with flash write button Data memory start Address O FFOOOO End Address 9xFFFFFP Zeg 3 Address UstruUu OxffO010 OmtftOo020 UstruU2 OxftfOO40 OmtfO050 Omit OOo OxftfOoO7O OmtfO0so Omtft UU stra DUstru0b strich UsrttuUd T 0l 3 eOOOSOO0 EOg61AEC DbUUOC OU BaUSFPRYA JOEQEE62 BabyFF4AO FFDF5FFF FEB 7298 DGbEOAOL ODDb YEDDA SERA 1FFS135D CeC4BATE JEFDDVFF DIAAN 4567 02112800 DCDCIDSA FAFED4E FFOPDACA J1AFUER Figc BeCabsud 00378124 SQEGAESS B FEFFDS SF VERFFE BIEEBBOS BeSagsaAd 2EDDAFDF KENG DObC2CTIA OBF 94160 FAE FOFF FRGDGoFS Y2FDFFBS geca ICRC b6FEB0D DOBBIO2S 39FESEEE o4FD7 SEO FIBDFBO4 IDFSCoAd DF FDY82 91F7OOCE II COEF eUFEFB1S BBDDOBOO OAPFA DO oR SDBOIA SF IOFDIO oF AIEBSO E6GBDDDL99 be8D9A80 ECFFCAF4 FFEBELF 168A483BF FOOOOAOO J6EE3E58 70270000 apin 4966nqeq 00LZM VOOLZM El Search E Local VM Global es AS Symbol Data M BS Externa Be Flash M
25. n project But user can easily convert the uVision4 to uVision3 project as shown in the figure 4 1 to use the W7100A W7100 debugger File Edit View Flash Debug Peripherals Tools SVCS Window Help amp Project ECH Target 1 Source C E Ied c Select Device for Target Target 1 E loopt Remove File wizmemcpy c L socke Clean target L TCPIE 7 Build target Hg New Vision Project E New Multi Project Workspace Open Project Close Project STAR Manage SE delay inl e gei A Options for File wizmemcpy c 2 seria Save Project to wVision3 format Save Multi Project Workspace to Visions format on wrong operation cc Batch Build e compiled SERIAL UNUSED Block lt Fig 4 1 gt Save Project to uVision3 format X Caution on W7100A W7100A Lock function The W7100A W7100A has the memory lock function If the lock was set user cannot use the W7100A W7100 debugger because it cannot read anything from W7100A W 7100A memory So user should unlock to use the W7100A W7100 debugger properly It is easy to unlock using the WizlSP program As shown in the figure 4 2 clear the check box and click the Lock button Whole memory will be erased after the unlocking so user should re write the firmware again Please refer to the Wiz ISP user manual for more d
26. oject Empty Register Se A GC Z Register Value El Default Registers HU 0x00 Fil O00 O00 000 000 000 000 000 0x00 V idy Assembly fh x feach Assembly ad Search Cie Fig 5 3 Open project Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 14 p n5 4966nqeq OOLZM VOOLZM WiZnet W7100 Debugger Project Help rs Ligi lgellS a T Ti Ag eae eid iid Set Works pace DI Si B LOOPBACK hex My A ecent Documents 3 Desktop A S Mu Documents Mu Computer My Network File name LOOPBACK M Open Flaces Files of type HEX Flle hex Cancel Fig 5 2 File open browser If the user opens the project that is consisted only with a HEX file the Debugger will show a caution message And it shows only Assembly window abugger STARTUP ASI GG ab TTi See eteGaeseeor Se BHNWOBItnLzoL o WorkSpace S A C MAIN C c FARMEMCPY C c STARTUP AS1 x AE Ac EA project Test_Driver TD Register ie Source Files 117 STACK SEGMENT IDATA ol ee 4 MAIN C Be e Z c FARMEMCPY C Hry p STACK Register Value Gi STARTUP ASI G EW E 1 amp Default Registers RO 0x00 EXTRN CODE C_START Al 0x00 PUBLIC C STARTUP R2 0x00 R3 0x00 CSEG AT 000008 Ad 0x00 ZE 20 oe R5 0x00 9 D d CG STARTUP S LIMP STARTUPL RE 0x00 i A 0x00 RSEG ZC CSLSTARTUP A 0x00 R nnn STARTUPL ANL OFFH 07FH Assembly LD S a Search DH Xx
27. ponents Remove File wizmemcpy c Include Dependencies EA Edback DPXO tmp_DPXO PREAEAAEAEAAAAAFAEALEAAEAEASAEAAFAEEAAAEAAEAEEAAAEASASAREAAE d we b Fig 4 7 Open the Options for File xxx c Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 12 apin 4966nqeq OOLZM VOOLZM WiZnet Then check the Generate Assembler SRC File and Assemble SRC File options Options for File wizmemcpy c Properties C51 Path File Type Ic Source file Size 2019 Bytes last change Fri Sor 232 17 15 26 2011 fh Link Publics Only Code Bank Stop on Exit Code Not specified e Select Modules to Always Include Custom Arguments Fig 4 8 Setting the Options for File xxx c Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 13 p n5 4966nqeq OOLZM VOOLZM WiZnet 5 Debugger menu 5 1 Open project The W7100A W7100 debugger can debug the KEIL project or the hex file To debug the KEIL project or the hex file run the W7100A W7100 debugger and open the hex file Open Project The Open Project command is used to open a project Click the eS icon of the toolbar It can also be done by clicking Project Menu gt Open or pushing the short key Ctrl O The file open browser is opened as figure 5 2 File open browser J 7 ai E 4 E 2 E Hi L 7 a kb Zei 8 N SW e Work Ss pace Ax He A ister EA pr
28. t 0 0 00005F local_port Ux 000099 read_addr_h lt 0 OO0068 read_addr_l lt 0 O00069 Fig 6 3 Global variable window 6 4 Symbol window The symbol window shows the information of all symbols in the project It shows the class type and the address of the related symbol Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 p n5 4966nqegq 00LZM VOOLZM WiZnet Symbol a a 7C_STARTUP G c_STARTUP PUBLIC C 0s000000 ga Acc SFRSYH D Ox0000E0 dp SFRSYH D 0x0000F0 L d DPH SFRSYH D 0x000083 7 DFL SFRSYH D Ox000082 IDATALOOP SYMBOL C 0x00126D Z PPAGE_SFR SFRSYH D 0x0000A0 a gai SP SFRSYH D Ox000081 STARTUP1 SYMBOL C 0x00126A _ICE_DUMMY_ SYMBOL C 0s000000 Gai FO SFRSYH D Ox000080 Gai F1 SFRSYH D Ox000090 Gap SFRSYH D Ox0000A0 gA F3 SFRSYH D Ox0000B0 Ga IE SFRSYH D Ox0000A8 IP SFRSYH D 0000088 Ms main PITRT TC CC Ussfl III K apin 4966nqeq OOLZM VOOLZM Fig 6 4 Symbol window 6 5 Register window In the register window user can check or modify the value of the register It shows the default registers PSW and special function register SFR To modify the value of the register click the field of register value and write the new value But if the register is read only then the value is not changed Register B A DS Z Register Value E Default Registers RO Oxf Fil AER Fie 00e R3 Ott HA Oe 14 R5 EI RG sd RF Ox 14 A at B AIR SF 0
29. tap and check the Symbols option of the C Compiler Listing region Options for Target Target 1 x Device Target Output Listing User C51 451 BL51 Locate BL51 Misc Debug Utilities Select Folder for Listings Page width fi ER H Fage Length e 4 Iw C Compiler Listing WW Ist Jh Conditional T Hinclude Files Assembly Code apin 4966nqeq OOLZM VOOLZM IT C Preprocessor Listing Wi Iw Assembler Listing Wb Jh Conditional Jh Symbols Macros Final expansion only ll Cross Reference i Linker Listing West Driver m i IY Memory Map Jh Public Symbols M Line Numbers Cross Reference h Local Symbols Iw Comment Records IM Generated Symbols he Library Symbols Cancal Defaults Help Fig 4 5 Listing tap of the Options for Target window Also check the Symbols option of the Assembler Listing region The Assembler Listing is optional Click the OK button to finish and compile the KEIL project Confirm the HEX file in the project directory after compiling Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 11 WiZnet SS C LOOPBACK_TCP Fie Edit View Favorites Tools Help Q Back e Ki pe Search a Folders Er Address CH C LOOPBACK_TCP CTI File and Folder Tasks wl Rename this file em loopback LOOPBACK LOOPBACK E Move this file DN Copy this file Publish this file to the Web G E mail this fi
30. the Debug Menu gt Clear Break 4 Double click the breakpoint directly on the C code line 5 Double click the breakpoint directly on the Assembly code line 6 Select the breakpoint on the Assembly code line and click the A button on the Assembly Toolbar 7 Select the breakpoint on the C code line and select the sz button on the Breakpoint Toolbar 8 Short key F9 Clear All Breaks The clear all breaks command will clear all breakpoints both from the C code and Assembly code To clear all breakpoints Click the i button on the Breakpoint Toolbar Breakpoint window Click the z button on the Toolbar Select the Debug menu gt Clear All Breaks Goto Next Break Point The Goto Next Break Point Command is used to move the cursor to the next break point To use this function Click the CA button on the Toolbar Select the Tool menu gt Goto Next Break Point Goto Previous Break Point The Goto Previous Break Point command will move the cursor to the previous break point To use this function Click the bad button on the Toolbar Select the Tool menu gt Goto Pre Break Point Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 21 apin 4966nqeq OOLZM VOOLZM WiZnet Break Point Window The Break Point Window command shows all checked breakpoints The break point Toolbar buttons are as below Clear the selected breakpoint E Ki Clear all breakpoints Move to s
31. the toolbar or select the Debug menu Stepi It can also be done by short key F7 Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 18 p n5 4966nqeq OOLZM VOOLZM WiZnet Nexti The Nexti command executes one instruction But the command does not enter into the related Function even if the instruction is a Function call After its execution the debugger is stopped and waits for next command To use this command click the LF button or select the Debug menu Nexti It can also be done by short key F6 Run to cursor line The Run to cursor line command executes the code until the cursor on the debugger source window is met To use this command select the push the mouse right button gt select Run To Cursor Line n or select the Debug Menu gt Run To Cursor Line gE SFE S c w7100 c c SOCKET C c SERIAL c MAIN C x c FAF 56 uint xdata txsize MAX SOCK NUN 5F uint xdata rxsize MAX SOCK NUM 28 59 sch 2i Le Li 60 Goto Source Une 61 Set Break B3 itialize 62 Insert Variable Window 63 Run To Cursor Line 64 Setonan mac 65 SsetGAR gw 66 SetSuUuBR isn eT ert ONT TEEN fawn Fig 5 8 Run To Cursor Line command Sometimes the Run To Cursor Line command continues when the cursor is not properly set If that is the case execute the Stop command to stop it Copyright 2012 WiZnet Co Inc All rights reserved
32. x6 DP TRO OxOS44 PL 00211 o PSW F 0 UM U RS U FU i AC U cy U H Gpeicial Registers DU Ott DFL UU DPH Ode DPTRI Us 0000 DPS TANI DC ON EH TEON Duc TIMO Uu 20 TL 000 TLI Ofte THO O00 Fig 6 5 Register window Copyright 2012 WiZnet Co Inc All rights reserved Ver 1 1 27 WiZnet 7 Memory window Notice To read a memory value of IMCU7100EVB a Keil project or HEX file should be opened first To read a memory value of iIMCU7100EVB any Keil project or HEX file should be opened first But there are no differences between Keil project or HEX file and image file which loaded to IMCU7100EVB The iMCU7100API debugger supports below memory windows Data memory window Shows the value of internal data memory Update the value when stop state after the debugger command External memory window Shows the value of external data memory Code memory window Shows the value of code memory Flash memory window Shows the value of flash memory To activate each window use the Window menu and Toolbar as in the figure 7 1 WTO Debugger STARTUP Gi GG zl Gau TTH ie EL gd aan p alt e Fig 7 1 Memory window i Activate IData memory window Click the zz button or select the Window menu gt IData Memory Window Activate External memory window Click the HE button or select the Window menu gt External Memory Window Activate Code memory window Click the E button or s

Download Pdf Manuals

image

Related Search

Related Contents

部品の確認 - TOTO  Ordenador de buceo Nemo Wide  Hunter Fan 36095 Air Cleaner User Manual  Hotpoint HSZ2321L User's Manual  85969_DE_FR_IT_EN - Lidl Service Website  Mid IntegratIR Downward Looking Sphere  Press Release  n.144 di SET2011 - Architetti nell`Altotevere Libera  GT100 User Manual    

Copyright © All rights reserved.
Failed to retrieve file