Home
Avnet Programming Utility User Manual
Contents
1. BPI Server Read 3 4 7 Verify The Verify button will not activate until the BPI Server has been successfully downloaded and a Flash file has been specified This command reads the contents of the SPI memory for bytecount bytes from the specified offset and compares the data read with your file No data is overwritten in this operation but you must specify a byte count or you will receive the same warning message as seen above in the Read command Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 34 of 42 Rev 1 2 03 21 2009 Released A progress bar displays to show the status of the operation Results are reported in the Receive Console highlighted in the illustration below Receive Console Chip Erased successfully AVT gt BPI Data Written AVT gt BPI Read complete Ending Address Fead was AVT gt HPI validated One so 59920 Figure 40 BPI Server Verify 4 0 Known Issues 1 On Windows systems utilizing a Unicode character set serial communication is disrupted since the control characters are modified by the operating system before transmission The result is that AvProg is unable to communicate with the Cypress PSoC device on the Spartan 3A Eval board To correct this problem you must temporarily change the default character set on the host system to English Follow the instructions be
2. 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 11 of 42 Rev 1 2 03 21 2009 Released 6 Click Browse Install From Disk l x Insert the manufacturers installation disk and then OK make sure that the correct dive is selected below Cancel Copy manufacturers files from Figure 11 Hardware Wizard Install From Disk Dialog 7 Browse to the Driver folder under the installation directory If you installed in the default location this will be C Program Files Avnet AvProg Driver Select USBcdc_XP_Vista inf and click Open Locate File Look irr Driver we 4 Mp Recent Documents Desktop ame r My Documents My Recent if My Computer Documents 4 3 5 Floppy 4 Se Local Disk C 3 Program Files Sy Avnet G vProg amp tite uae DWD Drive D a CD RW Drive E My Documents 9 Shared Documents Eva s Documents My Documents PE Sy test s Documents My Computer a My Network Places 9 Unused Desktop Shortcuts a File name USBede lt P Vista inf a My Network Files of type Figure 12 Hardware Wizard Locate File Dialog Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 12 of 42 Rev 1 2 03 21 2009 Released 8 Click OK Install From Disk In
3. AvProg Default Installation Folder Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 7 of 42 Rev 1 2 03 21 2009 Released 2 2 Installed Files This section contains a description of the files and folders in the installation directory Appface dll A third party library providing skinning services to the host interface This library is bound to the host interface executable and cannot be used with any other program Skins allow a standard Windows application to be customized by applying non standard colors and controls such as gel style buttons AvProg exe The Avnet Programming Utility executable file The application can be launched by double clicking the file in windows explorer or by using the Windows Start menu to select Programs Avnet AvProg Avt_s25fl128p 64kb sfh This is a text file containing specifications for the Spansion serial flash used on the Spartan 3A Evaluation Board The AvProg program can access any sfh file in the installation directory to obtain the device specific parameters necessary for serial flash programming This file can be used as a template for creating a new file to support a different serial flash device without the need to modify the AvProg executable Blink4 bit A pre built reference design for the Spartan 3A 400 FPGA On download this design simply blinks the 4 user
4. Clear Receive Mode Hex incoming characters on the serial interface are displayed in hexadecimal format The Clear buttons can be used at any time to erase the entire contents of their respective consoles Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing Released 22 of 42 Rev 1 2 03 21 2009 3 2 Configure FPGA Mode Controls To program the FPGA you must 1 Connect to the PSoC on the board Click the Connect button 2 Specify a bitstream file to download 3 Press the Configure FPGA button 3 2 1 Bit File Controls To specify a bit file you must activate the Select Bitfile dialog This can be done from the File menu by clicking on the Browse button or by double clicking in the Bit File text box To display the Select Bitfile dialog click the Double click in the text box Alternately Browse Button or you can use File Select File in the main menu Bit File FPGA Operations None Selected 7 Figure 20 Bit File Controls Brons When the Select Bit file dialog displays navigate to the desired file select it in the window and click the Open button If the file is a valid bit file the FPGA Device will automatically be filled in as shown below Bit File FPGA Operations Device no Bit file is for a Spartan 3A 400 device Bit file selected Figure 21 Bit File ready
5. Show compatible hardware Model Aynet_Sps4400_ Demo ity This driver 13 not digitally signed Tell me why driver signing is important 10 Click through any warning dialogs that may appear such as the one shown below Hardware Installation A The software You are installing for this hardware 4ynet 5p30400 Demo has not passed Windows Logo testing to verify its compatibility with Windows lt P Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anpa STOP Installation Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 18 of 42 Rev 1 2 03 21 2009 Released 1 Once the new driver has been installed a screen similar to the one below will appear with the name of your new device Click Finish Hardware Update Wizard Completing the Hardware Update Wizard The wizard has finished installing the software for F Avnet Sosa400 Demo Click Finish to close the wizard Back Cancel 12 Your new device will now be listed in the Device Manager Close the Device Manager E Computer Management o
6. AVT gt Figure 36 BPI Server File Program Confirmation Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 33 of 42 Rev 1 2 03 21 2009 Released 3 4 6 Read The Read button will not activate until the BPI Server has been successfully downloaded and a Flash file has been specified This command reads the contents of the SPI memory for bytecount bytes from the specified offset and copies the data into your file A warning message will post each time this command is activated to alert the operator that the specified file is about to be overwritten COIG DAN mBPlread bin will be overwritten Figure 37 BPI Read Overwrite Warning Dialog Click OK to continue and Cancel to abort the operation If you fail to specify the number of bytes to read you will receive the following message weaning _ Enter bytes to read and try again Figure 38 BPI Byte Count Warning Dialog Enter a byte count in the Bytes to Read Write field and try the operation again A progress bar displays to show the status of the operation Once the read is complete the results are written to the Receive Console shown highlighted in the illustration below Recerve Console Chip Erase complete verifying Chip Erased successfully AVT gt BPI Data Written AVT gt BPI Read complete Figure 39
7. LEDs on the Spartan 3A Evaluation board Use AvProg to download this simple bitfile hardware only no processor to test the USB connection between the host and the board Bpi_server_v036 bit This is a MicroBlaze design that is loaded into the FPGA when AvProg is placed in the BPI Programming Mode In this mode the host program acts as the client and communicates with the server to perform BPI operations such as ID check Erase and Programming AvProg will check the version of the server once it is running to ensure it is compatible with the version of the host software you are using Ledflash4_cclk_6 bin The Blink4 bit design formatted for programming in the BPI flash Spartan3AEval_PSoc_Firmware_v101 hex This is the software that runs on the Cypress PSoC It is pre loaded to the device so there should be no need to use this file If at any time you change the firmware in the PSoC you can use this file to restore the original factory settings which are required to communicate with AvProg The host program will verify that the correct version of the firmware is installed before any communication with the board can be initiated by the operator ST6UNST LOG This is a log file created by the installation package to be used by the Windows Add Remove Programs Utility when uninstalling this package Do not modify this file in any way However if you experience issues with the installation such as missing files you can look at the contents of
8. Nest to continue 4 Black Cancel Figure 6 Found New Hardware Wizard Dialog Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 9 of 42 Rev 1 2 03 21 2009 Released 2 Select Install from a list or specific location Click Next Found New Hardware Wizard This wizard helps you install software for Aynet Sps Demo o lf your hardware came with an installation CD 2 or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended f Install from a list or specific location Advanced Click Next to continue lt Back Cancel Figure 7 Hardware Wizard for Avnet_Sp3A_Demo Dialog 3 Select Don t search I will choose the driver to install Click Next Found New Hardware Wizard i Please choose your search and installation options C Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local path and removable media The best driver found will be installed IY Search removable media floppy ED AOM F include thie location tn the search E Program Files ynet PCle_Pert Browse f Don t search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the
9. driver you choose will be the best match for pour hardware lt Back Cancel Figure 8 Hardware Wizard Search and Installation Dialog Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 10 of 42 Rev 1 2 03 21 2009 Released 4 Click Next Found New Hardware Wizard Hardware Type Select a hardware type and then click Next Common hardware types Show All Devices 2 ae 1 394 Debugger Device 7 61983 Device Class Sa AVC Device Class y Batteries Bluetooth Radios 4 Computer Se Disk drives a Prenda ardarbareo x lt Back Cancel Figure 9 Hardware Wizard Type Dialog 5 Click Have Disk Found New Hardware Wizard Select the device driver you want to install for this hardware S Select the manufacturer and model of your hardware device and then click Next IF you have a disk that contains the driver pon want to install click Have Disk Manufacturer Standard CD ROM drives rT A CO ROM E force CODA E Standard IDE ATAJATAPI cor E Standard keyboards zy Standard system devices 4 als Eco ROM ee IMAP settings 0 1 arp Ch Dbd Menam kA A O kkm O Ed Thiz driver is digitally signed Have Disk Tell me why driver signing ls important z Back Cancel Figure 10 Hardware Wizard Have Disk Dialog Copyright
10. et a ey cP Src EC ce SO eee ee 27 Nb rs MM A ree Te PCT nn tr NS e rer RO I ett renee Ren eee re OR ee ee eS eee re eee ee 28 Ut ae pec A Gy cheese a se dette ter aac a des eta eee eee ai een oe tenseeeet co eamnee 28 A A A ee oe Oe 29 3 4 Program Parallel BPN Flash Control A A do aid 29 SAT PPP o 30 e aa aad athaa catnestc adap tecndince a 31 res eam IDA ri 32 A A e A a nace Rectal Aca saree tees 33 gao A er eR Ne Tc Ne oe Or eee ree 33 A A oe rege ne eee RT Oe eR eo ete ee See ee re rer a Sree eee eee ere err 34 A A A e eee ee Cente ene ea ee ene ee 34 4 0 KNOWN S SESS so octet aces teres cates ao 35 5 0 Appendix File Format for Serial Flash Device SpecificatiON coccononccnnccconncnncononnnnnnononnnononnnnnnnnnonnnrnnnnnnnononrnnnnonannnnninnnns 36 6 0 Appendix Il AvProg Spartan 3A Eval Quick Start Guide cccccccoocnnnccnnnccconoonncnonnnononononenonnnonononnncnnnnnnnnnnnnnnennnnnnnnnnnnnnnnnnnnns 38 6 1 A e snes 39 6 2 Program ihe Spansion SPTEIAS Mestre ea ii E a E EEA 40 6 3 Program the Spansion BF liPlaS e a a a a a a N a 41 7 0 REVISION Fistor a a a 42 Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 2 of 42 Rev 1 2 03 21 2009 Released Figures FIgute AVREOg lAStallation Welcome DIO ii A AA a 5 Figure 2 AvProg Installation Setup Dialog A Rs ee Re ee a do 6 Figure 3 AVE ro
11. for Serial Flash Device Specification In SPI Flash mode AvProg will populate the device dropdown list with one element for each sfh file located in the installation directory The example file supplied with this package supports the Spartan 3A Eval board avt_s25f1128p 64kb sfh This file can be used as a template for supporting additional flash devices It can be opened using any standard text editor and each line contains a comment describing the purpose of the entry If you create your own sfh file it is recommended that you name the file to reflect the device type part number and size as has been done for the Spansion SPI flash used on the Spartan 3A Eval board If you follow the guidelines below you will be able to create a file to support a new flash device in AvProg 1 The file must be placed in the installation directory where the AvProg exe file is located 2 The file must have a sfh extension 3 Pneumonics for Flash opcodes begin in column 1 and are all four characters long all uppercase Do not change the four charcter pneumonics 4 Actual hexadecimal device codes begin in column 9 and all start with Ox You will need to edit the existing hex values to reflect the actual opcodes used with the new device The opcodes to support the Spansion S25FL128P serial flash with 64 KB sectors on the Spartan 3A board are shown on the following page Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademar
12. menu The flash sectors you are about to program must be erased before successful programming can occur If you are unsure click the Bulk Erase button to erase the entire serial flash Select the Spansion Flash Device avt_s25fl128p 64kb Click the Browse button and select a flash file to program Optionally change the offset from 0x0 to a location starting at a sector boundary Optionally change the number of bytes to program By default the entire file is programmed Click the Program button ae oe oS 2 Select SPI Mode 3 Optionally Erase Flash 1 Glick Connect 4 Select Flash Device 5 Select Flash file enc droga ning Lilia dd _ _ _ a a NN ey _ 3 Flash File SPI Operations blink4_bit ore om Flash Device A avt_s25f1128p_654kb ar ar No AVNE 1 Offset Hex Bytes to Write Read lectronics marketing i Lee Ox o 47342 Opti ES Mode Help serial Port E send Console fi Send Made Char Block ES Recelve Mode ASCII Receive Console SPI programming successful Hex 6 Optionally change the offset 7 Optionally change the size 8 Click Program To load the FPGA from the SPI flash location 0x0 place jumpers on JP4 MODE in positions 3 4 and 5 6 Cycle power to the board and the FPGA will program and execute any BRAM application included If your application has serial output it will be displayed in the Receive Consol
13. this file to determine the cause of the problem Driver USBcdc_XP_Vista inf This is an installation file for the USB driver for Windows XP or Windows Vista You will point the Windows Hardware Wizard to this file during the driver installation initiated the first time you plug the board into a new USB port on your host Drivenusbser_AvProg sys This is the driver file for Windows XP This file is referenced by the inf file during the installation Skins urf The Skins folder contains files used by the Appface DLL library to customize the look of the AvProg interface Do not change the location of this folder and do not modify rename or delete any of the files contained therein I this file is not found in the directory specified open the ST6UNST LOG file and search for sys The ACTION performed on the driver file during installation will be documented here and you may find this file was automatically placed in a Windows system folder Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 8 of 42 Rev 1 2 03 21 2009 Released 2 3 Uninstalling the Avnet Programming Utility To remove the Avnet Programming Utility from your host system activate the Control Panel from the Windows Start menu and select the Add Remove Programs Utility From the list of installed programs highlight Avnet Programming Utility clic
14. to Configure 3 2 2 Configure FPGA The Configure FPGA button will not activate until a bit file has been selected and the connection between AvProg and the board has been activated via the Connect button However once the button is active simply click it to initiate the programming sequence Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 23 of 42 Rev 1 2 03 21 2009 Released The following dialog will appear to allow you to confirm that the bit file was created for the device on your connected board If this is not the case click No to abort the programming sequence Click Yes to program the FPGA It is entirely up to the operator to verify that the bit file is correct for the device on the connected board DevicetoEro cyt al 2 Bittle 12 for a 3s400aft256 device le this correct Figure 22 FPGA Device Warning Dialog In most cases the FPGA will program and start running immediately AvProg writes a success message in the Receive Console and automatically switches from its default USB connection mode to a standard USB serial driver using the communications parameters specified earlier All output from the application will appear in the Receive Console If there is a failure during the programming sequence it is probably due to one of the following conditions 1 Programming succeeded but Do
15. when the erase is finished During the polling process a progress bar indicating the time to maximum poll count is displayed Under normal operation the device will erase before polling is complete so you will never see the progress bar reach 100 If the device does not erase in the maximum time allowed it is possible to increase the poll count by editing the sfh file See the sfh File Format Appendix for details Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing Released 27 0f 42 Rev 1 2 03 21 2009 3 3 4 Program The Program button will not activate until Communication between AvProg and the board has been established via the Connect button a Flash Device has been selected and a Flash file has also been specified Once the Program button is activated simply click to begin writing the file at the specified offset Valid programming can only occur when the sectors to be written have been previously erased It is entirely the responsibility of the operator to ensure this condition exists prior to programming Ibis pour responsibility to ensure the sectors you are about to program have been erased le this true Figure 26 SPI Program Erase Warning Dialog If the sectors have been erased click Yes To abort the programming operation click No Possible error conditions that may occur during progr
16. 5 GoHots E 5 HOMS 3 O 1386 O Inetput O IntelPRO 3 LEVEL2 Map Network Drive Delete Rename Properties 3 Disconnect Metwork Drive Computer Management Action View Window am ra e ll File p Help ER a Computer Management Local a de System Tools E j Event Viewer 4 Shared Folders H 8G Local Users and Groups ER Performance Logs and 2 Device Manager E ey Storage E E Removable Storage BF Disk Defragmenter A Be Disk Management ml Ej Services and Applications E MD SERVER Computer se Disk drives 3 Display adapters sab DVD CD ROM drives 4 Floppy disk controllers J Floppy disk drives 4 IDE ATASATAPI controllers Keyboards y Mice and other pointing devices Monitors 88 Network adapters b Other devices ated Ports esuk a aay H E H H H H H H ET apene Port OU F ECP Printer Port LPT1 EH 4 Processors a AL Sand wider and aama rontermllare Total Size Free Space 74 4 GB 4 Right click on the current entry for the Avnet Spartan 3A Evaluation board and select Update Driver Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing Released 15 of 42 Rev 1 2 03 21 2009 5 Select No not this time and click Next Hardware Update Wizard Welcome to the Hardware Update Wizard Windows will searc
17. Avnet Programming Utility User Manual AVNET electronics marketing Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 1 of 42 Rev 1 2 03 21 2009 Released Table of Contents 1 0 NAM OCUICTIO Nes A E E 4 2 0 a recientes egies Aso sss ea eng lige enc a aie ieee eek eal aes 5 2 1 Metalna IOSE SOM WON Cie sects ate ott tach iii llei la 5 2 2 Stallone ds do eer EE eee 8 2 3 Uninstalling the Avnet Programming Utility ici tienta 9 2 4 lastalling ASUS Driver o 9 2 5 Updating amexsing USB DIVER conri ni iaa 14 3 0 A e E E emer at cece mteicsun cre 20 3 1 Default Interface and COMMON CONtrOls zresa E 20 oes Mal Ment F antler ene ee eee eee ee eee 20 A ManMent OD OMS sarge eect hag E we seesUaeiada Mec eee nee sas ieee T 21 Sales MalMent ModS a o et oasemecaates 22 ele Mam Meny HeD xt sect sescti aceite crise dees igecech sree etic san beans sack sees ed o ade dos 22 9 1 Sen l Console CONTO Sueco stan il id acca iapeeinedeodsea inde 22 3 2 Gontigure EPA Mode OO Sd an ee 23 eb IBIS CONTO laos o aid 23 S2 e GA 2 ace Wee oe RE a Senn ee Se eee eee eee eee ee 23 3 3 Program SP liFlaS i GOMUOlS oo teh ance onsets E EE E EE does EE AE E TE 25 Sek Srl CONTO Sri A E A E eo cs 26 Bede WON COOK A e ey Alas aie eat e Andean dels uated enaet uate elie pa ohn ites 27 9 0 9 BUK nl E gt a Ro
18. EE EE EE TEE TEE EEE EE IE IET TE TEE HEEE IE IEEE E TE Type lt help gt for options AVT gt Figure 32 BPI Server Banner If you encounter any issues with the download process consult the Configure FPGA section of this document for potential solutions 3 4 3 ID Check The ID Check button will not activate until the BPI Server has been successfully downloaded Each flash family has a unique ID so it is always good practice to click the ID Check button once to verify that there is a good communication path between AvProg the BPI server and the Flash device The BPI server reports the result of the ID check in the receive console If the ID returned was not the value expected the message would indicate ID Test failed Receive Console AVT gt 1 Manufacturer Code 0 0001 Device ID 1 UsveVE Device ID 2 Dx2 210 Device ID 3 Olxg2 2 00 ID Test passed AVT gt Figure 33 BPI Server ID Check Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 32 of 42 Rev 1 2 03 21 2009 Released 3 4 4 Bulk Erase The Bulk Erase button will not activate until the BPI Server has been successfully downloaded To erase the entire flash click the Bulk Erase button AvProg issues the command to the BPI server and results are displayed in the Receive Console During the erase process the con
19. a a S 14 Figure 16 Windows Found New Hardware Message cccsesccccseeeeceeeeeeeeneeeeseneeeeeeeeeessaeeeeseueeeeaeueeesaaeeeeseeeeessaeeeessaeeeseeeeeesseeeeesaeeeseas 14 PIGUET AVPTOG Mitlal NING ACC cure iar ado 20 Figure 16 Communication Properties Dialog sais secs ooh Bench ASS Scns nds dt Bebeinde oan SM Agua a let beh E eck 21 Figure 1 9 Board nol Connected Warning Diadora ER E E E E O EE EEEE 22 Foure 20 Bit File Cont seieren td lee nad Sane dee 23 Figure 21 BtFilercady to COMM UNC osai a a a N e aaa eladaastecuecea eanteouedasdooaee 23 Fig re 22 FPGA Device Wanda als 24 FOE 23 AVRO SP IMO E iraia aa e a a cp a ae a E E E E a a Eaa 25 Figute 24 gt PELE CONTOS a a a as 26 Figure 25 SPI File Ready for Programming A AA A y i ae e ap A as Bos ain se E a ainai 26 Figure 26 SP I Program Erase Warning Dialog usina 28 Figure 27 SPI Read Overwrite Warning Dialog ccccccccssseececcseseeeeeceeueeeeecseseeeecaesseeeesaaseeeeesseaeeeeesaaaeceeesseaeeeesseaeeeesssageeeessaeeesessags 28 Figure 28 SP Read Byte Count Warning Dialog visi ias 29 Piduire 29 AV Prog BPI MOGC i eins o lo ad 29 Figure 30 BPE COMO Sra ii gaan atectesacteatenduceadezacncs 30 ElguUre 3 l BPl Sener ready Or Loading susre air a a E 31 FIQure32 BPISSrverBanner stan a dd pita iaa 32 FOUG 39D Sener ID One oia 32 Figure 34 BPI Semen DUI ETS e a IS A RES teed eae AA ee RE 33 Figure 35 BP Program Erase Check Dial silo 33 Figu
20. am the BPI Flash you must Connect to the PSoC on the board Click the Connect button Load the MicroBlaze BPI server to the FPGA Click the Load Server button Specify a file to program Optionally you may specify a hexadecimal offset from the start address to begin programming Optionally select a byte count less than the total number of bytes in the file oP a p S A Avnet Board Programming Wtilitydad e B Mode Help Serial Port Flash File BPI Operations from COMZ myBPlread bin BEL SHS ID Check Cadicementtoncibidin Comino my osc e AVNET A rae Offset Hex Bytes to Write Read electronics marketing Ox co aia Options Send Console Send Mode O as a Block Receive Console Receive Mode ASCII rn Hex Figure 29 AvProg BPI Mode Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 29 of 42 Rev 1 2 03 21 2009 Released The BPI server is actually an interactive program originally designed for command line input The output including interactive prompts are displayed in the Receive Console of AvProg However rather than typing commands into the AvProg send console all interaction can be made using the BPI Operation buttons on the AvProg console This eliminates entry errors and provides more reliable ope
21. amming are 1 File is too large to program from offset 0x The combination of the offset and the number of bytes to program is greater than the number of bytes available in flash from the offset position Change the offset value or specify a smaller number of bytes to correct 2 Unexpected ack detected in RDSR loop Attempting to resynchronize This warning message can occur if there is a glitch in the serial communication and the client server exchange gets out of sync In virtually all cases the application will recover and programming will complete successfully 3 SPI programming failed This message indicates that the write to the SPI flash failed This is very rare and if it is persistent it likely indicates a physical problem with the memory 4 Timed out no PSoC echo in state n This warning message indicates that an expected response from the PSoC firmware was lost In most cases the client server exchange will recover and programming will complete successfully If this message persists and programming is affected contact your local FAE for assistance 3 3 5 Read The Read button will not activate until communication between AvProg and the board has been established via the Connect button a Flash Device has been selected and a Flash file has also been specified This command reads the contents of the SPI memory for bytecount bytes from the specified offset and copies the data into your file A warning message will po
22. artitionflagic 7 0 Startup ca Figure 3 AvProg Installation Group Dialog Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 6 of 42 Rev 1 2 03 21 2009 Released D The installer will copy the required files from the package to your target folder Once installation is complete click OK to exit the installer program Avnet Programming Utility Setup x Avnet Programming Utility Setup was completed successfully Figure 4 AvProg Installation Completion Dialog E If you accepted the default installation folder you will find the installed files located at C Program FileslAvnetlAvProg Seles File Edit View Favorites Tools Help pack J i ys Search Wey Folders Ei Address E C Program Files AvnetavPrag y GO Folders x Mame Type Date Modified _ E 5 Driver File Folder 2008 5 26 10 11 Skins File Folder 2008 5 26 10 11 Sl anpface dll Application Exte 2008 5 21 9 05 E AvProg exe Application 2008 5 21 9 05 a 5 Program Files E ABBYY FineReader 5 0 Sprint E i Adobe a 1 ArcSoft lal avt_s25f1120p_64kb sth SFH File 2008 4 23 17 17 a Avnet E blink bit BIT File 2008 3 28 12 38 AY E bpi_server_v036 bit BIT File 2008 5 15 15 07 Origa E Spartan3Aeval_PSoC_Fir HEX File 2008 5 16 12 33 Skins E ST6UNST LOG Text Document 2008 5 26 10 11 Figure 5
23. ation package and at the time of writing the current version is 340 corresponding to AvProg version 3 4 0 New releases of the software package will be posted to the Avnet Design Resource Center as they become available so it is good practice to check the website periodically to ensure you are working with the latest software The Avnet DRC can be accessed at http em avnet com drc Installation of the software is supported on Windows XP and Windows Vista Operating Systems 2 1 Installing Host Software 1 Copy the compressed installation file to a folder on your Windows host that does not have any spaces in the entire path name This path restriction applies only to the installation software and not the program itself 2 Extract the installation files from the archive using the Windows built in compress uncompress utility or a third party package such as Winzip 3 Double click on the self extracting executable setup exe and follow the installation instructions as shown below It is highly recommended that you accept all the installation defaults A Click the OK button to begin the installation If you wish to cancel the install at this time click the Exit Setup button Avnet Programming Utility Setup 3 all Welcome to the Avnet Programming Utility installation program Setup cannot install system files or update shared files if they are in use Before proceeding we recommend that you close any applications yo
24. d Installation Group Dialogissa a ae a it 6 Figure 4 AvProg Installation Completion Dialog erat td ta di igaeceesee a diaeee 7 Figure 5 AvProg Default Installation Folder ccccccsssccccesececceseecceuseecseececsaseeeceeeecsageeecsaseeeseueeecsageeecsaseeeseseessneeessaseesseueeesseneeessags 7 Figure 6 Found New Hardware Wizard DialOG a 9 Figure 7 Hardware Wizard for Avnet_Sp3A_Demo Dialog occcccccoocconcccconcnncconancnnnonononnnononcnnnnonnnrnnnnonnnrncnnnnnnnnrnnnnnnnnrnnnornnrnnnnnnanennnnss 10 Figure 8 Hardware Wizard Search and Installation Dialog oocccccoocnnccnccononcnnnononncnnnononnnnncnnnnnnnnonnnnnrnnnnnnnrrnnnnnnnnnnnnonnnrrnncnnanennnoss 10 Figure O Hardware Wizard Type DIO Gy vts Ens 11 FIQUIe 10 Hardware Wizard Have DISK DIA OG cana 11 Figure 11 Hardware Wizard Install From Disk Dialog occcooocnccococncccconococonnnconononononoconannnnonanononnnnnnnnonannnnnnnnnnennnnnnonannnnnnananenanannss 12 Figure 12 Hardware Wizard Locale File Dialog var ata a eS 12 Figure 13 Hardware Wizard Install From Disk Dialog oocccoooccococononcconnonocononconanononoconononnnnnnanononnnnnnnnonnnnnnnnnnononnnronannnnnnnnanenaneness 13 Figure 14 Hardware Wizard Device Driver Select Dialog ccccoconcconccconcconcononccnnonnonnnnnnononnnnnnononnnnnonnnnnnrnnnnnnnnnrnnnnnnnnnrnnnnnnnrrnrennnnness 13 Figure 15 Hardware Wizard Completion Dialog 000 a
25. e as long as your communication parameters match see the first item under the Configure the FPGA section for details Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 40 of 42 Rev 1 2 03 21 2009 Released 6 3 Program the Spansion BPI Flash 1 Click the Connect button 2 Select Mode Program Parallel Flash from the main menu 3 Click the Load Server button 4 The flash sectors you are about to program must be erased before successful programming can occur If you are unsure click the Bulk Erase button to erase the entire parallel flash 5 Click the Browse button and select a binary file to program 6 Optionally change the offset from 0x0 7 Optionally change the number of bytes to program By default the entire file is programmed 8 Click the Program button 2 Select Parallel Flash Mode 4 Optionally Erase Flash 1 Click Connect 5 Select Flash file 3 Load the BPI server Ayvnetboa Program Lil SS eel ae en gt i Mode Help x _ __ erial Port Flash File BPI Ope Options a Browse ledflash4_cclk_6 bin BPI Server Wo cier A 534 Eval lw BPI Server Custom al bpi_server_v036 PEA gt AVNE TU Offset Hex Bytes to WritefRead gt eg Ox 4 o 235820 Send Console Send Mode Char Block Receive Console E 7 Rece
26. efault settings aoe Slectrasics merketing shown Figure 18 Communication Properties Dialog Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing Released 21 of 42 Rev 1 2 03 21 2009 3 1 5 Disable Board Check Enable Board Check When the Board Connect button is pressed on the initial interface AvProg will attempt to communicate with the PSoC on the board since normally AvProg will be in communication with the PSoC to perform programming functions If the PSoC does not respond a warning is issued to the operator indicating that the board was not plugged into the indicated Comm port Warnibg E 4 h 1 Board not detected on Coml Please check your Com port selection Figure 19 Board not connected Warning Dialog In some cases however it is desirable to use AvProg strictly as a serial communications device so you may use this menu selection to disable the check for a connected board Once the board check is disabled the menu item changes to Enable Board Check Main Menu Mode There are three possible operational modes for AvProg The active mode will have a checkmark to the left of the menu item Changing the mode will also update the Mode specific File and Mode specific Control areas on the interface Configure FPGA The startup mode for AvProg used to download a bitstream to t
27. far right side of the title bar Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 20 of 42 Rev 1 2 03 21 2009 Released 3 1 2 Main Menu Options Comm Activate the Comm Properties dialog to change the serial communication parameters between the host and the board These parameters are used only for serial communication with a running FPGA application For programming the FPGA and SPI a low level driver is used to communicate with the PSoC independent of the serial values set For indirect programming of the BPI AvProg automatically downloads a special server platform to the FPGA which communicates at 115200 again independent of the values set in the Comm Properties dialog The Comm Properties dialog and its control functions are shown below Select a Comm Port from the dropdown list If the board is plugged in the first port shown will be the one connected to the board Only ports registered on the host will be shown in the dropdown list Baud rate in bits per second Connect Using 00427 Number of data bits to use Use 8 or 7 Bits per second 415200 Data Bits la a sa Parity can be None Parity Ione E Odd or Even stop Bits Number of Stop Bits Flow Control i are can be 1 or 2 Hardware flow control Only None is supported Return all values to AVNET their d
28. gistered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 38 of 42 Released Rev 1 2 03 21 2009 6 1 Configure the FPGA 1 If you need to see output from an application in Receive Console you must first change the communication parameters to match your bitstream By default AvProg communications over the serial link at 115200 n 8 1 To change the settings select Options Comm from the main menu Click the Connect button Click the Browse button and select a bit file to download Click the Configure FPGA button Results of the FPGA download appear in the Receive Console ore AIN 1 optional Change 3 Select Bit file comm settings s 4 Click Configure FPGA o ve ASAS TT netib arth ProgrmmingUtl id Q AAA File Options Made He A serial Port Bit File FPGA perations blink4 bit Device 3s400aft256 Send Console Send Mode 5 _ Char Block Recelwve Mode ASCII Receive Console FPGA programmed successfully 5 Download status message optional application output appears in Receive console Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 39 of 42 Rev 1 2 03 21 2009 Released 6 2 Program the Spansion SPI Flash Click the Connect button Select Mode Program SPI Flash from the main
29. h for current and updated software by looking on pour computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for software Yes this time only i Yes now and every time connect a device No not this time Click Next to continue 6 Select Install from a list or specified location and click Next Hardware Update Wizard This wizard helps you install software for rnet_5p30 Demo COMB 9 If your hardware came with an installation CD S or floppy disk insert it now What do vou want the wizard to do Install the software automatically A ecommended Install from a list or specific location Advanced Click Next to continue Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 16 of 42 Rev 1 2 03 21 2009 Released 7 Select Don t search I will choose the driver to install and click Next Hardware Update Wizard Please choose your search and installation options O Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driwer found will be installed Don t search will choose the driver to install Choose this o
30. he FPGA on the board Program SPI Flash Use this mode to program the onboard serial flash Program Parallel Flash Use this mode to program the onboard BPI flash Main Menu Help About Displays a dialog box with the current version of the AvProg GUI plus the versions of the PSoC firmware and BPI server which are designed to work with the particular GUI version From time to time software updates may be created and it may be necessary to update one or more components of the installed package In this event software will be available for download on the Avnet Design Resource Center http em avnet com drc Serial Console Controls The serial controls are located at the bottom right of the GUI The Send Mode send Mode block affects communication in the Send Console while the Receive Mode block O Char affects the Receive Console display Block Send Mode Block the PSoC firmware can respond to textual commands but they must be transmitted as a block of text followed by a null character In this mode you may type a command and then press the Send button to transmit it to Baga oean the Psoc Send Char Mode each character is transmitted over the USB serial link as it is typed This is the normal mode for communication with an interactive application ASCII running on the FPGA Receive Mode Hex Receive Mode ASCII incoming characters on the serial interface are displayed in the ASCII character set
31. icroBlaze processor the output can be immediately viewed on the Receive console The GUI operates in one of three modes depending on whether you are working with the FPGA the SPI flash or the BPI flash The USB connection looks to the user interface like a standard Windows Comm port 3 1 Default Interface and Common Controls The start up mode for AvProg is Configure FPGA but there are a number of controls that are common to all modes The standard interface as it is seen at launch time is shown below with the major control areas indicated with labels Board Connect Disconnect Mode specific Files AvProg GUI Version Mode specific Controls Main Menu T L F C IIL 2 a o a Options Mode Help Serial Port Bit File None Selected AVNET FPGA Operations Send Console Send Mode Char Block Receive Console 7 Receive Mode ASCII D Hex Type here for serial port Serial output from Send Receive transmission running application Console Controls displays here Figure 17 AvProg Initial Interface 3 1 1 Main Menu File Select File When programming the FPGA SPI or BPI a host file containing the source data is required This item can be used to open a mode sensitive file selection dialog In normal operation however it is expected that most operators will use the Mode specific file controls Exit Terminate AvProg from this menu item or click on the Windows close control on the
32. in the Installation section Following the installation section is a detailed description of all of the AvProg controls You may want to read through this section to familiarize yourself with all the capabilities of the program or you can simply refer to this section later as needed If you would like to get started quickly with your new board refer to the Quick Start Guide in the Appendix This section covers only the steps and controls needed to program the FPGA or flash memory For board specifications and documentation as well as reference designs please refer to the Avnet Design Resource Center at http em avnet com drc Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 4 of 42 Rev 1 2 03 21 2009 Released 2 0 Installation The software installation package for the Avnet Programming Utility is delivered as a single compressed file Initial installation is a two step process consisting of first running the self extracting executable installer program and then plugging the Spartan 3A Evaluation board into a host USB port to activate the Windows New Hardware Wizard to install the USB driver The installer package includes all of the required software components for the utility The naming convention for this file is AvProg_vnnn_setup zip The vnnn sequence represents the version number of the install
33. ive Mode Sectors D 63 erased ASCII Chip Erase complete vyerifyi Hex Chip Erased successfully VT BPI Data Written AVT gt e 6 Optionally change the offset 7 Optionally change the size 8 Click Program To load the FPGA from the BPI flash location 0x0 place jumpers on JP4 MODE in positions 1 2 and 5 6 Cycle power to the board and the FPGA will program and execute any BRAM application included If your application has serial output it will be displayed in the Receive Console as long as your communication parameters match see the first item under the Configure the FPGA section for details Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 41 of 42 Rev 1 2 03 21 2009 Released 7 0 Revision History Date Version CRs _ _ pe Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 42 of 42 Rev 1 2 03 21 2009 Released
34. k the Change Remove button and follow the dialog instructions 2 4 Installing the USB Driver The first time the Spartan 3A Evaluation Board is plugged into a new USB port on a host system the new hardware will be detected and the Windows New Hardware Wizard will activate This device uses a standard USB driver that is already installed on the Windows host but it must be associated with the device using an installation file The installation file has been provided in the Drivers folder in the installation directory The following items show the steps for activating the USB driver on a Windows XP system If you are using a Windows Vista host the steps are not identical but are similar enough that there should be no problems To associate the USB driver with the board plug the small USB connector into the receptacle on the board and the standard USB connector into any USB port on your host system Follow the Wizard dialogs to associate the driver with the board 1 New HW wizard activates Select No not this time Click Next Found Sew Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CO or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for zottware Yes this time only O Yes now and every time connect a device Click
35. ks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 36 of 42 Rev 1 2 03 21 2009 Released Op Codes WREN WESR WRDI WDSR RDID RDSR WRSR READ FAST PGPM SECE BLKE DEEP REDS 0x06 0x06 0x04 0x04 Ox9F 0x05 0x01 0x03 0x0B 0x02 OxD8 0xC7 0xB9 OxAB Deep power down SF Status Register masks ESTM ESST PSTM PSST WELM WEST BPRM UABL 0x01 0x00 0x01 0x00 0x02 0x01 0x3C 0x00 RDID options NIDB HHHHHHHH GI OB 0 Uy AS SiS BWWNNHEROO HH Z IDV4 0x05 OxFF 0x01 OxFF 0x20 OxFF 0x18 OxFF 0x03 OxFF 0x01 EAST_READ options DBAC Page Program options MBPP 0x01 0x100 Device parameters DEVI MFCG ABSZ SECT PPRS BPRP BPRD MEP I MPPI DUMB S25FL128P_64KB SPANSION 0x03 0x100 0x100 0x100 0x1000000 0xC8 Ox0A OxAA a Write Enable Flash Write Enable Status Register Write Disable Write Disable Status Register Read Identification Read Status Register Write Status Register Read Data Bytes Read Data Bytes at Higher Speed Page Program sector Erase Bulk Erase Deep Power down Read 8 bit Electronic Signature and or Release Erase status mask Erase success state Program status mask Program success state Write enable latch mask Write enable state Block protect mask Unprotect all blocks Number of ID bytes ID byte 0 mask ID byte 0 expected va
36. low to do this on a Windows XP system a Launch the Control Panel from the Start Menu b Double Click Regional and Language Options c Select the Advanced tab Regional and Language Options x Regional Options Languages Advanced Language for non Unicode programs This system setting enables non Unicode programs to display menus and dialogs in their native language t does not affect Unicode programs but it does apply to all users of this computer Select a language to match the language version of the non Unicode C Japanese Traditional Chinese Big5 _ 10003 MAC Korean mM El 30d MA F AL tl Default user account settings Apply all settings to the current user account and to the default user profile d Select English in the list box as shown below e Click the OK button 2 When changing modes between SPI and BPI programming the Offset and Bytes to Write Read fields will reflect the last operation This is only an issue if you for example program SPI then program BPI and then return to SPI mode and wish to program the same file again In this case you may need to manually update the Offset and Bytes to Write Read fields Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 35 of 42 Rev 1 2 03 21 2009 Released 5 0 Appendix File Format
37. lue ID byte 1 mask ID byte 1 expected value ID byte 2 mask ID byte 2 expected value ID byte 3 mask ID byte 3 expected value ID byte 4 mask ID byte 4 expected value Dummy bytes after command El Max bytes during Page Program Device part number Manufacturer Address byte size Number of sectors per device Pages per sector Bytes per page Total number of bytes per device Max erase poll iterations Max program poll iterations Table 1 Spansion S25FL128P Serial Flash sfh File Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing Released 37 of 42 Prom Rev 1 2 03 21 2009 6 0 Appendix Il AvProg Spartan 3A Eval Quick Start Guide Once AvProg and the USB driver have been installed you can use this section to quickly perform basic functions For details on all the program features please consult the AvProg Host Interface section For the simplest operation configure the board jumpers as follows J3 1 2 USB Power JP5 2 3 Suspend On JP6 1 2 SPI Select There should be no other jumpers installed on the board Plug the USB cable between the Spartan 3A Eval board and a port on the host that has previously been used with the board Launch AvProg from the Windows Start menu Start Programs Avnet AvProg Copyright 2006 Avnet Inc AVNET and the AV logo are re
38. ne did not go high This is generally an indication that the wrong clock was used to generate the bitstream Please ensure that CCLK and not JTAG clock has been used 2 FPGA programming failed This is typically an indication that there is a problem with the design It could be a bit file created for another device or it could have marginal timing that causes it to fail on download If you cannot determine the problem contact your local FAE for assistance 3 No value for Done pin In this case contact with the board may have been lost immediately after programming The FPGA may actually have programmed correctly in this case This is very unusual and is likely caused by a faulty USB cable or a reconfiguration of the host Comm ports during the programming sequence 4 Init value is not high This is a warning message that indicates that AvProg expected a status value from the PSoC and it did not arrive in the specified time In most cases this will not affect the programming of the FPGA If you see this message repeatedly and the FPGA does not program contact your FAE for assistance Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing Released 24 of 42 Rev 1 2 03 21 2009 3 3 Program SPI Flash Controls To program the SPI Flash you must Connect to the PSoC on the board Click the Connect button Specif
39. path between AvProg and the SPI device and that the expected device is present If the operation is successful the flash ID will print in the receive console If a failure occurs a message dialog will display to indicate the reason 1 ID code does not match expected value The flash device specified does not match the hardware on the board Either you have connected the wrong board or you have selected the wrong device from the dropdown list If you are using a custom sfh file you may have a syntax error in the text file See the sfh File Format Appendix for details 2 Connection with PSoC lost This is most likely caused by a faulty USB cable or a loss of power to the board if you are not using USB power In rare cases it is possible that the USB driver has locked up To correct this condition follow this sequence a Disconnect the USB cable from the host computer b Click the Disconnect button on the AvProg interface c Reconnect the USB cable to the host You may want to try a different USB port d Click the Connect button on the AvProg interface Bulk Erase The Bulk Erase button will not activate until communication between AvProg and the board has been established via the Connect button and a Flash Device has been selected To erase the entire flash click the Bulk Erase button AvProg sends an appropriate command sequence to the PSoC which initiates the device erase AvProg then polls the PSoC every second to determine
40. ption to select the device driver from a list Windows does not guarantee that the diver you choose will be the best match for your hardware 8 Click the Have Disk button Hardware Update Wizard Select the device driver you want to install for this hardware S ee Select the manufacturer and model of your hardware device and then click Hest IF you have a disk that contains the diver you want to install click Have Disk Show compatible hardware Model Avnet Sp34 Demo Version 1 1 0 0 7 25 2006 Aynet Sps4 Demo Version 2 0 0 0 3 5 2007 ity This driver is not digitally signed Tell me why driver signing i important Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 17 of 42 Rev 1 2 03 21 2009 Released 9 Browse to the location of the new device installation file inf and select it The file must be located in the same folder as the new driver you wish to install Click the Open and OK buttons until you return to the Have Disk dialog This dialog will now show the name of the new device you are installing Click the Next button Hardware Update Wizard Select the device driver you want to install for this hardware S ag Select the manufacturer and model of your hardware device and then click Mest IF you have a disk that contains the driver you want to install click Have Disk
41. r a custom board and it will appear in the BPI Server dropdown list if 1 you place the bit file in the AvProg installation folder and 2 name the file in the same format as shown above with a different version number bpi_server_vNNN bit To change the BPI server used you must first click on Custom radio button to the left of the BPI Server dropdown list When using the Spartan 3A Eval Board the version of the BPI server has been matched with the AvProg GUI and if the versions are incompatible an error message will be issued when you try to load the server In this case you will need to update the software from the Avnet DRC http em avnet com drc Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing Released 31 of 42 Rev 1 2 03 21 2009 To load the BPI server simply click the Load Server button The interface will change to FPGA Configuration mode for the load process and when the download has finished it will revert back to BPI Programming mode with the BPI Operations buttons enabled If you are using the Spartan 3A Eval board you will see output from the BPI server in the Receive Console Receive Console e e x lt x JETTA EOI E EEE E EEE EEE ODO OOOO E EE EE EEE OOO EEE 3 Spartan 34 Spansion BPI Programming Utility 036 3 J35JTETETE TE TEE HEEE EE TE TE TE IET E ETE TE TE IE
42. ration 3 4 1 BPI File Controls To specify a file you must activate the Select BPI File dialog This can be done from the File menu by clicking on the Browse button or by double clicking in the Flash File text box Double click in the text box Alternately you can use File Select File in the main menu To display the Select Flash File dialog click the Browse button or Flash File BPI Operations None Selected BFI Server fm 534 Eval BPI Server O Custom y A Offset Hex Bytes to Wrte kead i xf o0f Oo IEEE Optional Select a hex offset from the Flash Base Address to begin programming Optional Select a byte count less than or equal to the file length The BPI server for the Spartan 3A Eval board is selected by default To change the server first click on the Custom button Figure 30 BPI File Controls Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 30 of 42 Rev 1 2 03 21 2009 Released 3 4 2 When the Select Flash file dialog displays navigate to the desired file select it in the window and click the Open button Note A standard bit or bin bitstream is created with the most significant bit located in the upper most position of the file In the case of parallel flash the configuration connection in BPI mode uses the least significant bit of the byte a
43. re 36 BPI Server File Program Confirmation aes eiee e a A E RAE E E AA E 39 Figure 37 BPI Read Overwrite Warning Dialog ccccccccsseeececceeeeeececaeeeeeeeeaeueeeeeeaeueeeessaueeeeeseeaeeeesseaaceeessaaeeeesseeseeessssageeesssageeessaas 34 Figure 39 BPI Byte Count Warming Da o 34 Flguire 39 BRI Server Reade a o eed eneaiteucenaunaniboaredscebd deatauiiewsend mamdswue scepaueatetaleedeced eunteneeeduenawace 34 EU AO PSO RVen AY CUI o es eel oa tet tel clacton Sabet cues at saat te chain il dd dl ea 35 Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 3 of 42 Rev 1 2 03 21 2009 Released 1 0 Introduction This manual describes the installation components installed files and operation of the Avnet Programming Utility AvProg The Avnet Programming Utility allows an operator to connect a host computer to the Spartan 3A Evaluation Board using a standard USB cable Once the connection is made the AvProg host interface GUI can be used to program the 1 Xilinx FPGA 2 Spansion Serial Flash Memory 3 Spansion BPI Flash Memory The utility communicates with the board via a USB cable using a standard Windows USB driver The driver must be associated with the USB device the Avnet Spartan 3A Eval board whenever it is plugged in to a new USB port on the Windows host This procedure is covered
44. s the most significant bit into the configuration engine Therefore all bytes have to be bit reversed before programming to the flash Furthermore our server is a x16 interface to the flash while the BPI interface is x8 Therefore the bytes in each 16 bit word have to be swapped A utility to perform the necessary conversion is included on the Avnet DRC as part of the BPI reference design for the Spartan 3A Eval board Flash file selected This file must BPI Operation buttons are not be of bin type enabled until the BPI server has been Loaded Flash File BPI Operations _ Browse ledflash4_cclk_6 bin BPI Server 534 Eval BPI Server O Custom pre E Offset Hex Bytes to Wrte Read Ox 0 35820 HERE Offset specified in hexadecimal Byte count defaults to the file by operator Default is 0x0 size Figure 31 BPI Server ready for Loading The byte count is automatically set to the size of the selected file but this value can be changed to program only part of the file if desired Load Server The BPI flash is programmed indirectly from the AvProg GUI by directing a MicroBlaze program the BPI Server running in the FPGA The BPI Server receives instructions and data from AvProg but it is the server that performs the actual programming The server included with the package has been written for the Spartan 3A Eval board and is the default server selected for the FPGA You can write your own BPI server fo
45. se Y BESA Figure 16 Windows Found New Hardware Message Your Avnet Programming Utility software is now fully installed and ready to use 2 5 Updating an existing USB Driver If it is necessary to update the USB driver in your system after you have installed AvProg you can use the following steps 1 Plug the Spartan 3A Evaluation Board into an available USB port on the host computer Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 14 of 42 Rev 1 2 03 21 2009 Released 2 In Windows Explorer right click on My Computer and click Manage in the drop down menu My Computer File Edit View Favorites Tools Help sack QJ Dd Ss Search Wey Folders lE38 Address 8 My Computer Folders E my Videos D My Virtual Machines 9 Visual Studio Projects D Web Pages a Y Computer a JB 3 Flopp a e Local Disk ea E Xilinx D Access E 5 DELL E O Devel1 Collapse Explore Open Command Prompt Search x Name Type A 423 2 Floppy 4 3 2 Inch Floppy Disk Local Disk C Local Disk w DYD Drive D CD Drive CD RW Drive CD Drive Shared Docum File Folder Eva s Documents File Folder Sjron s Documents File Folder test s Docume File Folder Docurn Manase S Downld J Scan for viruses E DRIVEF a E edk_us D EPSON 3
46. sert the manufacturer s installation disk and then make sure that the corect dive is selected below Cancel Copy manufacturer s files from C Program Files Avnet Ay Frog Driver r Figure 13 Hardware Wizard Install From Disk Dialog 9 Click Next Found New Hardware Wizard Select the device driver you want to install for this hardware ef Select the manufacturer and model of your hardware device and then click Nest IF you have a disk that contains the diver you want to install click Have Disk Show compatible hardware Avnet Spsa400 Demo PLAN This driver is not digitally signed Tell me why driver signing ls important Figure 14 Hardware Wizard Device Driver Select Dialog Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 13 of 42 Rev 1 2 03 21 2009 Released 10 If you get any warning screens accept the risks and click through to the screen shown below Click Finish Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for F Avnet _Sp34400_ Demo Click Finish to close the wizard Figure 15 Hardware Wizard Completion Dialog Once installation is complete you will see a new hardware message in the Windows taskbar ij Found New Hardware x Your new hardware is installed and ready to u
47. sole will scroll as it indicates the sector number in the flash that was just erased In the illustration below the 63 at the top indicates the highest sector that was erased for the Spansion BPI flash on the Spartan 3A Eval board Receive Console Chip Erase complete verifying Chip Erased successfully AVT gt Figure 34 BPI Server Bulk Erase 3 4 5 Program The Program button will not activate until the BPI Server has been successfully downloaded and a Flash file has been specified Once the Program button is activated simply click to begin writing the file at the specified offset Valid programming can only occur when the sectors to be written have been previously erased It is entirely the responsibility of the operator to ensure this condition exists prior to programming Vieng P lt is Your responsibility to ensure the sectors you are about to program have been erased le this true Figure 35 BPI Program Erase Check Dialog If the sectors have been erased click Yes To abort the programming operation click No If programming proceeds AvProg transfers the data file to the BPI server running on the board and it performs the programming operation at the specified location The results are summarized in the receive console shown highlighted in the illustration below Receive Console Sectors U 63 erased Chip Erase complete veriftvying Chip Erased successfully AVT gt BPI Data Written
48. st each time this command is activated to alert the operator that the specified file is about to be overwritten AN mys Pldata bit will be overwritten Figure 27 SPI Read Overwrite Warning Dialog Click OK to continue and Cancel to abort the operation Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 28 of 42 Rev 1 2 03 21 2009 Released 3 4 If you fail to specify the number of bytes to read you will receive the following message SENING Fit l 1 Enter bytes to read and try again Figure 28 SPI Read Byte Count Warning Dialog Enter a byte count in the Bytes to Read Write field and try the operation again 3 3 6 Verify The Verify button will not activate until communication between AvProg and the board has been established via the Connect button a Flash Device has been selected and a Flash file has also been specified This command reads the contents of the SPI memory for bytecount bytes from the specified offset and compares the data read with your file No data is overwritten in this operation but you must specify a byte count or you will receive the same warning message as seen above in the Read command Verify will report success if the data compares identically or will report the first byte at which the comparison failed Program Parallel BPI Flash Controls To progr
49. tne file length Figure 24 SPI File Controls When the Select Flash file dialog displays navigate to the desired file select it in the window and click the Open button Flash device selected is the Spansion SPI flash used on the any file type not just a bit file Flash File SPI Operations Browse juartloop_19200_vw2 bit Flash Device pas avt_s25f1128p_64kb Offset Hex Bytes to WritefRead Ox 40000 235093 HLL Offset specified in hexadecimal Byte count defaults to the file by operator Default is 0x0 size Figure 25 SPI File Ready for Programming Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing Released 26 of 42 Rev 1 2 03 21 2009 3 3 2 3 3 3 The offset value must begin on a SPI sector boundary It is the responsibility of the operator to be aware of the sector sizes and addresses in the device The byte count is automatically set to the size of the selected file but this value can be changed to program only part of the file if desired ID Check The ID Check button will not activate until communication between AvProg and the board has been established via the Connect button and a Flash Device has been selected Each flash family has a unique ID so it is always good practice to click the ID Check button once to verify that there is a good communication
50. u may be running Exit Setup Figure 1 AvProg Installation Welcome Dialog Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 5 of 42 Rev 1 2 03 21 2009 Released B It is highly recommended that you accept the default installation directory so that all Avnet programs will be found in the same location on your host machine However if you do wish to change the target folder click the Change Directory button To cancel the installation at this point click the Exit Setup button To proceed with the installation click the button highlighted below Avnet Programming Utility Setup Bezin the installation by clicking the button below lick this button to install Avnet Programming Wtility software to the specified destination directory Directory C Program Files Avnet AvFrog Change Directory Exit Setup Figure 2 AvProg Installation Setup Dialog C Click the Continue button to accept Avnet as the Program Group Avnet Programming Utility Ch Eg setup will add items to the group shown in the Program Group box You can enter a new group name or select one from the Existing Groups list Program Group rnet Existing Groups Accelerated Technology Accessories Administrative Tools Centra Dell Accessories GoHotSwap Microsoft Web Publishing PowerQuest P
51. x ml Fie Action View Window Help e amara Y Computer Management Local aa MD SER ER E de System Tools EE Y Computer H gq Event Viewer See Disk drives H k Shared Folders Display adapters iy Local Users and Groups 4 DVD CD ROM drives 8 Performance Logs and Floppy disk controllers 222 Device Manager El Floppy disk drives E gt Storage IDE ATAZATAPI controllers Ed 2 Removable Storage e Keyboards ABR Disk Defragmenter Mice and other pointing devices es Disk Management B Monitors Fp Services and Applications K E3 Network adapters E Eb Other devices E i Ports COM amp LPT Aynet_Sps4400 Demo COME F Communications Port COMI oY ECP Printer Port LPT1 i me Processors a A cuand widen and nama cantollare 13 The last step is to unplug the Spartan 3A Evaluation Board from the USB port and then plug it back in This will allow Windows to associate the new driver with your hardware Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 19 of 42 Rev 1 2 03 21 2009 Released 3 0 AvProg Host Interface The Avnet Programming Utility package includes a Windows GUI to allow programming of the FPGA SPI and BPI flash on a USB connected board The interface can also send and receive serial data over the USB connection so that once an application starts running on the M
52. y a flash device Specify a file to program Optionally you may specify a hexadecimal offset from the start address to begin programming Optionally select a byte count less than the total number of bytes in the file ae Se Flash File SPI Operations Browse blink4 bit Flash Device _ favt _s25m28p_6akb E E i AVNE rT Offset Hex Bytes to Write Read electronics marketing Ox 47342 Send Console Send Mode Char Block Receive Mode ASCII mn J Hex Receive Console Figure 23 AvProg SPI Mode Copyright O 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 25 of 42 Rev 1 2 03 21 2009 Released 3 3 1 SPI File Controls To specify a file you must activate the Select SPI File dialog This can be done from the File menu by clicking on the Browse button or by double clicking in the Flash File text box To display the Select Flash File dialog click Double click in the text box Alternately Te Browse buton or you can use File Select File in the main menu Flash File SPI Operations OO Bowe None Selected Flash Device y None Selected e Offset Hex Bytes to Wrte Read x o Y Optional Select a hex offset from Select a supported Flash Device the Flash Base Address to begin ide su a pa from the dropdown list programming count snorter tnan
Download Pdf Manuals
Related Search
Related Contents
IT-HS-01 Instruccion de Trabajo para la Elaboracion de Documentos 500 Go= - Minitel のびのびベビーゲートII Copyright © All rights reserved.
Failed to retrieve file