Home
W90P710 Bootloader Users Manual
Contents
1. Boot Loader User s Manual VERSION m sea 22 we v a 1 HyperTerminal Receive File Capture Text Send Text Fie Boot Loader Cq Capture to Printer TETP server port Network phy chip MAC 0 Address IP 0 Address MAC 1 Address IP 1 Address DHCP Client CACHE BL buffer base BL buffer size D 3 18 117 191 bootloader gt mx 0x8000 Press Ctrl x to cancel i s ececcc_ zbe 1 20 Enara Timan haw Naman MAC 1 PHY 00 00 CC DD AA 11 192 168 0 228 00 00 CC DD AA 12 192 168 0 228 Enabled Disabled Ox00300000 Ox00100000 Press ESC to enter debug mode W90P710 Command Shell v0 1 Rebuilt on May 29 2003 at 09 27 14 CCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCECCCCCCCCCCCCCCCCCCCECCCCCCC COCCCCCCCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCC CCCC CCC CCCCCeCCCcee 3 1221 3 sfa 2 4 Sends a file to the remote system Draw fe autoshapes a OBAT o 4 A S Om Page 2 Sec 1 2 10 At 13 7em Ln 3 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Col 1 REC FRE Bet Ove English Ss O Bleosenrnz i eH Aide 1110 0001 03 A Winbond Electronics Corp Boot Loader User s Manual PAGE 47 ie Boot Loader Download Procedure doc Mic
2. DHCP REQUEST DHCP ACKed IP AGGresss wwe amp eo we e we ws 2 10 32 2947 Subnet Mask s a a s w ara 255 255 0 0 Default Gateway es S LO 3 lt 1 254 e Use the xusb client in the host computer to send the file Such as xusb linux bin bootloader gt mt Pleas nter destination address 0x8000 Image load address default to 0x00008000 Waiting for usb download or Bootloader gt mt 0x80000 Waiting for usb download Then type xusb lt file gt in Windows Linux s command prompt The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 18 2 9 FX Load an image into flash by Xmodem SYNOPSIS FX ImageNo ImageName base address exec address a c x f z a Active image c Image needs to be copy to RAM x Executable image f File system image z Compressed image DESCRIPTION This command downloads an image into memory by XMODEM and then programs it into FLASH As part of the programming process the WBL will build FLASH image footer according to the image characteristic In order to build the correct footer information the relative information of the image must be specified The information is Image number A unique number for the ima
3. The following messages would be shown on the terminal screen when the updater start to update the WBL Please don t power off the system before the programming finished Flash Detecting ooo Flash type is AM29LV320DB Plash OISOCISUNMGLING gaacaocc OK veririag OKI Programming finished ROM code update successed Press any key to reboot After programming finished please press any key to reboot the system If the system doesn t reboot please use hardware reset to reboot it 6 2 Method 2 Upgrate with xmodem bin Bit ee ae 0 Press Esc on booting to enter bootloader mode Download the xmodem bin to 0x8000 by mt or mx There are CCC string displayed on the Terminal Emulator Use the Tranfer gt Send file to send the new bootloader bin by XMODEM protocol Transfe complete Enter the flash programming address to 0x7FOO0000 Waiting for the flash programming complete Reboot The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 58 6 3 Method 3 Update by updater bin via JTAG Connect the JTAG ICE to W90P710 Load the init axf into the W90P710 to execute Load the updater axf into the W90P710 to execute When th
4. 3 3 User images At the boot time the WBL searches images form number 1 to 7 If an image is found the boot loader will process it according to its attributes The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A K Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 38 3 4 Image An image is a binary code or a general data file which has footer information When downloading the user program into FLASH the WBL automatically writes the footer for it The footer is always located at the end of the last FLASH block of the image Note that if there is no enough free space at the last FLASH block containing the user program the footer will be written to the end of the next free block An example is shown as follows Figure 2 Image Example A 160K8 user image uses 3 fiash blocks All FLASH space is divided into blocks by the size of 64KB The user image is stored in these blocks For an image of size 160KB it needs at least three blocks to store the image The footer will be written to the end of the last block 3 4 1 Footer The footer is a data structure to store all the information relative to the image The information in the footer includes The above information is the exclusive intellectual property of Winbond Electronics and shall not be dis
5. E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 1 W90P710 Boot Loader User s Manual Jan 5 2006 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 2 Revision History 1 0 June 18 2003 Initial Version 1 1 Jan 5 2006 Update for USB transmission The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 3 Table of Contents W90P710 Boot Loader User s Manual ccccccccccsccsscsscsscescesseseescceseesscsscsecsecsscsecesssscsscsscsecsscsecssssscsscsecsecsecseesseeseeseceeeasaee 1 1 The W90P710 Boot Loader CW BIS i escesssssceuscssedessvensdeusyacecesavevcdeasvoueteasSevedecses cues scvvedesacsavievatiesdevele cessestavstesetevebuecdevsbecees vobevess 5 1 1 POUT TS WBE ieni Seis tnccustas visa A ata vssesseetete tah sae eek eta ae eee 5 1 2 Hardwares Connection eren anaa era cavse A T EE E A E TE E EEE 6 1 2 1 S tting Up a Serial COnNecton siessen a n Ea aaa a a aana 6 1 2 2 Setting p TCP IP Conn
6. WBL is the first program to be executed after power on It is responsible to initialize the system including memory interface interrupt vector table address remapping peripherals and so on After the initialization is completed a prompt message will be shown on the console to notify user to press the ESC or B key to enter the WBL debug mode If no key is pressed within a specified period 3 seconds generally the WBL will start scanning the FLASH ROM The WBL will load the first active image into DRAM and then pass the CPU control to it If no active image is found the WBL will enter debug mode finally In the WBL debug mode a command shell is responsible to get the command string from the serial or network connection The command shell parses the command processes the corresponding operations and then waits the next command The WBL commands are able to support many functions such as image download FLASH programming memory editing program execution and so on This document will introduce the WBL on the following sections The W90P710 Boot Loader WBL commands The FLASH ROM map WBL memory map Download procedure examples Update Bootloader FAQ s 1 1 About the WBL The W90P710 Boot Loader WBL is a ROM based monitor program It communicates with the host computer by using a serial or network connection Generally the WBL is concomitant with several user programs and saved in the FLASH ROM Except for the WBL all the
7. 1234 1234 1234 1234 1234 4 4 4 4 4 4 4 4 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 31 2 19 TERM Change the debug channel SYNOPSIS TERM 0 1 0 for serial port output 1 for TCP IP output DESCRIPTION The WBL supports an alternate debug communication channel to host computer The user can use this command to switch to another debug channel The option 0 is to switch to serial port and the option 1 is to switch to network connection EXAMPLE bootloader gt term 0 Switch to serial port connection bootloader gt term 1 Switch to network connection The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 32 2 20 BOOT Reboot the system SYNOPSIS BOOT DESCRIPTION The BOOT command will make a software reset of the W90P710 to reboot the system immediately EXAMPLE bootloader gt reboot The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission fr
8. 2003 at 09 27 14 bootloader gt mt 0x800 Wait for auto negotiation complete OK 100MB Full Duplex DHCP DISCOVER DHCP REQUEST DHCP ACKed IP Address a 4 Nes Z0 118 Subnet Mask Roo eo U1 0 Default Gateway i 10 3 1 254 TFTP client 10 3 28 143 Download OK file size 527 192 Download successed bootloader gt Connected 00 00 51 VT 100 115200 8 N 1 SCROLL CAPS NUM Capture Printecho The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 52 5 4 Case 3 Program image into FLASH by Xmodem DESCRIPTION Download rimfs img to FLASH 0x7F020000 as image 1 Command fx 1 romfs 0x7f020000 0xd00000 ac Screen shot 115200 HyperTerminal oOo B lolx File Edit View Call Transfer Help Ols ols ola Boot Loader Configuration TETE server port MAC 1 Network phy caip PHY MAC 0 Address 00 00 CC DD AA 11 IP 0 Address 192 168 0 228 MAC 1 Address 00 00 CC DD AA 12 IP 1 Address 192 168 0 228 DHCP Client Enabled CACHE Disabled BL buffer base Ox00300000 BL buffer size Ox00100000 Press ESC to enter desug mode W9OP710 Command Shell v0 1 Rebuilt on May 29 2003 at 09 27 14 bootloader gt fx romfs 0x7f020000 O
9. None Stop bits 1 Flow control None 1 2 2 Setting up a TCP IP connection When choosing the TCP IP connection a terminal emulator program having network connection support is necessary A usual example is the Windows HyperTerminal with WinSock support Make sure the target board and host PC are in the same network domain Besides the WBL s debug port must be changed to network The network interface setting of the terminal emulator must be as the following Host address XXX XXX XXX XXX The IP address of WBL on the target such as 192 168 1 100 Port number 65500 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A NO Winbond Electronics Corp Boot Loader User s Manual VERSION 1 1 PAGE 7 1 3 The WBL commands WBL provides a set of commands to do the system configuration image download update flash image and others The summary of the command s function is listed below Download images through the serial connection into system memory or FLASH ROM Download images into system memory or FLASH ROM through network Read and write data in memory Configure platform system information Enable or disable cache Decompress images to the system memory Support network communication channel with host computer The above information is the exclusive intellectual p
10. RE E RERE ARENE A ENE EE a A a E aS ERa 38 3 4 2 Image atte DUM Oie isiin sranna ana e aaa Ea ET EEE AE ETa DEE ES 39 4 The WBE memory Ma pet iceses sev crasessasstslaveatecsy aes OT E E EE TTT o E E T O E E O TRIE Teea 41 41 32KB MEMON osrinneniaciiine asa ti Caer A A TE E E E E 41 4 2 Boot loader memory MANAGEMENL ee eeeceeseeeeseeeeseeeeceseeeeseeeeseseeceseeessesesseseeecseseeacereseaeeeeseeeeaeeeeaeeeeesaeeeeaeeeeees 41 4 2 1 Backup image Oisin iein aii A AEE AAE E AEEA SEE EE EEAS 42 4 2 2 Buffer used by network CONNECTION 20 0 0 eeeesceseeeneeeseeeseceseceseceseceseceaeceaeeeseceaeceaeeaeeeaeceaeeeaeeeaeceaeeeaeeeaeeeaeeeneees 42 4 2 3 Butter Used by GecOMpressiOM is cieceescosecssssevtocteecastescesecswtoseectesosscaveecueensavcvuceueaessontescveaneecsveenusosvesdoucevecestosvecd 42 4 2 4 Stack and heap space for semihosted program cee eee esseesceeeeeeseeeeceseeseceseeeesessecseseeeeaesseseeseseeaeseseaseaees 42 3 Download procedure Examples ccisissdsvscissdsvsaararesancsunestsarslecsvspveaveseoavescoaucsbassno usancsucouedtasatesusaves swedsesuvoutavesewespnaneataecsevees dares 43 5 1 Case 0 How to enter debug MOOS Fico asicaspeaiceanise lt inaneosn canes sa oiiataaaeseeraiuatsaneiantsaanabsteianes panauanammaatmmansnaneuatns 43 5 2 Case 1 Download an image to memory by XMOAEM ec esesesecessseeseceseceseseseeceeecescacscececeeeacaeseeeeeeeaeaceceeeeees 45 5 3 Case 2 Download image to memory Dy TFTP sisssscsas
11. User s Manual VERSION 1 1 PAGE 22 2 11 CP Copy memory SYNOPSIS CP saddr taddr length saddr source address to be copied from taddr target address to be copied to length The length of memory block to be moved DESCRIPTION This command is used to copy a block of memory The destination must be in RAM EXAMPLE bootloader gt cp 0x7f020000 0x8000 0x100000 This command will copy the data from 0x7f020000 to 0x8000 with the size 0x100000 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 23 2 12 LS List the images in the FLASH SYNOPSIS LS DESCRIPTION This command is used to list the images on the FLASH The information of image including image number image name image base address image size execution address and image attributes This command can be used to check images position size and the free space of the FLASH EXAMPLE bootloader gt ls Image 0 name BOOT INFO base 0x7F010000 size 0x0000FFCC exec 0x7FO10000 f Image 1 name romfs base 0x7F020000 size 0x0009D400 exec 0x00700000 ac Image 2 name linux base 0x7FOC0000 size 0x000E8250 exec 0x00008000 acx The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed
12. distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp Boot Loader User s Manual VERSION 115200 HyperTerminal File Edit View Call Transfer Help IP 0 Address 192 168 0 228 MAC 1 Address 00 00 CC DD AA 12 IP 1 Address 192 168 0 228 DHCP Client Enabled CACHE Disabled BL buffer base Ox0d0300000 BL buffer size Ox00100000 Press ESC to enter dedug mode W9OP710 Command Shell v0 1 Rebuilt on May 29 2003 at 10 12 50 bootloader gt ft 2 linux Ox7f0cO000 Ox8000 acx Wait for auto negotiation complete OK 100MB Full Duplex DHCP DISCOVER DHCP REQUEST DHCP ACKed IP Address a Roa Subnet HASKE F og 2oo 0 0 Default Gateway s x i 1023218254 TETE client 10 3 28 14 Download OK file size 950 864 Flash programming bootloader gt _ Connected 00 01 29 T100 115200 8 N 1 SCROLL CAPS NUM Capture Printecho a The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 56 6 Update Bootloader There are three methods to update bootloader we describe them in the following sections 6 1 Method 1 Update by updater bin via xmodem or
13. without permission from Winbond eH Side 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 10 2 2 B Set baud rate SYNOPSIS B 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200 230400 460800 DESCRIPTION This command is used to set the baud rate of the serial line used by the WBL EXAMPLE bootloader gt b 115200 The baud rate changes immediately after the target system baud rate was set The baud rate setting of the terminal emulator needs to reconfigure to new baud rate setting The flow control and stop bits cannot be configured The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 11 2 3 D Display the memory contents SYNOPSIS D w h b s taddr w W Word alignment h H Half word alignment b B Byte alignment S S Swap target taddr Target memory address DESCRIPTION This command displays 256 bytes of system memory by the specified address The data format shown on the terminal emulator could be 32 16 or 8 bits That could be specified by command options such as w h or b The w option lets the command show the system memory in words 4 Bytes The h option lets the
14. xp B i USB Close Hide Capture Clear E linux bin Add Del Delal Sep Start Stop Param vitn running Ready No Errors Port COM1 baudrate 115200 Secs Del The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond KE aj JE 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 60 Delete the file from the list Del All Delete all the file from the list Set IP Welcome lzxu gt Magic Terminal pro 1 0 for Win9X WinME Win2000 XP CommPort View Capture Options Help 9 kk Open Close Hide Eslinux bin E E pos img ROM oxD00000 Param with running S Sa e7 Start Start to send file Stop Make sure to stop the magic terminal and reset the chip first before any file s resent Capture To record everything showed on the interface HOTKEY F2 When the cursor is in the interface and the chip has be reset is the same effect as stop start to sent the file F4 The same effect as Ctrl c Ctrl F3 Input the command in the command line The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kage 1110 0001 03 A Winbond Electronic
15. 7F Se 000080D0 DD56F7DE 4EEFF 335 FBEEFFBB F7B7F7DE Ms Taa Na aah Ahrens 000080E0 FBE7F7F7 FEFDEDF3 OEBFFEFF AFB2FFDE n The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 12 000080F0 7FFFFFFF 7CFF77BB DDESFBF7 FF7BFEFF _ w The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 13 2 4 E Edit the system memory SYNOPSIS E w h b s taddr w W Word alignment h H Half word alignment b B Byte alignment S S Swap target taddr Target memory address DESCRIPTION This command edits the data on the target address both the data and address are represented by hex decimal format The data width edited could be 32 16 or 8 bits They are specified by command options w h and b The w option specifies the word access 4 Bytes The h specifies the half word access 2 Bytes The b specifies the byte access If the data format option is not given the data width is default to be 32 bits format EXAM
16. B command can be used to change the attribution of an image without re download it EXAMPLE bootloader gt 1s Image 0 name INFO base 0x7F010000 size 0x0FFCC exec 0x7F010000 f Image 7 name linux base 0x7F020000 size 0x76F10 exec 0x00008000 axz Image 6 name romfs base 0x7F100000 size 0xDAD88 exec 0x00700000 az bootloader gt attrib 6 f Image attribution changed successfully bootloader gt 1s Image 0 name INFO base 0x7F010000 size 0x0FFCC exec 0x7F010000 f Image 7 name linux base 0x7F020000 size 0x76F10 exec 0x00008000 axz Image 6 name romfs base 0x7F100000 size 0xDAD88 exec 0x00700000 f In this example the attribution of image 6 was changed from az to f by ATTRIB command The user may use the LS command to check if the image attribution changed successfully The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 36 3 The FLASH ROM map of the WBL The main function of the WBL is to boot up the system and load the user program to execute it Therefore the boot loader must be located in the offset zero of the FLASH The minimum space requirement of boot loader is 128KB The first 64KB is the binary code of boot loader and the following 64KB is reserved for image 0 which is u
17. E 54 5 5 Case 4 Program image into FLASH by TFTP DESCRIPTION Download linux bin to FLASH 0x7FOC0000 as image 2 Command ft 2 linux 0x7f0c0000 0x8000 acx Screen shot 115200 HyperTerminal z xj File Edit View Call Transfer Help Ole al3 o s Boot Loader Configuration TETE server port MAC 1 Network phy chip PHY MAC 0 Address 00 00 CC DD AA 11 IP 0 Address 192 168 0 228 MAC 1 Address 00 00 CC DD AA 12 IP 1 Address 1 292 168 0 7228 DHCP Client Enabled CACHE Disabled BL buffer base Ox0030000 BL buffer size Ox00100000 Press ESC to enter desug mode s WOOP710 Command Shell v0 1 Rebuilt on May 29 2003 at 10 12 50 bootloader gt ft 2 linux Ox7f0c0000 Ox8000 acx Wait for auto negotiation complete OK 100MB Full Duplex DHCP DISCOVER DHCP REQUEST DHCP ACKed IP Address i 2025 26 aS Subnet Mask i 2S 25S Default Gateway 023 28 Connected 00 00 59 vT 100 fiiszo0e nei SCROLL caps NUM Capture Print echo Enter in Windows command prompt C LanCams gt tttp i 10 3 28 115 put linux bin Transfer successful 950864 bytes in 2 seconds 475432 bytes s Or enter in Linux command prompt wschang0 Linux images tftp 10 3 28 115 tftp gt bin tftp gt put linux bin Sent 950864 bytes in 2 seconds tftp gt The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed
18. PLE bootloader gt e b 0x8000 8000 90 gt 90 8001 80 gt 80 8002 8F The original data at the specified address will be shown in hex before you change it You can use backspace key to erase the original hex number while changing it The actual contents of the specified memory won t change until you press Enter The WBL will step to next memory to edit once the Enter key was pressed Press the ESC to exit if all modifications have been done The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 14 2 5 G Go to address SYNOPSIS G address DESCRIPTION This command transfers control to the specified address Use hex format of the address If the address is not given the default address 0x8000 is used EXAMPLE bootloader gt g 0x8000 WBL will transfer control to the given address The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 15 2 6 Show WBL information SYNOPSIS l DESCRIPTION This command is used to show the WBL information Th
19. Please refer to B command to the supported baud rate The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 26 2 13 8 Serial number This is the serial number of the bootloader EXAMPLE bootloader gt set sn 0x01 2 13 9 USB This configuration disable or enable USB interface EXAMPLE bootloader gt set usb 0 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 27 2 15 CHK Check the FLASH space SYNOPSIS CHK DESCRIPTION This command is used to check the image checksum If the image data were corrupted a checksum error message would be shown on the terminal EXAMPLE bootloader gt chk Image check finished 0 checksum error found The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A K Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 28 2 16 RUN Execute image SYNOPSIS
20. RUN image number DESCRIPTION This command is used to execute an image The command will process the image according to the attributes of the image For example Execute image 1 bootloader gt run 1 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 29 2 17 Del Delete the image or FLASH block SYNOPSIS DEL ImageNo block all ImageNo Delete the image block Delete the block all Delete all blocks DESCRIPTION This command is used to delete the image from the FLASH If the image number is given this command will delete the specified image If the block number is given this command will only erase that block You also can use this command to erase all blocks in the FLASH except block 0 and 1 with the option all The size of each block is 64KB If the FLASH size is 2MB there would be 32 blocks in the FLASH These blocks are numbered form block 0 to 31 EXAMPLE bootloader gt del 1 Delete the image 1 bootloader gt del b1 Delete the block 1 of the FLASH bootloader gt del all Erase all blocks in the FLASH except block 0 and 1 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permiss
21. TFTP 1 Press Esc on booting to enter bootloader mode Press ESC to enter debug mode Press ESC bootloader gt 2 Download the updater bin to 0x8000 by mt or mx For more detail please reference to Winbond Boot Loader User s Manual bootloader gt mx 0x8000 Waiting for download Press Ctrl x to cancel CCCCCECCCECCCC Cm Download successed 3 Execute the image by g 0x8000 command bootloader gt g 0x8000 4 The following messages would be shown on terminal screen Please confirm the information shown and press any key to continue if it is ok Aug 30 2005 AK Ke We ee Ae es eA A ee A Ne ng A yO NY NG Ny Ay AA ON Ne eA W90P710 Updater Version 1 0 Revision 6 Copyright ce 2003 Wandond Eleceroniles Corp LAP Yad Tai Yak Tal Sa TAY Lah Tah aS Yad Yah Yad Vad Yah Wak Way UsS TA Wah TA Was Va Vas Yad Tak Tal Way TAY Lak TAS aS Yad Yak Vad Vas Yah Val ERK TA Wal TAS Yas YAP Vas Wad Tak Vay Wal Tay Lah Wad aS The ROM code version in this update image W90P710 Boot Loader Version 1 1 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond He HH A 2 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 57 W90P710 board is Found WARNING W90P710 Boot Loader will be updated PRESS any key to continue
22. User s Manual VERSION 1 1 PAGE 25 bootloader gt set dhcp 0 2 13 4 Cache User can user this option to configure cache status before processing images in FLASH ROM For example Disable Cache bootloader gt set cache off 2 13 5 BL buffer base When using TFTP server network console SET command or decompression function the WBL needs additional memory space to do it The address of the buffer base used by the WBL must ensure that it would not make conflict on doing the TFTP server downloading network console or decompression function This option indicates the base address of the free space for the WBL The buffer base must be set with buffer size 2 13 6 BL buffer size This option indicates the size of the free space reserved for the WBL The buffer size is recommended to be 0x100000 For example base 0x300000 size 0x100000 bootloader gt set buffer 0x300000 0x100000 2 13 7 Default Baud rate WBL supports various default baud rate settings Generally the default baud rate is 115200 bps If the default baud rate needs to change to other speed the user can use SET command with baudrate option to set it For example Set default baud rate to 38400 bootloader gt set baudrate 38400 The WBL needs to be restarted to enable the new setting The set baud rate command is different to B command which change the baud rate immediately All WBL supported baud rate can be used to be default baud rate
23. butions Ex 1 demo image 0x7f020000 0x8000 acx 2 Type ft 1 demo_image 0x7f020000 0x8000 acx at prompt 3 Use the tftp xusb client in the host computer to send the file Using TFTP The tftp client must be set to binary mode to transfer the file Such as tftp i 10 3 29 41 put hello exe i is used to set to binary transfer mode bootloader gt ft 1 demo_image 0x7f 020000 0x8000 acx The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 21 Waiting for usb download Wait for auto negotiation complete OK 100MB Full Duplex DHCP DISCOVER DHCP REQUEST DHCP ACKed IP AGdGYreSS a a Ae ew fee ok wm F LOLS 29 4 Subnet Mask ao w w aa Mw er eh oe Go 2S 255 20 0 Default Gateway woe a WO 31 254 Use the xusb client in the host computer to send the file bootloader gt ft 1 demo_image 0x7f020000 0x8000 acx Waiting for usb download Then type xusb lt file gt in Windows Linux s command prompt The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader
24. closed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A K Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 39 3 bass fa The base address ofthe image Tenn a Theimegesze U U O Coad adress a The load adaress ofthe mage u AYALA fexec address a The execution adress of the image Fimage checksum 4 The checksum ofthe image signature a Asignature word to identity afooter ye a The atributon ofthe mage fonecksum a The checksum ofthe Tooter 4 AJAJAJ AYA 3 4 2 Image attribution The image attributes are stored in the footer The WBL will process the image according to the attributes The attributes and its effect are listed as follows IMAGE_ACTIVE 0x1 a This attribute indicates that it must be processed at booting time If the image is not active the WBL will skip it IMAGE_COPY2RAM 0x2 c This attribution indicates that it must be copied from FLASH into system memory The WBL will copy the image from base address to the load address if the image is active and the IMAGE_COPY2RANWM attribution is set IMAGE_EXEC 0x4 x If the IMAGE_EXEC attribute is set the WBL will pass the control to the image If the user image is a semihosted application the WBL can continue to process the next image after the semihosted application terminated This attribute is usually used with IMAGE_COPY2RAM to execute the image in sy
25. command show the system memory in half words 2 Bytes The b option lets the command show the system memory in bytes If the data format option is not given the data is default to show in 32 bits format If the address is not given the address following the previous shown address will be the default address An example of this command is shown as follows bootloader gt d w 0x8000 Displaying memory at 0x8000 00008000 FFFFE9FB FEEFF9OFD FFFF7ABD FFFFFF9E Disa 6 E 00008010 SECB8FFF FSABE579 CFFFFBF6 FFBDFFEF y 00008020 EFEFBFFE B4FFFFB7 7DFCFFEE BFOFDFFD Je 00008030 CEF7EAF9 FFE3FB7D FFFCEFF7 FFEBFFFB 0 00008040 E76E9EFF ABDEF78E 3DF7FFF5 FBD9EDF3 n eas 00008050 EFDEBEFF F25B5FD9 FF7F6F5F E9F6F2AF ee reo re are 00008060 BFED7EFF F3F7D79A FCF3DEFF 999B3BFB 6 he se 00008070 FFFBFSDF F7FFF7EE 7EFFFFDB FDB95BEF Pea lee 00008080 FDFFFFB7 D8BFDF6D BDFEFDFD F77FED77 aMn seers We 00008090 DFVFBFFD DF7FEFFE TEDFCEF7 DFEFF77F Ss ie 000080A0 95FBF77F 6BBFF7F7 5FF5D776 FEFFD9F7 _ kv _ 000080B0 FFFFFFB7 BFBFFFE7 FBFFFEBD BFFTBETF 000 000080C0 F6CDBBD4 7FDD3DFF FFSFFD7F S3FDE7
26. csassaavssacssssssiveisnsnnssarscvensorndennnestscensnivadacacirilensovsndaansanssnvaesendins 49 5 4 Case 3 Program image into FLASH by XModem vasiicscssnssiwsssnsresvaconevansaenevevencaneavveatoveivaansaansienrdereesnesatetanvaavensies 52 5 5 Case 4 Program image into FLASH by TFTP syssspycccstessincsactatansey atissseaps ussansesancsan yaueanetsetsinetaaseonniscoameiesyneaeatis 54 6 Update Bootloader siiicar aE a aA a AE a A E a 56 6 1 Method 1 Update by updater bin via xmodem or TFTP ec eccecceescesseseeeeseeseeseeceecseeseneeeesecseeseeeeessesseeeeaeens 56 6 2 Method 2 Upgrate with xMOdeM DIN ees sseesesesesceeeseseeceseeeesesacseeeescseseeacseeecseeeesceesacseeeeaeeesaceesaeeeeeeaeentaees 57 6 3 Method 3 Update by Updater Bin Wied TAG vessesininipsavrasctasensntanieinaslaabinatsaoninnedaatonspodeianentaainasyieasipivenseranenenr 58 7 Motto Use Magic Terminal vc cic csccssiiecsecsstseseasieestesssueosnasceesnescavcacwna ives touccueatwtosveatesadecsavtostenusa std csaub swbesvasdecssubssseodtaaddostesecveas 58 SPAO ea eae Ree A err ee ee ee ety rem A 62 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 5 1 The W90P710 Boot Loader WBL Once install on the target board the W90P710 Boot Loader
27. distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 24 2 13 SET Set the boot information block SYNOPSIS SET mac addr ip addr dhcp 0 1 cache on off buffer base size baudrate UART baudtate sn serial number DESCRIPTION The boot information block is used to store the basic configuration of the bootLoader It includes the Ethernet port used by TFTP server or USB configuration for bootloader supports USB upload the MAC PHY chip the Ethernet MAC address the IP address cache ON OFF and boot loader buffer address The system must be rebooted to make the new setting be valid 2 13 1 MAC Address This is the network address for the MAC EXAMPLE bootloader gt set mac 00 11 22 33 44 55 or bootloader gt set mac 001122334455 2 13 2 IP Address This is the fixed IP address EXAMPLE bootloader gt set ip 192 168 1 1 2 13 3 DHCP Client If this option is enabled the IP address used by the WBL will be obtained from the DHCP server If it is disabled WBL will use fixed IP address For example Disable DHCP client The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader
28. e information includes the version number board information and processor name EXAMPLE bootloader gt i The WBL relevant information would be shown on the terminal The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 16 2 7 MX Download to system memory by Xmodem SYNOPSIS MX download address DESCRIPTION Use this command to download an image into DRAM on the specified address The WBL uses the XMODEM protocol to communicate with the host computer through the serial connection After the XMODE download procedure starts the WBL will continue to prompt C character on the console At the same time user should select a image from the host PC to be downloaded If the user wants to cancel the downloading procedure press Ctrl x to stop it To download a file into address 0x8000 1 Type mx 0x8000 at the prompt Or simply type mx and WBL will prompt for the download destination address simply type ENTER key to use default address 0x8000 2 Use the Transmit File command of your terminal emulator to send the file If the emulator has more transfer options use the XMODEM protocol EXAMPLE bootloader gt mx 0x8000 Press Ctrl x to cancel CCCCCCCCCC Download successed 2 8 MT Download
29. e intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A
30. e updater axf executed the updater information would be shown on the terminal screen through the serial port If it doesn t show anything on the terminal screen please check if the init axf is executed correctly and the hardware environment 5 Ifthe updater axf is executed correctly please reference the step 4 6 of Method 1 to update the bootloader RON 7 Hot to Use Magic Terminal Setup Install both XUSB driver and Magic Terminal before plugging target board to PC Usage Weicome Izxu lt gt Magic Terminal pro 1 0 for Win9X WinMEsWin2000 XP CommPort Yiew Capture Options Help Oo oxp hace Open Close Hide Find Capture Slop Clear A You can add files here File list aa a RS Param with running ae S CO O E N A eee Add Add the file to the list The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond fe BA St 1110 0001 03 A Boot Loader User s Manual VERSION P Close Hide Capture Clear e TN Look in S NEW VOLUME E y F e m 3 linux bin E pos ima You can add fi Add Del Del All SetIP Filename linux bin Add Files of ype Bin Img Files bin irng v Cancel Start Stop Param with running Ready No Errors Port COM1 baudrate 115200 Secs Add successful Oo
31. eCtiOn niss3s ieivssesnsesestosteiessncsdesuasseovsevigusasteostosbeuesitncsaiucdeysoviesnevacustorepaebessntevioueseuenstaneeed 6 13 The WBLCOMMaANA Sissin a a E E AE E E A eatuae Toa stteeteutteeataecreats 7 2 The command setiof the Dot lodet isisisi EE EENE EAE EE AT NE N EA 8 2A H Show the command ISK roccie tiiin nE AEE EAREN ATEA AEREA EAEE EEREN 9 22 B Set Dad Tale ee en 10 2 3 D Display the memory CONTENTS eeeececsseeceeeececessecesceceacsceaesceeesceaeacscassceaescuseasssasseeesscseeassceassceasaceeeeseeeees 11 24 E Edit the system MeEmMOTY scissione aeeai E EEE EE seeranpudendsensazestasiacdigabsteussaensunesenrseeetaresedtty 13 PARCAT a ia alie AAE EE E A A E AA E EE AE EA ERE 14 2 6 1 SHOW WBL information nanaonan AO 15 2 7 MX Download to system memory by XMOAEM ee eecseeseseeeeseeeeceseeeeseseeseseeecseeeeaceeeseseeeeseeeeaceeeceeeeeaeeeeaeeeeees 16 2 6 MT Download to system memory by TIFT P7AUSB scssscsinsssconsictevsinsedavciactsssnatevessnendawnisbecamaasnennenemanseavenaens 16 2 9 FX Load an image into flash Dy XMOCEM ecsessesseceeseeeseeeeseseeseseeeseseeseseeecsceeeacsesseeeeeeseeesaceeseeeeeeeaeeetaeeeeees 18 2 10 FT Load an image into flash by TFT P AUSB isssisssssssidseavcradsssvavennseneatisrwdinsbavednevessuednsanindaencenndausonnrdarasseadoratneviens 20 211 GE CODY IIE ION Yes caensiingeseistsnineipedtswanseanansiveasinosiv clave ivnanexenda ea aaan i oiar Ea aeai EAEAN aE akoer aisa 22 2126S Listthe ima
32. ected 00 00 16 T100 115200 8 N 1 SCROLL CAPS Num Capture Print echo Please press h for command reference The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp Boot Loader User s Manual VERSION 5 2 Case 1 Download an image to memory by Xmodem DESCRIPTION Download demo bin to memory 0x8000 Command mx 0x8000 Screen shot File Edit View Call Transfer Help 115200 HyperTerminal _ a lox ole sl 3 alal el gt Boot Loader Configuration TFTP server port Network phy caip MAC 0 Address IP 0 Address MAC 1 Address IP 1 Address DHCP Client CACHE BL buffer base BL buffer size bootloader gt mx 0x800 Press Ctrl x to cancel s cee MAC PHY 00 00 CC DD AA 11 192 168 0 228 00 00 CC DD AA 12 192 168 0 228 Enabled Disabled Ox00300000 Ox00100000 d Press ESC to enter desug mode WOOP710 Command Shell v0 1 Rebuilt on May 29 2003 at 09 27 14 VT 100 Connected 00 00 08 115200 B Ne1 SCROLL NUM jCapture Print echo The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A Winbond Electronics Corp
33. eeseeeeseseeseseneeseeeeaes 32 2 21 CACHE Setting cache ccccccsccsssecssesessssseseseccscsusesesesesssacscesasssasscecsnescsuessecsuasssacasesascsasscscesassessecesendsasasesesesssers 33 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond He HH Ag 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 4 2 22 UNZIP Decompress the image eeeceesseeseceseeeeseeeeseseeseseseeacecescseeesececacsesecseseeseseeacsesseseeeeseeeeacesaceeeeeaeeeeaeeeeees 34 2 23 ATTRIB Change the image AULMIESIILIONN sss sesceecneeoueceuascamesuies hice sean died deinctanteae oasaetadsdametstdsndastuasenaeemcnseoaneaatss 35 3 The FLASH ROM map of the WBLsi cc iccccciestiecatessseosiasioeseuesoneosnasceosboveeveauaostestouccueneviostessbbsesnavaestaotbansoenevsssvecstaiceensveedvens 36 3 1 W90P710 Boot LOad el 6 sits csceecsseesartecrtee lives cites neteestaee la a r E E S EAE N E E Ea EEEN eae 37 oS al attcle om 0 beersernerreeennerreererrceeererecerreecrecpeencrere reer cerrenereereternie serecrerttrrrersreererrerere arc re rereeerrerceer tre eevee erreereterrreer terre 37 3 3 USGL IMa JES essieu oeenn Eee ERNES eE TEE E E EE E A EERO veer us EELEE ass enaseoataans easeeangabosmaewetens teats 37 xe a an a a a A A rere ners eT meres ee fee te eperer ee 38 3AA POO ter mororooo REEE
34. ge Image name The name of the image up to 16 characters Image base address The actual start address of the image on FLASH Image load address The final address when the image executing it maybe the RAM or FLASH address If the final image is executed on FLASH the Image base address and Image load address should set to the same address Image attribution The attributes of the image The WBL will use these attributes to decide how to process the image on loading it Such as coping it to memory executing it or decompressing it to system memory To load an image into flash 1 Decide the image number image name image base image load address and image attributes Ex 1 demo_image 0x7f020000 0x8000 acx 2 Type fx 1 demo_image 0x7f020000 0x8000 acx at prompt 3 Use the Send File command of your terminal emulator to send the file If the emulator has more transfer options use the Xmodem protocol bootloader gt fx 1 demo_image 0x7f020000 0x8000 acx Press Ctrl x to cancel CCCCCCCCCCCCCCCCC The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 19 Flash programming The above information is the exclusive intellectual property of Winbond Electronics and shall not be di
35. ges in the FLASH receno a E E E S EE RTE ETETA ER 23 2 13 SET Set the boot information DIOCK oo eee cece ceccsccssccssccssccssccssccssccssccssscssscssecssscsesessecesscessesscssesesseesssessess 24 213 L MAC Adress wicisseisiciascelicisdes iiasats E veevavae ses iubuescesauuuaea AT E A A 24 213 2 AP ACIS evssivesdsisvecsledsvweddsdsvecsleduvest E a E E yasnac act evedsategedind eoutaeatoqesied E Ea 24 2A 3 3 DH CPi CHENE riae enei E savevessdaveviatscvavsselavovans sevebund OE E E E E E EE 24 2 TOA Cache crnini E EAA A EEE A REAREA 25 213 3 BL Dumler B s vicisccoeccisecevesseeecesvsdenchs ETA E E A E NE AEE E E EAE N E E O EEES AEAT 25 2 13 6 BL buffer SIZE siruina a a a a alee HA an 25 243 7 Default Baud Pate nc casccesccssivescedsavsecessucatacsdesseaves tease cbauats E E e E E ETE EE ETE ETOS 25 213 8 Seral MUMBEL onni a 26 2139 USB rrna AA EE N E 26 2 15 CHK Check the FLASH SpaCE iures e aE EEEE ARE TEE E TEE EEES 27 ZAG RUN Execute IMA E asninn ea E RE EA EE EE EE E RE EE EE EEE 28 2 17 Del Delete the image or FLASH block 0 0 ecccecssessesesseseseesesesseseseeecseseeceseeeseseesesecseseeceseecaeeeeseseeesseneeseeeeees 29 218 MSE R FillMEmMO ae a E E E E E E T E EE 30 2 19 TERM Change the debug channel scviveswsssivenssoanivansaanvnsa cesiapauneatiovanvaananentetnesvuesnoianshanniannsunianstainentantuniaastannterneiivs 31 2 20 BOOT Reboot the system occ ecccsesessesesesseseseseeceseseesesseseseeseseseseseecseseesesesecsesecssseeseseesese
36. ion from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 30 2 18 MSET Fill memory SYNOPSIS MSET w W H h B b saddr size value w W Word alignment h H Half word alignment b B Byte alignment saddr Start address to be filled from size Size of the memory to be filled value The vaule to be filled into memory DESCRIPTION The MSET command fills a block size of memory with the specified value This value could be word half word or byte There options are w h b The default is word EXAMPLE bootloader gt mset 0x8000 0x400000 0x12345678 Fill 0x12345678 to address 0x8000 by word 4 bytes with the length 0x40 The memory contents should become Displaying memory at 0x8000 00008000 12345678 12345678 12345678 12345678 xV4 xV4 xV4 xV4 00008010 12345678 12345678 12345678 12345678 xV4 xV4 xV4 xV4 00008020 12345678 12345678 12345678 12345678 xV4 xV4 xV4 xV4 00008030 12345678 12345678 12345678 12345678 xV4 xV4 xV4 xV4 bootloader gt mset b 0x8000 0x40 0x1234 Fill 0x1234 to address 0x8000 by byte with the length 0x40 The memory contents should become Displaying memory at 0x8000 00008000 1234 1234 1234 1234 1234 1234 1234 1234 4 4 4 4 4 4 4 4 00008010 1234 1234 1234 1234 1234 1234 1234 1234 4 4 4 4 4 4 4 4 00008020 1234 1234 1234 1234 1234 1234 1234 1234 4 4 4 4 4 4 4 4 00008030 1234 1234 1234
37. lash programmin bootloader gt ft Stop bits 1 a Find image 1 exi a Do you want tod Flow control None v in TETE client 10s Download OK fil D 2 Flash programmin Restore Defaults e bootloader gt m s Disconnected A al lt og Draws Ts autoshapess OO 48 S 4 A Page 150 Seci 1525 atem n6 coli Rec irk EKT ove Engish U S Ox A amp wll If the WBL is connected correctly to the host computer there are some messages shown on the terminal emulator when system startup The WBL will wait for 3 seconds before loading images Press ESC key or B to enter bootloader mode before it time out The boot screen of WBL is shown as the followed figure The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 115200 HyperTermina File Edit View Call Transfer Help lolx BS Boot Loader Configuration TFTP server port Network phy chip MAC Address IP Address DHCP Client CACHE BL buffer base BL buffer size bootloader gt _ Press ESC to enter dedug mode W9OP710 Command Shell v0 1 Rebuilt on May 26 2003 at 10 50 20 MAC 1 PHY 00 00 CC DD AA 11 192 168 0 228 Enabled Disabled Ox00300000 0x00100000 conn
38. lient CACHE BL buffer base BL buffer size MAC 1 PHY 00 00 CC DD AA 11 192 168 0 228 00 00 CC DD AA 12 192 168 0 228 Enabled Disabled Ox00300000 Ox00100000 Press ESC to enter desug mode WSOP710 Command Shell vO 1 Rebuilt on May 29 2003 at 09 27 14 bootloader gt mt 0x 00 Wait for auto negotiation complete OK 100MB Full Duplex DHCP DISCOVER DHCP REQUEST DHCP ACKed IP Address Subnet Mask Default Gateway gt 20 23 26 135 EA Zoe Ol 10 EE Enter in Windows command prompt C gt tftp i 10 3 28 115 put demo bin Transfer successful 527192 bytes in 1 second 527192 bytes s Or enter in Linux command prompt wschang0 Linux images tftp 10 3 28 115 tftp gt bin tftp gt put demo bin Sent 527192 bytes in 1 seconds tftp gt The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A Winbond Electronics Corp Boot Loader User s Manual VERSION 115200 HyperTerminal a fel pe File Edit View Call Transfer Help ls 23 cl el IP 0 Address 192 68h 228 MAC 1 Address 00 00 CC DD AA 12 IP 1 Address 192 168 0 228 DHCP Client Enabled CACHE Disabled BL buffer base Ox00300000 BL buffer size Ox00100000 Press ESC to enter dedug mode W9OP710 Command Shell v0 1 Rebuilt on May 29
39. om Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 33 2 21 CACHE Setting cache SYNOPSIS CACHE on off on off Enable Disable cache f Flush cache DESCRIPTION This command is used to enable or disable the cache The options are on Enable the cache off Disable the cache EXAMPLE bootloader gt cache on The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 34 2 22 UNZIP Decompress the image SYNOPSIS UNZIP ImageNo DESCRIPTION The UNZIP command can decompress an image of the given image number into system memory according to the load address recorded on the image footer EXAMPLE bootloader gt unzip 1 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 35 2 23 ATTRIB Change the image attribution SYNOPSIS ATTRIB ImageNo a c x f z a Active image c Image needs to be copy to RAM x Executable image f File system image z Compressed image DESCRIPTION The ATTRI
40. programs are saved as image file format in the FLASH ROM The image file can be automatically loaded to DRAM for execution after power on The WBL provides program download and FLASH write functions for user to write the programs into FLASH ROM Besides a program can be directly downloaded to DRAM for execution or downloaded to the FLASH ROM in image format The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 6 1 2 Hardware Connection To get message or send command to the WBL user needs to run a terminal emulator program on host PC The connection between the terminal and the WBL can go through the serial port or TCP IP network Serial Port Connection The serial port is the default communication channel with the host computer Network Connection The network connection is used by the alternate communication channel and TFTP download function 1 2 1 Setting up a serial connection A general terminal emulator program such as Windows HyperTerminal or Linux minicom could be used to communicate with the WBL Before open the terminal connect the W90N740 target board and host PC with a serial cable The interface setting of the terminal should be configured as below Baud rate 115200 Data bits 8 Parity
41. quires about 50KB memory space to accomplish the function 4 2 4 Stack and heap space for semihosted program A 128KB stack and a 128KB heap are required for the semihosted program to be executed The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 43 5 Download procedure examples 5 1 Case 0 How to enter debug mode To communicate with the host computer you need to set the terminal emulator to the proper serial port setting In Windows HyperTerminal the serial port setting illustrated as the following figure It should be set to baud rate 115200 8 data bits no parity 1 stop bit no flow control ty WS9OP710 Boot Loader cioc pases Word o _ l2 x PY 115200 Hypertemind ajiz Fie Edit View Cal Transfer Help 3 ete Dw amp l J 12e ofa 2l ot index 115200 Properties A 2 x z Connect To Settings bootloader gt ft om _ COM1 Properties 2 x Wait for auto ne Be 100MB Full Dup PonSettings DHCP DISCOVER DHCP REQUEST DHCP ACKed 3 IP Address Bits per second 115200 X Subnet Mask Default Gateway gt TETP client 10 SoG i Download OK fil ae Parity None X z F
42. roperty of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 8 2 The command set of the boot loader The command interpreter accepts users commands to do the specified operations The following table lists the legal command set Commands can be accepted in uppercase or lowercase Memoyco SSS S Memory copy lt x ya ep s List the images in the flash Setting boot loader configuration SET for help aju Check the flash Ojo Z Uneipimage OO Unzip image B Change the image attribution a DEL the image or flash block alw D Q Tj H The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond He HH Ai 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 9 2 1 H Show the command list SYNOPSIS H DESCRIPTION This command is used to list all valid commands provided by the WBL EXAMPLE bootloader gt h All commands will be shown on the terminal emulator with brief descriptions The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced
43. rosoft Word Ele Edit view Insert Format Tools Table window Help iE ou aar mol u mom ela m la laon fa Enarma Timan haw Naman 115200 HyperTerminal Fle Edt view Cal Transfer Help 15 Boot Loader Configuration 16 1 174 IP 0 Addres MAC 1 Addre _ Filename TP 1 co 7 DHCP Client deme bin rowse CACHE Boed BL buffer E moden S BL buffer Press ESC to enter WOOP710 Command she Gose Cancel_ bootloader gt mx 0x8000 PressCtrl x to cancel i s CCEEECCECCEEECEECCCEECECECECECEEECECECEEECEECECEEEECCEECCEECCCECecEcecEecececececec cecccecececececceccceecececeececececcecececcecccecccceceeccecccccccecececeecececececee RC CCECCECCCEECECECCECECOCECOCeCOroChrecceecececececcceccectccecececs AO NBS 20 1 1214 e23 1 22 flisz00e N 1 SCROLL CFs NUM Capture Printechs fatezacm mna Coli Rec rk ject ove Engish us Ok The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A Winbond Electronics Corp Boot Loader User s Manual VERSION Press ESC to W90P710 comme Ejen bootloader gt Press Ctrl x ececccececeeeceeececceeeeeeeeececccccccececcccccccccecccccccccccececececececcccccce eccecccecccc_ a g z a 8 a amp The above information is the exclusive intellect
44. s Corp Boot Loader User s Manual VERSION Welcome izxu lt gt Magic Terminal pro 1 0 for Win9X WinME Win2000 XP CommPort View Capture Opticns Help Se SA FS OM OS jus Open Close Hide Find Capture Mlinux bin pos img Welcome Izxu lt gt Magic Terminal pro 1 0 for Win9X WinME Win2000 XP CommPort View Capture Options Help mee ie o_o Find Capture Stop pos img The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eB aE 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 62 Ctrl F2 Delete the command in the command line 8 FAQ s Q Why does the boot loader hold on FLASH programming and stop to response my command when download an image into FLASH A If the FLASH has unknown data it may cause the FLASH programming failed You can use the del all command to erase all FLASH blocks if you find any FLASH programming failed condition Q Why does my image not work after download into the platform by TFTP am sure the image is ok A Please make sure that the TFTP client is in binary mode In windows you must use i option to switch to binary mode In linux you must use bin command of TFTP client to switch to binary mode The above information is the exclusiv
45. sclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 20 2 10 FT Load an image into flash by TFTP XUSB SYNOPSIS FT ImageNo ImageName base address exec address a c x f z a Active image c Image needs to be copy to RAM x Executable image f File system image z Compressed image DESCRIPTION This command downloads an image into memory by TFTP XUSB and then programs it into FLASH As part of the programming process the WBL will build a appropriate FLASH image footer In order to build the footer information the relative information of the downloaded image must be specified The information is Image number A unique number for the image Image name The name of the image Image base address The actual address of the image on flash Image load address The final address when the image executing it maybe the RAM or FLASH address If the final image is executed on FLASH the Image base address and Image load address should set to the same address Image attribution The attributes of the image The WBL will use these attributes to decide how to process this image on loading Such as copying it to memory executing it and decompressing it into system memory To load an image into flash 1 Decide the image number image name image base image load address and image attri
46. sed to store the boot information block If the FLASH ROM on the system is larger than 128KB the other space can be used to store the user s images The FLASH ROM map is shown as follows Figure 1 Boot Loader Flash Map 0x7F000000 0x7F010000 0x7F020000 0x7F000000 Flash size limit The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 37 3 1 W90P710 Boot Loader The W90P710 Boot Loader must be placed on the offset zero of the FLASH For the W90N740 target platform the boot ROM is remapped to 0x7F000000 Therefore the boot loader s starting address is 0x7FOO0000 3 2 Image 0 All images in the FLASH ROM have an unique number to identify themselves The image 0 is a special one which is used to store the boot information The boot information including length Indicating the length of the information block fee fa Identify the information block mae Je oo The network address for MAC The IP address for network interface The last two bytes are reserved Ce freseved OT SSC SC S Ss If the image 0 could not be found during power on initialization the WBL will create it at the address 0x7F010000 A 64KB FLASH memory size starts at 0x7F010000 should be reserved for image 0
47. stem memory IMAGE_FILE 0x8 f The IMAGE_FILE attribute is used to indicate this image is a file system image The WBL doesn t do anything for this image IMAGE_COMPRESSED 0x10 z The IMAGE_COMPRESSED attribution is used to indicate the image was compressed The WBL will decompress it to its load address At present the WBL only supports the ZIP format files Some of the above attributes could be used together For example IMAGE_ACTIVE and IMAGE_COMPRESSED and IMAGE_EXEC will cause the WBL to decompress the image into system memory and then execute it Therefore several attributes can be set to be active according The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 4 Sie 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 40 to the requirement The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 41 4 The WBL memory map The WBL requires two memory buffers to execute The first one is a 32KB memory blockstarting from address 0x0 The other one is a buffer area defined by the user The runtime memory map of the WBL is illu
48. strated as follows Figure 3 WBL Memory Map Buffer base defined by user Buffer sze defined by user l 4 1 32KB memory The WBL requires the 32KB memory at low address from 0x0 to 0x7FFF The memory is used to be as stack heap and code section of bootloader The user program can t use this area if it wants to return to the WBL after termination 4 2 Boot loader memory management The WBL defines a buffer for special usage This buffer provides a larger memory space for the WBL to accomplish some special functions The detailed description is as follows The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Side 1110 0001 03 A E Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 42 4 2 1 Backup image 0 When setting the boot information the free space in image 0 can be used to store application data The WBL must backup the whole image 0 to prevent data from lost when it programs the boot information into FLASH The buffer required to backup the image 0 data is 64KB 4 2 2 Buffer used by network connection The network connection needs about 64KB memory space to be as the net buffer Once the WBL uses the network functions such as TFTP server or network console this buffer must be provided 4 2 3 Buffer used by decompression The decompression function in the WBL re
49. to system memory by TFTP XUSB SYNOPSIS MT download address DESCRIPTION Use this command to download an image into DRAM to the specified address The WBL will start a TFTP XUSB server to receive the image Note that the transfer mode must be binary The IP address of the TFTP XUSB server could be ether fixed or obtained by using DHCP protocol The actual method is according to the setting of the boot information block To download a file into 0x8000 1 Type mt 0x8000 at the prompt Or simply type mt and WBL will prompt for the download destination address simply type ENTER key to use default address 0x8000 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga gt 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 17 2 Use the tftp usb client in the host computer to send the file It depends on which version of bootloader is in FLASH A tool Magic Terminal helps to make send the file more confortable Refer to the part 7 of this ducoment for detail information Using TFTP The tftp client must be set to binary mode to transfer the file Such as tftp i 10 3 29 41 put hello exe i is used to set to binary transfer mode bootloader gt mt 0x8000 Wait for auto negotiation complete OK 100MB Full Duplex DHCP DISCOVER
50. ual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kagwa 1110 0001 03 A Winbond Electronics Corp Boot Loader User s Manual VERSION 5 3 Case 2 Download image to memory by TFTP DESCRIPTION Download demo bin to memory 0x8000 Command mt 0x8000 Screen shot wk lolx File Edit View Call Transfer Help gt Boot Loader Configuration TETE server port MAC 1 Network phy caip PHY MAC 0 Address 00 00 CC DD AA 11 IP 0 Address 1 292 968 0228 MAC 1 Address 00 00 CC DD AA 12 IP 1 Address 192 168 0 228 DHCP Client Enabled CACHE Disabled BL buffer base Ox0d0300000 BL buffer size Oxo00100000 Press ESC to enter desug mode WSOP710 Command Shell v0 1 Rebuilt on May 29 2003 at 09 27 14 bootloader gt mt 0x8003_ Connected 00 00 06 T100 115200 8 1 SCROLL CAPS NUM Capture Print echo The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Kga 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAGE 50 115200 HyperTerminal File Edit View Call Transfer Help Ole a3 cls al Boot Loader Configuration TETP server port Network phy caip MAC 0 Address IP 0 Address MAC 1 Address IP 1 Address DHCP C
51. xd00000 ac Connected 00 00 27 WT100 fiisz00e A 1 SCROLL CAPS NUM Capture Print echo Please refer to Case 1 for the detail of Xmodem download procedure The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A Winbond Electronics Corp Boot Loader User s Manual VERSION 115200 HyperTerminal ae File Edit View Call Transfer Help Ol ol 3 ales ox T Boot Loader Configuration TETE server part MAC 1 Network phy caip PHY MAC 0 Address 00 00 CC DD AA 11 IP 0 Address 1 92 068 007 228 MAC 1 Address 00 00 CC DD AA 12 IP 1 Address 192 168 0 228 DHCP Client Enabled CACHE Disabled BL buffer base Ox00300000 BL buffer size 0x00100000 Press ESC to enter desug mode WSOP710 Command Shell v0 1 Rebuilt on May 29 2003 at 10 12 50 bootloader gt fx 1 romfs 0x7f020000 Oxd00000 ac Press Ctrl x to cancel CESECECEEE Flash programming bootloader gt _ Connected 00 02 00 VT 100 115200 8 N 1 SCROLL CAPS Num Capture Print echo aA The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond eH Aide 1110 0001 03 A Winbond Electronics Corp NO Boot Loader User s Manual VERSION 1 1 PAG
Download Pdf Manuals
Related Search
Related Contents
Réussir un CV gagnant 279 1高性能 2高機能 3選べるシステム構成 Lexmark X215 MFP Guida per l`utente Private mobile radio with twin charger FX-112 INSTALLATION GUIDE Manuale d`uso Copyright © All rights reserved.
Failed to retrieve file