UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor andisa-8
Visitor
9,422 Views
Registered: ‎10-20-2008

spartan 3a dsp direct spi programming problem

I’m having problems programming the S33 SPI flash directly with the xip software. Anyone got any ideas?

I have the Spartan-3A DSP 1800 board and a Platform Cable USB II.

I’ve followed the instructions in the  http://www.xilinx.com/products/boards/s3a_sd1800a_ref_designs/xapp1053.pdf document.

The files used were from the  http://www.xilinx.com/products/boards/s3a_sd1800a_ref_designs/xapp1053.zip zip file.

Jumpers are set according to the part about experiment setup in the xapp1053 document.

I’ve tried to follow the instructions under “Experiment 2: Configure From Serial Flash” in the xapp1053 document.
The cables are correctly connected according to the picture.

The batch file has been configured to program different file then the default one.

Tried both the burn batch file and the erase batch file. Got the same problem both times (write cmdbuffer failed).
This is the output text from when the burn_intel_s33.bat file was run:

C:\xapp1053\Xil3S1800ADSP_Rev1_Serial_Flash_v92\FLASH_BURN>cd .

C:\xapp1053\Xil3S1800ADSP_Rev1_Serial_Flash_v92\FLASH_BURN>echo off
##########################################################################
# This file converts a bitstream to SPI format and burns it to the Intel #
#   S33 serial flash on the Xilinx Spartan-3A DSP 1800 Starter Kit       #
#   board.  The steps are as follows:                                    #
#     1. Convert bitstream to SPI mcs                                    #
#     2. Burn the 64 Mbit Intel S33 flash on the Sp3A DSP 1800 board     #
##########################################################################
Release 10.1.03 - iMPACT K.39 (nt)
Copyright (c) 1995-2008 Xilinx, Inc.  All rights reserved.
Preference Table
Name                 Setting
StartupClock         Auto_Correction
AutoSignature        False
KeepSVF              False
ConcurrentMode       False
UseHighz             False
ConfigOnFailure      Stop
UserLevel            Novice
MessageLevel         Detailed
svfUseTime           false
SpiByteSwap          Auto_Correction
'1': Loading file 'inouttest.bit' ...
INFO:iMPACT - Elapsed time =      0 sec.
done.
INFO:iMPACT:501 - '1': Added Device xa3sd1800a successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'1': Added Device 64m successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
Generating Prom file using the following auto generated Prom(s):
64m
----------------------------------------------------------------------
Swap bit can only be disabled in Hex file format only.
0xfa294 (1024660) bytes loaded up from 0x0
Using user-specified prom size of 65536K
Writing file "inouttest.mcs".
Writing file "inouttest.prm".
------------------------------------------------------------------------
| ==> Checking SPI database [____xspi_database.xdv]
        - version [ 001 . 15 ( 2007 October 17 ) ]: OK
------------------------------------------------------------------------
xip(tm) Version 1.00
Copyright (c) 2003-2007 Xilinx, Inc. All rights reserved.
Xilinx Intel SPI Programming Utility

**************************************************************************
**//==================================================================\\**
**||                                                                  ||**
**||  NOTICE: XIP SOFTWARE FOR XILINX PROTOTYPE DEVELOPMENT USE WITH  ||**
**||          Spartan-3A DSP BOARD ONLY                               ||**
**||                                                                  ||**
**||  SOFTWARE PROVIDED "AS IS". ALL WARRANTIES, EXPRESS OR IMPLIED,  ||**
**||  ARE HEREBY DISCLAIMED. SOFTWARE NOT AUTHORIZED FOR USE IN       ||**
**||  PRODUCTION ENVIRONMENTS OR FOR USE IN OR WITH LIFE-SUPPORT OR   ||**
**||  MISSION-CRITICAL APPLIANCES, SYSTEMS, OR DEVICES.               ||**
**||                                                                  ||**
**||  This software is for use with the Intel QB25F640S33B SPI device ||**
**||  only. This product is not supported by Xilinx support services. ||**
**||  Please email all technical questions or comments regarding this ||**
**||  tool to:                                                        ||**
**||                                                                  ||**
**||      xspi@xilinx.com                                             ||**
**||                                                                  ||**
**||  Refer to the Spartan-3A DSP 1800 documentation for additional   ||**
**||  software information.                                           ||**
**||                                                                  ||**
**||------------------------------------------------------------------||**
**||                                                                  ||**
**||  Xilinx provides official programming support for select third   ||**
**||  party Flash memory devices through the iMPACT application. This ||**
**||  support is for the direct and indirect programming of select    ||**
**||  ST Micro and Atmel SPI flash devices as well as for the         ||**
**||  indirect programming of select Intel parallel flash devices.    ||**
**||  See the iMPACT documentation for a complete list.               ||**
**||                                                                  ||**
**\\==================================================================//**
**************************************************************************

