Home
Avnet Programming Utility User Manual
Contents
1. Figure 1 AvProg Default Installation Folder XP Vista 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 5 of 46 Rev 4 0 5 06 28 2010 Released 2 2 Installed Files This section contains a description of the files and folders in the installation directory Doc Avnet_AvProg UserGuide_vn_n_n pdf The current version of this document Driver Windows USBcdc_3AEval inf This is an installation file for the USB driver for the Spartan 3A Eval board on all supported Windows versions except for Windows XP SP3 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 Windows host Driver Windows USBcdc_LX16 inf This is an installation file for the USB driver for the Spartan 6 LX16 board on all supported Windows versions except for Windows XP SP3 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 Windows host Driver WindowsXP_SP3 USBcdc_XP_SP3_3AEval inf This is the driver installation file for Windows XP SP3 and the Spartan 3A Eval board 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
2. IT yau have a disk that contains the driver pon want to install click Have Disk Manufacturer Standard CO AOM drives sf CO ROM Drive force CODA accurate e lea di Sa CD ROM Drive force CODA inaccurate Standard keyboards e Standard system devices A y Se CD ROM Drive IMAP settings 0 1 y Ch Oka Presos ka en 01 Sf This driver is digitally signed Have Disk Tell me why driver signing is important lt Back Cancel Figure 6 Hardware Wizard Have Disk Dialog 6 Click Browse Install From Disk E x tl Insert the manufacturer s installation disk and then A make sure that the correct drive is selected below di Cancel Copy manufacturer s files Tom Figure 7 Hardware Wizard Install From Disk 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 11 of 46 Rev 4 0 5 06 28 2010 Released 7 Browse to the Driver folder under the installation directory For Windows XP SP3 select C Program FileslAvnetlAvProgiDriverlWindowsXP_SP3 For the Spartan 3A Eval select USBcdc_XP_SP3_3AEval inf and click Open shown For the Spartan LX16 select USBcdc_XP_SP3_LX16 inf and click Open Locate File Documents My Documents My Computer My Network Co My Recent Documents Lef Desktop My Documents vd My Computer e Local D
3. Released 3 3 Program SPI Flash Controls To program the SPI Flash you must 1 Connect to the PSoC on the board Click the Connect button Select the board type For the S3A or S6 LX16 Evaluation boards the selection is made automatically when the Connect button is pressed gt the Connect button is pressed Specify a file to program oe Load the SPI server WW Avnet Egad Programming tility 4 Options Mode Help Flash File blinky_for_AvtLX16 bit oP Server AVNE F sol server lx1b vOOy V F Offset Hex Bytes to Write Read Ox 0 Serial Port electronics marketing 136573 Send Console Receive Console Figure 19 AvProg SPI Mode Specify a SPI server For the S3A or S6 LX16 Evaluation boards the selection is made automatically when 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 GO o SPI Operations SFI Server 534 Eval ei GL SIE S NW L Custom Eraze Mode ei All am i Sector Thi g Recelve Mode en ASCII SEN Li Hex 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 28 of 46 Released Rev 4 0 5 06 28 2010 3 3 1 SPI File Controls To specify a file you must activate the Select SPI
4. including interactive prompts are displayed in the Receive Console of AvProg However rather than typing Commande 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 operation 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 BPI Server ei S34 Eval BPI Server CO Custom y A Offset Hex bytes to WrritefRead i xa Po 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 26 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 33 of 46 Rev 4 0 5 06 28 2010 Released When the Select Flash file dialog displays navigate to the desired file select it in the window a
5. 31 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 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 36 of 46 Rev 4 0 5 06 28 2010 Released Receive Console Sectors 0 63 erased Chip Erase complete verifying Chip Erased successfully AVT gt BPI Data Written Figure 32 BPI Server File Program Confirmation 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 Warning NS m6 Hire ad bin will be overwritten a Canoe Figure 33 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 followin
6. 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 All Programs Avnet AvProg 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 46 Rev 4 0 5 06 28 2010 Released 5 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 une ed Erporammunol ul vi Q el SE File Options Mode m ETD Serial Port Bit File FPGA perations blink4 bit Device AVNET 7 Een beem ll A T A tae Send Console Send Mode Char ei Block Recelwve Mode mM ASCII Receive Console FPGA programmed successfully a iA Hex 5 Download status message optional application output appears in Receive console Copyright O 2006 Avnet Inc AVNET and the AV logo are registered
7. 8 Click the Have Disk button Hardware Update Wizard Select the device driver you want to install for this hardware a oes Select the manufacturer and model of your hardware device and then click Nest IF you a have a disk that contains the diver you want to install click Have Disk Show compatible hardware Model Avnet Spa4_ Demo Version 1 1 0 0 7245 2006 Sanel So34 Deno Version 2 0 0 0 3 5 2007 Ku This driver is not digitally signed Tell me why diver signi le 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 18 of 46 Rev 4 0 5 06 28 2010 Released 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 The screen shot below shows the Spartan 3A driver but for the LX16 board you will see S6LX16 Eval Board Hardware Update Wizard Select the device driver you want to install for this hardware S a Select the manufacturer and model of your hardware device and then click Next IF you b have a disk that contains the driver you want to install click Have Disk Show compatible hardware Model Avnet 5p2
8. BROENE EE 38 a Ver EE 38 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 46 Rev 4 0 5 06 28 2010 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 1 Xilinx Spartan 3A Evaluation Board 2 Avnet Spartan 6 LX16 Evaluation Board using a standard USB cable Once the connection is made the AvProg host interface GUI can be used to program the Spartan 3A Spartan 6 LX16 Xilinx FPGA Xilinx FPGA Spansion Serial Flash Memory Numonyx Serial Flash Memory Spansion BPI Flash Memory The utility communicates with the board via a USB cable using a standard Windows USB2serial driver The driver must be associated with the USB device the board whenever it is plugged in to a new USB port on the Windows host This procedure is covered 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 it 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 co
9. DVD CD ROM drives Ch Floppy disk controllers 3 Human Interface Devices 4 Imaging devices a Keyboards 1 Mice and other pointing devices E Monitors B i Network adapters NM Ports COM amp LPT 7 hf Communications Port COM1 oY ECP Printer Port LPT1 i S6LX16 Eval Board COM7 Processors E SCSI and RAID controllers EN Ei Sound video and game controllers GK d System devices Universal Serial Bus controllers E E LU 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 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 46 Rev 4 0 5 06 28 2010 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 MicroBlaze 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 Co
10. 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 Double click inthe text box Alternately Flash File dialog click you can Use File Select File in the main the Browse button or menu SPI Operations Flash File blinky_for_AvtLX16_bit SPI Server Erase Mode Al O Sector TE Offset Hex Ox 0 Bytes to Write Read 136573 A Selta sjegones SP gen programming count shorter than the automatic forthe S3A and file length S6LX16 boards Figure 20 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 The offset value must begin on a SPI sector boundary Itis 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 3 3 2 Load Server The SPI flash is programmed indirectly from the AvProg GUI by directing a MicroBlaze program the SPI Server running in the FPGA The SPI Server receives instructions and data from AvProg but it is the server that performs the actual programming You MUST load the server before you will be able to access the rest of the SPI program function buttons The servers included with the packa
11. Read our privacy policy Can Windows connect to Windows Update to search for software Yes this time only C 3 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 Avnet Sps4 Demo COMB fe j i d If your hardware came with an installation CD gt or floppy disk insert it now What do vou want the wizard to do Install the software automatically Recommended 2 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 17 of 46 Rev 4 0 5 06 28 2010 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 a 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 option 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
12. Wizard Install From DISK EI e Le E 13 Figure 10 Hardware Wizard Device Driver Select Dialog 14 Figure 1 1 Fardware Wizard Completion Dialog teca a 14 Figure 12 Windows Found New Hardware Message n nsnnnnsnnsnsnnensrrrnrrrrnrrtrnsrtrrtrtttsttrrttttnnrtrrnrEEAAEEEAS EEES EEEEAEEEESE EEES nEEE nErenn tenent een 15 Figure 13 AVE TOG Nital ek Le 22 Figure l4 Communication Properties Dialogen neseser ad add 23 Figure 15 Board not connected Warning Dialog 24 FOUS TO BLFIIEGCONTO S ana e de an aerate Nees 26 Figure T BI rerea TO O el e TEE 26 Figure 13 FPGA Device Warning Dialog tesi dd 27 Fligue 19 AVRIOd OPI MOQ EE 28 Figure 20 S PELE eet EE 29 Figure 22 SPI Program Erase WANADOO e e 31 Figure 23 SPI Read Overwrite Warning Dialog nn nnnnnrnnnrnnnnnnnnnnnnnrnnnnrnrnrnanrrnnnnnanness 31 Figure 24 SP Read Byte Count Warning DialOG EE 32 Foe 29 AVPTOO E AN ee E 32 Figure 26 BRIFle CONTO E 33 Figure 27 BPI Server ready Tor Load WE 34 Foue 26 BPI Sewe Ee TEE 35 Foe 29 BS DA R nee i ease ie ah aan oat delycensl Rei heals Maked catiearaiel agus iceai a 35 Figure 3 1 BPI Program Erase Check Dialog iii A a 36 Figure 32 BPI Server File Program Confirmation cccccccseeeecccceecceeeeeeceeeeeaaeeeeceeeeeeseeeeseeeeeeeeseeeueeceeeeeeesseeeseeceeeesssseaeeeeeeesssaaaeeeeeeees 37 Figure 33 BPI Read Overwrite Warning Dialog 37 FIgure 34 BPIByie Count Warning Dialog EE 37 Figure 35
13. before any communication with the board can be initiated by the operator 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 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 All Programs Avnet AvProg blink4 Tor S3A bit A pre built reference design for the Spartan 3A 400 FPGA On download this design simply blinks the 4 user 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 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 46 Rev 4 0 5 06 28 2010 Released blinky for _AvtLX16 bit A pre built reference design for the Spartan 6 LX16 FPGA On download this
14. design simply blinks the 4 user LEDs on the 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_v037 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 BPl 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 spi_server_Ix16_v002 bit This is a MicroBlaze design that is loaded into the FPGA when AvProg is connected to the Spartan 6 LX16 Evaluation Board and placed in the SPI Programming Mode In this mode the host program acts as the client and communicates with the server to perform SPI 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 spi_server_v006 bit This is a MicroBlaze design that is loaded into the FPGA when AvProg is connected to the Spartan 3A Evaluation Board and placed in the SPI Programming Mode In this mode the host program acts as the client and communicates with the server to perform SPI operations such as ID check Er
15. from the BPI server in the Receive Console Receive Console He JE ap S a KA kk EE E E EE E EE e kk kk kk E E E EE EE e E KK EK E E EE a KK E E EE E E 3e Spartan 34 Spansion BPI Programming Utility 036 3e J30 J0ETETE TE TE DIE TEE ETE IE TE TE TEE HEEE IE IE IE IEEE TE DEE IE IE IEEE TE TEE HEEE IE IEEE TEE IEEE EE EE IE IEEE HEHE EEE Type lt help gt for options AYVT gt Figure 28 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 UseveE Device ID 2 Dx2210 Device ID 3 Use20u ID Test passed AVT gt Figure 29 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 35 of 46 Rev 4 0 5 06 28 2010 Releas
16. o Thru g To erase specific sectors click the Sector button in the Erase Mode panel and pick a range of sectors to clear Click the Erase button to execute the operation As each sector is cleared the sector number will appear in the receive console 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 30 of 46 Rev 4 0 5 06 28 2010 Released 3 3 5 3 3 6 Program The Program button will not activate until communication between AvProg and the board has been established via the Connect button the SPI server has been loaded 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 2 lt is Your responsibility to ensure the sectors you are about to program have been erased le this true Figure 22 SPI Program Erase Warning 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 Read The Read button will not activa
17. of this computer Select a language to match the language version of the non Unicode POO MAC Roman C Japanese AC Traditional Chinese Big5 C Korean IT ee AS Defaut user account settings T 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 41 of 46 Rev 4 0 5 06 28 2010 Released 5 0 Appendix 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
18. running on the FPGA Receive Mode O Hex Receive Mode ASCII incoming characters on the serial interface are displayed in the ASCII character set Gen 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 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 25 of 46 Rev 4 0 5 06 28 2010 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 bution or you can use File Select File in the main menu Bit File FPGA Operations None Selected Figure 16 Bit File Controls 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 show
19. this time Click Next Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on pour computer on the hardware installation CO or on the Windows Update Web site with pour permission Read our privacy policy Can Windows connect to Windows Update to search for sofware O Yes this time only Yes now and every time connect a device Click Next to continue lt Back Cancel Figure 2 Found New Hardware Wizard Dialog 2 Select Install from a list or specific location Click Next For the LX16 the device name is S6LX16 Eval Board Found New Hardware Wizard This wizard helps pon install software for Avnet Spd Demo If your hardware came with an installation CD lt or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue lt Back Cancel Figure 3 Hardware Wizard for Avnet_Sp3A_Demo 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 46 Rev 4 0 5 06 28 2010 Released 3 Select Don t search I will choose the driver to install Click Next Found New Hardware Wizard Please choose your search and installat
20. 4400 Demo ity This driver ts not digitally signed Tell me why diver signing ls important 10 Click through any warning dialogs that may appear such as the one shown below Hardware Installation The software you are installing for this hardware Bonet Spa4400_ Demo haz not passed Windows Logo testing to verify its compatibility with Windows ab 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 Anyway 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 Released 19 of 46 Rev 4 0 5 06 28 2010 11 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 For the LX16 board the device name is S6LX16 Eval Board Hardware Update Wizard Completing the Hardware Update Wizard The wizard has finished installing the software hor E Aynet Sos4400_ Derma Click Finish to close the wizard Copyright 2006 Avnet Inc AVNET and the AV logo are registered trademarks of Avnet Inc All other brands are
21. 46 Rev 4 0 5 06 28 2010 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 as AvProg must 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 Warning E 4 1 Board not detected on Com Please check your Com port selection Figure 15 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 Advanced On some computer systems the default PSoC communications parameter settings do not allow a reliable channel to be established with the board over the USB link In this case the Advanced menu exposes the communications parameters so they can be changed The menu item will be checked when the advanced interface is present Selecting the checked menu will close the Advanced interface If you change the default value in the controls the values will be retained when AvProg closes in a file called AvProg ini in the same folder as the executable You can restore all the defaults by simply deleting the AvProg ini file between AvProg executions
22. 6 2 BPI Burst Size AvProg sends BPI data to the MicroBlaze server in frames of BPI Burst Size If the serial channel is not optimal it is possible that data can be corrupted Use when BPI programming is consistently failing BPI Burst Size 126 What to do Reduce the BPI Burst Size by factors of 2 and retry 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 40 of 46 Rev 4 0 5 06 28 2010 Released 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 below 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 1x 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
23. Avnet Programming Utility User Manual SANNET electronics marketing 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 1 of 46 Rev 4 0 5 06 28 2010 Released 3 6 2 4 0 9 0 5 1 5 2 5 3 6 0 Table of Contents MOUCHO Ne A E E 4 Je ME re EE 5 IS Elle Kee Ce NWI EE 5 HEEM te eben 6 Uninstalling the Avnet Programming HR OH 8 installing Me USB A as 8 Updating amexsing USB Driven const nilo 15 dile AROS e en Ce 22 Default interface and Common Control EE 22 Man Ment F le oca crac iii iaa 22 A assed tsinacs e E easasueaad eee aeaenes ee eaeees 23 WEN BO ee EE 25 Main On Ee EE 25 senal Console COMING EE 25 Gontigure PGA Mode COTOS de a ee O 26 A A A an sigostse aay seean ea nausea snaaesiaveaesaeaaneeaoues aaaiomieeuees ose aasaneaam oseaumeeenes 26 Connor FG os aca di Se aac cin A pane N 27 Program OF Flash COTO EE 28 SS ele rel EE EE 29 E A eh RO eh eee tie het ates Sil ae tciemiee 29 BR Gg A ee ee 30 EE 30 A A macee a e atende clement tats Seen ateaieeacbeaudan scene oeeeaneces 31 Eeer 31 A A 32 Program Farallel BRU Flash OONO E 32 EI EE CONTO EE E EE 33 MA A O tcemweabedsecme enweeeede es 34 A A A A 35 al 2 Fos Pee Se ce rent rm ne A ere SN ee eee oer oer eee Merete 36 A 36 o A A A A O A A E TETT 37 A 38 Measure EXITO Ee EE 39 Advanced PanetGONTO Sa ctra 40 Timer interval in millisec
24. For information on how to change the PSoC communication parameters please see the section entitled Advanced Panel Controls Quiet In the default operating mode certain standard operations such as FPGA configuration and SPI programming will issue a prompt to the operator to warn against mistakes that may be of concern to novice users For example in FPGA configuration the operator is prompted to verify that the bitstream is for the correct device as shown below Dewiceto Pro grarn KA Bitfile is for a beklbceso2 Z4 device Je this correct If you select Quiet mode indicated when a checkmark appears in front of the menu item then these prompts are suppressed This state will be retained across invocations of AvProg so once you are familiar with the prompts you can switch them off permanently if you so desire You can also turn Quiet mode off by selecting the checked menu item 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 24 of 46 Rev 4 0 5 06 28 2010 Released 3 1 3 3 1 4 3 1 5 Main Menu Mode There are four 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 downlo
25. 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 a low level driver is used to communicate with the PSoC independent of the serial values set For indirect programming of the BPI and SPIl 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 115200 Le Data Bits o K Parity can be None Parity None Odd or Even stop Bits 1 Le Number of Stop Bits Flow Control None Le can be 1 or 2 Hardware flow control Only None is supported Return all values to their default settings shown Figure 14 Communication Properties Dialog 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 23 of
26. PGA 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 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 44 of 46 Rev 4 0 5 06 28 2010 Released 5 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 1 Click Connect A O lla 5 Select Flash file ash File Brome Y lod lash4_CCIK_6 bin BPI Server Offset Hex Bytes to Write Read ox o 235820 Send Console t Ser Block ar vu bga ss Receive Console eceive Mode mn EY EET Fi a i Ze ASCII DESEE CCAA CEE Spartan 3A Spansion BPP Programming Utilat
27. a 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 3 4 Program Parallel BPI Flash Controls To program 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 SPN gt O Avnet board Programming Utiitv v3 3 4 y e B Options Mode Help em Serial Port Flash File BPI Operations C Browse myBPlread bin BPI Server AD Check S34 Eval BPI Server AVNET e Progam EE Offset Hex Bytes to Write Read electronics marketing Ox oO 47342 Reed Send Console Send Mode Char Block Receive Console Receive Mode ASCII mn J Hex Figure 25 AvProg BPI 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 32 of 46 Rev 4 0 5 06 28 2010 Released The BPI server is actually an interactive program originally designed for command line input The output
28. ad a bitstream to the 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 Measure LX16 Power Use this mode to monitor System power and battery condition This is available for the Spartan 6 LX16 board only 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 are 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 Bana Moear 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
29. ase 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 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 70f 46 Rev 4 0 5 06 28 2010 Released 2 3 2 4 Uninstalling the Avnet Programming Utility To remove the Avnet Programming Utility from your host system run the setup exe file again and it will perform the uninstallation Alternately you may activate the Control Panel from the Windows Start menu and use the standard Windows procedure corresponding to your operating system for removing programs Installing the USB Driver The first time a supported 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 s are provided under the Drivers folder in the installation directory Make sure you select the proper folder to match your system depending on whether it is Windows XP SP3 or not Spartan Boards and Windows 7 If you have an older piece of hardware or a device that doesn t support Plug and Play Windows 7 won t automatically recognize it whe
30. can be accessed at http em avnet com drc Installation of the software is supported on business versions of Windows XP Windows Vista and Windows 7 Operating Systems 2 1 Installing Host Software 1 Copy the compressed installation file to a folder on your Windows host 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 instructions in the Installshield wizard A At the completion of the wizard you will find the installed files located at C Program Files Avnet AvProg Windows XP Vista or C Program Files x86 Avnet AvProg Windows 7 Ki C Program Files Avnet AvProg Seles File Edit View Favorites Tools Help ae P gt IK Search e Folders K IR FRR fe Folder Sync Address CO C Program Files Avnet AvProg hy Go Folders Name Type E LC Program Files Doc File Folder EE 5 Adobe Driver File Folder E E ARM SjPSoc Firmware File Folder El E Avnet eg Skins File Folder BEN a appface dll Application Extension Doc FZ AvProg exe Application E E Driver i avt_s251128p_64kb sh SFH File KH PSoc_Firmware blimk4 bit BIT File 5 Skins gt bpi_server_v036 bit BIT File El CO Broadcom E ledfash4_edk_6 bin elby VCDMount 1 El 5 Business Objects L
31. 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 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 Disconnect the USB cable from the host computer Click the Disconnect button on the AvProg interface Reconnect the USB cable to the host You may want to try a different USB port Click the Connect button on the AvProg interface Q0 Tp 3 3 4 Erase The Erase button will not activate until communication between AvProg and the board has been established via the Connect button and the SPI server has been loaded To erase the entire flash select the All button in the Erase Mode panel and click the Erase button AvProg sends an appropriate command sequence to the PSoC which initiates the device erase Depending on the device size a full erase can take several minutes AvProg will issue a message for the supported boards indicating an approximate wait time SPI Operations SFI Server 34 Eval ei G IE Custom Erase Mode al O Sector Goen Lem Progam Roam
32. del of your hardware device and then click Next If you have a disk that contains the driver you want to install click Have Disk Show compatible hardware Awnet_5p34 Demo XP SPS Ku This driver i is not ee deg Have Disk Tell me why driv gis im Figure 10 Hardware Wizard Device Driver Select Dialog 10 If you get any warning screens accept the risks and click through to the screen shown below Click Finish For the LX16 the device name will be S6LX16 Eval Board Hardware Update Wizard Completing the Hardware Update Wizard The wizard has finished installing the software for F Awnet_5p3A_Demo_XP_5P3 Click Finish to close the wizard Figure 11 Hardware Wizard Completion Dialog 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 46 Rev 4 0 5 06 28 2010 Released Once installation is complete you will see a new hardware message in the Windows taskbar i Found New Hardware x Your new hardware is installed and ready to use d nero BBEARCH Figure 12 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 The screensho
33. ed 3 4 4 Erase The Erase button will not activate until communication between AvProg and the board has been established via the Connect button and the SPI server has been loaded To erase the entire flash select the All button in the Erase Mode panel and click the Erase button AvProg sends an appropriate command sequence to the PSoC which initiates the device erase Depending on the device size a full erase can take several minutes AvProg will issue a message for the supported boards indicating an approximate wait time BFI Operations BFI Server ei 34 Eval SBLATE Custom Erase Mode al Co Sector loo Thu o To erase specific sectors click the Sector button in the Erase Mode panel and pick a range of sectors to clear Click the Erase button to execute the operation As each sector is cleared the sector number will appear in the receive console 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 lt is entirely the responsibility of the operator to ensure this condition exists prior to programming eT Itis pour responsibility to ensure the sectors you are about to program have been erased le this true Figure
34. g message Warning a Ll Enter bytes to read and try again Figure 34 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 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 37 of 46 Rev 4 0 5 06 28 2010 Released Recerve Console Chip Erase complete verifying Chip Erased successtully AVT gt BPI Data Written AVT gt BPI Read complete Figure 35 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 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 Addre
35. ge are for the Spartan 3A and the Spartan 6 LX16 Evaluation boards You can write your own SPI server for a custom board and it will appear in the SPI 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 spi_server_vNNN bit To change the SPI server used you must first click on Custom radio button to the left of the SPI Server dropdown list When using the supplied servers the version of the server software has been matched with the AvProg GUI 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 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 29 of 46 Rev 4 0 5 06 28 2010 Released http em avnet com drc 3 3 3 ID Check The ID Check button will not activate until communication between AvProg and the board has been established via the Connect button and the SPI server has been loaded 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 and the SPI device and that the expected device is present If the operation is successful the flash ID will print in the receive
36. ighlighted For the LX16 board the entry will be named S6LX16 Eval Board E Computer Management DER ml Fie Action View Window Help ll x SS am re 2 ERA ll Computer Management iLocal MD SERWER i System Tools a d Computer Hg Event Viewer Disk drives kal Shared Folders Display adapters H S Local Users and Groups 4 OVO CD ROM drives e 48 Performance Logs and Floppy disk controllers El Device Manager H Floppy disk drives i Storage y IDE ATA ATAPI controllers a Removable Storage us Keyboards Disk Defragmenter 5 Mice and other pointing devices e Disk Managernent a Monitors e E Services and Applications i Network adapters a fk Other devices Ports COM amp LPT et So34_ Demo COMB nications Port COM1 d ECP Printer Port LPT1 1 M8 Processors a A Ge me widan and narma rontenllore 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 16 of 46 Rev 4 0 5 06 28 2010 Released 5 Select No not this time and click Next Hardware Update Wizard Welcome to the Hardware Update Wizard Windows will search for current and updated software by looking on pour computer on the hardware installation CD or op the Windows Update web site with your permission
37. ion options S C 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 diver found will be installed bh Search removable media floppy CD ROM Include this location in the search C Program Files 4ynethPCle_Pert Browse Ce Dont search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver vou choose will be the best match for your hardware Back Cancel Figure 4 Hardware Wizard Search and Installation Dialog 4 Click Next Found New Hardware Wizard Hardware Type S Select a hardware type and then click Net Common hardware types Show All Devices j Sa 1394 Debugger Device ga 61983 Device Class ES AVC Device Class Ki Batteries Bluetooth Radios d Computer Se Disk dives _ Nianlan eee E lt Back Cancel Figure 5 Hardware Wizard Type Dialog 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 10 of 46 Released Rev 4 0 5 06 28 2010 5 Click Have Disk Found New Hardware Wizard Select the device driver you want to install for this hardware a Select the manufacturer and model of pour hardware device and then click Nest
38. isk IL LC Program Files Ey Avnet E AvProg E Driver a WindowsXP_SP3 e HP_RECOVERY D 4 DVD RAM Drive E Volume_1 on DNS 323 Netbackup GG Logitech QuickCam Pro 5000 CO Shared Documents 5 My Documents a My Network Places CO Adobe Acrobat 9 Pro Extended USBede_XP_SP3_3AEval inf Figure 8 Hardware Wizard Locate File Dialog For all other supported Windows versions browse to directory C Program Files Avnet AvProg Driver Windows For the Spartan 3A Eval select USBcdc_3AEval inf For the Spartan LX16 select USBcdc_LX16 inf 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 12 of 46 Rev 4 0 5 06 28 2010 8 Click OK Install From Disk Insert the manufacturers installation disk and then make sure that the corect drive is selected below CA Program Files Avnet Av Prog Driver Windows X w Figure 9 Hardware Wizard Install From Disk Dialog 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 13 of 46 Rev 4 0 5 06 28 2010 Released 9 Click Next For the LX16 the Model name will be S6LX16 Eval Board Hardware Update Wizard Select the device driver you want to install for this hardware Select the manufacturer and mo
39. mmon 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 a Avnetboan sogramminguU litvws 3 3 O S Options Mode Help Serial Port Bit File FPGA Operations Device ene AVNET ber Send Console Send Mode Char Ze Block Receive Mode ASCII Hex ER Receive Console Send Receive Serial output from Console Controls running application displays here Type here for serial port transmission Figure 13 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 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 Released Rev 4 0 5 06 28 2010 22 of 46 3 1 2 Main
40. n below Bit File FPGA Operations Device tr Bit file is for a Spartan 3A 400 device Bit file selected Figure 17 Bit File ready to Configure 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 26 of 46 Rev 4 0 5 06 28 2010 Released 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 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 Dewice to Frage om pd Bittle 13 for a 3s400aft256 device Is this correct Figure 18 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 in the Comm panel All output from the application will appear in the Receive Co
41. n you connect the hardware or device to your computer This may be the case for both the Spartan 3A and Spartan 6 LX16 Evaluation boards However you can manually add them to your computer using the Add Hardware Wizard Follow these steps e Click the Start button In the search box type run and then in the list of results click Run e Inthe Run dialog box type hdwwiz and then click OK e Follow the instructions in the wizard and then click Next Following the installation you may receive error Code 10 indicating that the new driver could not start In this case unplug the USB connection to the board and plug it back in The board will be recognized and the driver will load and start correctly The next pages show the steps for activating the USB driver for the Spartan 3A Evaluation Board on a Windows XP SP3 system For other supported hosts the steps are not quite identical but are similar enough that there should be few problems 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 8 of 46 Rev 4 0 5 06 28 2010 Released 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
42. nd 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 as 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 em OO Bowe ledflash4_cclk_6 bin BPI Server ei 534 Eval BPI Server Custom pre E Offset Hex Bytes to rritef Read Ox 0 35620 OI Offset specified in hexadecimal Byte count defaults to the file by operator Default is 0x0 size Figure 27 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 3 4 2 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 inst
43. nsole If there is a failure during the programming sequence it is probably due to one of the following conditions 1 Programming succeeded but Done 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 27 of 46 Rev 4 0 5 06 28 2010
44. on your Windows XP SP3 host Driver WindowsXP_SP3 USBcdc_XP_SP3_LX16 inf This is the driver installation file for Windows XP SP3 and the Spartan 6 LX16 board 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 Windows XP SP3 host Driver WindowsXP_SP3 usbser_AvProg sys This is a special driver file for Windows XP SP3 This file is referenced by the inf file during the installation PSoc_Firmware Spartan3AEval_PSoC_Revnnn_pd5sp45 hex This is the software that runs on the Cypress PSoC 1 on the Spartan 3A board 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 1 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 PSoc_Firmware AvtLX16Eval_RevB_vn_n_n hex This is the software that runs on the Cypress PSoC 3 on the Spartan 6 LX16 board 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 3 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
45. property of their respective owners Avnet Electronics Marketing 20 of 46 Rev 4 0 5 06 28 2010 Released 12 Your new device will now be listed in the Device Manager Spartan 3A Eval Close the Device Manager 2 Computer Management is E ml File Action View Window Help e amara 2 z Computer Management Local a e System Tools E E Event Viewer H Shared Folders w A Local Users and Groups ed Performance Logs and a Device Manager a 3 Storage 8 Removable Storage Be Disk Defragmenter SA Disk Management e EN Services and Applications Spartan LX16 Eval Computer Management IS File 5 sch Action View Computer Management Local 5 ii System Tools Eg Event Viewer Shared Folders Local Users and Groups Performance Logs and Alert Device Manager e 7 storage H E Removable Storage Disk Defragmenter Disk Management 5 EC Services and Applications Window Help EI e MD SERVER H Computer e Disk drives 2 Display adapters 2 DVD CD ROM drives Floppy disk controllers H Floppy disk drives 42 IDE ATA ATAPI controllers 2 Keyboards 2 Mice and other pointing devices B Monitors E9 Network adapters a fe Other devices EE Ports COM amp LPT Avnet _Sp34400 Demo COME F Communications Port CO ef ECP Printer Port LPT1 e Processors a AA Cand vider and narma rortenllare E AVNET_WS_2008 d Computer Ss Disk drives E Display adapters E
46. ructions 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 for 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 34 of 46 Rev 4 0 5 06 28 2010 Released 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
47. s and Timeout LOOP Limit ccccseececceseeeceseecceeeeecceueeeceaececceeeesseueeessueeeeeseeeeesageeesseeeessaneeeens 40 A ee 40 nn A ounce e tral 41 Appendix AvProg Spartan 3A Eval Quick Start Guide n00nnnnnnnneannnnnnnnennnnnnnnnernnrnnnnnsrnnrrrrennrnnrrrrrnnssensrnnrrrrennnnnrrrrennnnnnni 42 Conquer A a o eee re o e dd o o ane 43 Program ME Spansion o PIES EE 44 Program the Spansion Bras ac A A tc 45 REVISION FISIO EE 46 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 46 Rev 4 0 5 06 28 2010 Released Figures Figure 1 AvProg Default Installation Folder XP Vista 00 as 5 Figure 2 Found New Hardware Wizard Dialog 9 Figure 3 Hardware Wizard for Avnet_Sp3A_Demo Dialog 9 Figure 4 Hardware Wizard Search and Installation Dialog 10 Figure 5 Hardware Wizard Type Dialog 10 Figure 6 hardware Wizard Have Disk Dialog ts 11 Figure 7 Hardware Wizard Install From Disk Dialog ccccsecccccseeeeceeeeeeceeeeeeceeeeeaaeeeeseaeeeeaaeeeseeueeeeseaaeeesseueeessaeeeesseeesseneeesaeeeeesneeeens 11 Figure 8 Hardware Wizard Locate File Dialog xiii nad 12 For all other supported Windows versions browse tO directory cccccseeeccceeeeeceeeeeeceeeeeseeeeeeaeeeeseaueeeseeeeeessaeeeeseaeeeeseneeessaeeeesseneeeseeeeeas 12 Figure 9 Hardware
48. ss Read was AVT gt HPI validated One so 59920 Figure 36 BPI Server Verify 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 38 of 46 Rev 4 0 5 06 28 2010 Released 3 5 Measure LX16 Power When you are connected to a Spartan 6 LX16 Evaluation board the menu option for Measure LX16 Power will be active once a connection between AvProg and the board is established If you select this mode the main panel shows various power states of the board in real time You can use this mode any time it is available but the primary motivation for this information is to measure the board power when an FPGA application is running Lx16 Power Measurement System Power Rail Yoltage Y Current m Power m4 1 Aw 1 206 6 651 3 020 1 87 1 815 0 319 0 579 3 3y 3 340 101 854 340 008 ae Power Charging 99 100 USB Power Good A C P DF TTT Voltage ld 4 188 Temperature C 17 85 In the top part of the panel live measurements for Voltage Current and Power are shown for each of the three power rails on the evaluation board These numbers will update in real time In the lower part of the panel the state of the battery is shown on the left The bar graph shows the battery power and whether the device is charging or not The battery will charge when the board is connected to an external power so
49. te until communication between AvProg and the board has been established via the Connect button the SPI server has been loaded 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 Warning A mys Fldata bit will De owerritken or tance Figure 23 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 Released 31 of 46 Rev 4 0 5 06 28 2010 If you fail to specify the number of bytes to read you will receive the following message Mani a LA Enter bytes to read and try again Figure 24 SPI Read Byte Count Warning Dialog Enter a byte count in the Bytes to Read Write field and try the operation again 3 3 7 Verify The Verify button will not activate until communication between AvProg and the board has been established via the Connect button the SPI server is loaded 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 dat
50. trademarks of Avnet Inc All other brands are property of their respective owners Avnet Electronics Marketing 43 of 46 Rev 4 0 5 06 28 2010 Released 5 2 Program the Spansion SPI Flash Click the Connect button Select Mode Program SPI Flash from the main menu Click the Load Server button The flash sectors you are about to program must be erased before successful programming can occur If you are unsure click the Erase button to erase the entire serial flash 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 ECH II Ge WE 2 Select SPI Mode 1 Click Connect 4 Optionally Erase Flash 5 Select Flash fis o oa Flash Filo Browne blink4_for_S3Abit SPI Server AVNET nt gt O NENNE electronics marketing Gel of 47342 Send Console Recerve Console FO F L e asss SERVICES e eege Mode e j aso Spartan JA Egfluation Kit Seria Flash Test EA CA EA AAA ES Hex Avnet Spertan JA Ew luation Kit Serial Flash Test AVT gt 6 Optionally change the offset 3 Load the SPI Server 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 F
51. ts are for the Spartan 3A Evaluation board but the same procedure can be used for the Spartan 6 LX16 Evaluation board 1 Plug the board into an available USB port on the host computer 2 In Windows Explorer right click on My Computer and click Manage in the drop down menu My Computer Ex File Edit View Favorites Tools Help sack k Dd P Search Wey Folders EE Folders x Name Type Total Size Free Space E My Videos F Bar Floppy CD 3 2 Inch Floppy Disk Local Disk C Local Disk 74 4 GB G2 My Virtual Machines DVD Drive D CD Drive O Visual Studio Projects 3cD RW Drive CD Drive 5 Web Pages Shared Docum File Folder a Y Computer Eva s Documents File Folder H 3 Flopp Collapse Sron s Documents File Folder e Local Disk test s Docume File Folder To Explore O Xilinx 5 Access SECH GS DELL Command Prompt a Develt Search a ki Downl Y Scan for viruses SCH DRIVER a edk us Map Metwork Drive EPSON Disconnect Network Drive CQ GoHotS Get E OH HOMS O 1886 a O Inetout Properties O IntelPRO E 5 LEVEL2 Rename 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 15 of 46 Rev 4 0 5 06 28 2010 Released 3 Click Device Manager and expand the Ports entry to show the current driver installation S3A Eval entry is h
52. urce including USB On the right the display shows the available external power the current battery voltage and the battery temperature 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 39 of 46 Rev 4 0 5 06 28 2010 Released 3 6 Advanced Panel Controls The communication parameters used between the host computer and the PSoC have been optimized for performance and are applicable to most computers running supported Windows operating systems In rare cases problems do arise and in those corner cases the Advanced controls allows modification of the parameters to get the system operational 3 6 1 Timer interval in millisecs and Timeout Loop Limit AvProg has an internal state machine for each operational mode and the states are advanced when the PSoC acknowledges the current operation The default value has been set as low as possible for performance reasons but on some hosts it may be necessary to increase the timeout value to receive a response from the board Use when AvProg displays a message box with the text No ACK from state nn Timer interval in Timeout Loop milisecs Limit 15 4 What to do Increase the Timer Interval value in 10 millisecond increments and try the operation again If you exceed 50 milliseconds and the system still does not work try increasing the Timeout Loop Limit as well 3
53. vers 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 1 i The LX16 can also accommodate a Spansion flash module 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 46 Rev 4 0 5 06 28 2010 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 installation package and at the time of writing the current version is 400 corresponding to AvProg version 4 0 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
54. ygs03 H Type help gt for options AVT gt y O Hex 3 Load the BPI server 5 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 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 45 of 46 Rev 4 0 5 06 28 2010 Released 6 0 Revision History Date Version CRs _ _ A ee eee 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 46 of 46 Rev 4 0 5 06 28 2010 Released
Download Pdf Manuals
Related Search
Related Contents
Member and Leaders Services (MLS) Software Manual Samsung 2023NW Керівництво користувача テンキーボード 取扱説明書 HYDRAULIC BREAKER - Truck Utilities Inc Mitsubishi Electric XL6500U LCD shortened Pocket GSM user manual rev 2.4 User's Guide C610 / C711 AKG External Remote Sensor HE 1000 KSDSwift manual ksdswift1 Kit d`encrage Sawgrass pour Epson 1400 Copyright © All rights reserved.
Failed to retrieve file