===[ Program notice/license accepted via -accept_notice command option ]===

Start  : Tue Oct 21 13:37:03 2008

==> Checking connection to [Xilinx Platform Cable USB 2.0] in 6.000 MHz mode
 Cable PID = 0008.
 Max current requested during enumeration is 300 mA.
Type = 0x0005.

    --> cable info: ID [3] Rev [0]

    - cable detected

==> Checking SPI device [Intel_QB25F640S33_BottomBoot_ver_00100] ID code(s)
    - density = [8388608] bytes
              = [67108864] bitswrite cmdbuffer failed C0000004.
write cmdbuffer failed C0000004.
write cmdbuffer failed C0000004.

    - mfg_code = [0x1E] ==> error: expected [0x89]

Finish : Tue Oct 21 13:37:03 2008
Elapsed clock time (00:00:00) = 0 seconds
        1 file(s) copied.
Press any key to continue . . .
0 Kudos
8 Replies
Observer derek.zhang
Observer
9,389 Views
Registered: ‎10-08-2008

Re: spartan 3a dsp direct spi programming problem

hi,

 

I have got the same problem as Andisa-8's. Moreover, i got a message said 

‘impact’ is not recognized as an internal or external command, operable program or batch file. 

hope someone knows what happened here.  (Andisa-8: did you get this as well?)

 

Any info would be appreciated.

 

Derek

 

 

0 Kudos
Visitor andisa-8
Visitor
9,385 Views
Registered: ‎10-20-2008

Re: spartan 3a dsp direct spi programming problem

Edited:

This post was in the wrong thread.

Message Edited by andisa-8 on 10-22-2008 11:29 PM
0 Kudos
Observer derek.zhang
Observer
9,379 Views
Registered: ‎10-08-2008

Re: spartan 3a dsp direct spi programming problem

It's good to hear that you've got it working.

 

Could you tell me what did you do before double clicking the burn_intel_s33.bat file as mine is still not working. As you seen below, those are what I did before programming the flash. 

 

 - power off

 - put jumper on JP7

 - make sure only the jumper for M1 is on JP9 

 - leave JP8 empty

 - power on

  

Did you ever use iMPACT through the progress? In XAPP1053, it says that

'A batch file is provided to simplify the burning of the Intel S33 serial flash using the XIP and iMPACT programs. iMPACT is used in batch mode to convert the bitstream to an MCS file compatible with SPI configuration. XIP is then used to burn this MCS to the Intel S33 flash.'

 

Please let me know you comment. 

 

Thanks

 

0 Kudos
Visitor andisa-8
Visitor
9,362 Views
Registered: ‎10-20-2008

Re: spartan 3a dsp direct spi programming problem

I posted in the wrong thread earlier.

I have not managed to get the direct programming of the Intel S33 SPI flash memory to work. I only got the direct JTAG programming working.

 

About your error message Derek. I’m far from being an expert when it comes to operating systems on desktop computers but to me it sounds like impact isn’t found by your batch file. I.e. the path to impact isn’t registered in the environmental variables. My best guess is that the batch file uses impact to create the mcs file.

0 Kudos
Observer derek.zhang
Observer
9,357 Views
Registered: ‎10-08-2008

Re: spartan 3a dsp direct spi programming problem

hi Andisa-8,

 

Thanks for your information and it is helpful.

I tried to change the environmental variables and it did not work. Probably I did it in the wrong way or something else, but I will try again as you said. 

 

Cheers.  

0 Kudos
Highlighted
Observer derek.zhang
Observer
9,352 Views
Registered: ‎10-08-2008

Re: spartan 3a dsp direct spi programming problem

hi again,

 

I have found the reason. I should have added the impact path into system variabls instead of user variables. (don't know why i put it in there.) Now it is working.

 

Thanks for your advice. Appreciate.  

 

 

Newbie g.krishna
Newbie
6,149 Views
Registered: ‎05-03-2009

Re: spartan 3a dsp direct spi programming problem

Hi,

I got the same problem of 'impact' please tell me the environment variable to be set. 

 

Thanks in advance.

0 Kudos
Xilinx Employee
Xilinx Employee
6,136 Views
Registered: ‎07-30-2007

Re: spartan 3a dsp direct spi programming problem

In the software install there is "ISE Design Suite Command Prompt" under "Accessories" when you go to START - Programs - ISE 12.4..."

 

From this command line you can type "imapct" and batch mode will be started from any folder you are in.  This command prompt sets all of the enviroment varriables.  This allow allows multiple versions of the software to be installed and then either version can be called by opening up that command line box.

0 Kudos