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 freylin
Visitor
13,036 Views
Registered: ‎12-04-2008

Spartan 3A DSP 1800 SPI flash programming problem

I am having problem programming the  Intel S33 flash.
And I have follow the instruction of xapp1053.pdf with xapp1053.zip file.

I have tried to follow the "Experiment 2: Configure From Serial Flash" and executed "burn_intel_s33.bat"
Execution have problem (error: expected [0x89]).

And I have tried erase flash(erase_intel_s33.bat)
Execution burn_intel_s33.bat & erase_intel_s33.bat have same problem(error: expected [0x89])

Output text file from execution of burn_intel_s33.bat follow~

 


D:\Xil3S1800ADSP_Rev1_Serial_Flash_v92\FLASH_BURN>cd .

D:\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 9.2.04i - iMPACT J.40
Copyright (c) 1995-2007 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 '../implementation/download.bit' ...

INFO:iMPACT - Elapsed time =      2 sec.
done.
INFO:iMPACT:501 - '1': Added Device xc3sd1800a 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 "../implementation/download.mcs".

Writing file "../implementation/download.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  : Thu Dec 04 10:37:01 2008

==> Checking connection to [Xilinx Platform Cable USB 2.0] in 6.000 MHz mode
PORT_INDEX = 0.
CB_CABLE_COUNTER = 0.
DeviceAttach: Cable found for usb21.
Calling setinterface num=0, alternate=0.
DeviceAttach: received and accepted attach for:
  vendor id 0x3fd, product id 0x8, device handle 0x1290038
 Cable PID = 0008.
 Max current requested during enumeration is 74 mA.
Type = 0x0004.

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

    - cable detected

==> Checking SPI device [Intel_QB25F640S33_BottomBoot_ver_00100] ID code(s)
    - density = [8388608] bytes
              = [67108864] bits
    - mfg_code = [0xFF] ==> error: expected [0x89]

Finish : Thu Dec 04 10:37:01 2008
Elapsed clock time (00:00:00) = 0 seconds

 

 

 

Any help would be appreciated !!

Frey

0 Kudos
15 Replies
Observer derek.zhang
Observer
13,022 Views
Registered: ‎10-08-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

Did you connect the programming cable to the board properly? 

 

MFG_code = [0xFF] seems like the programmer can not find the voltage ref from the board.

 

Another possibility is the XIP version as the old version is a bit tricky. V1.02 should work.

 

Hope it is helpful.....

0 Kudos
Visitor freylin
Visitor
12,978 Views
Registered: ‎12-04-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

Thank your helpful very much.

I update ISE version from 9.2 to 10.1.

And  re-try "Experiment 2: Configure From Serial Flash" and executed "burn_intel_s33.bat"

SPI Flash can be programmed without any error.

Can you tell me where can download XIP v1.02 ?

 

Best Regards

Frey

0 Kudos
Observer derek.zhang
Observer
12,964 Views
Registered: ‎10-08-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

I attached the file and you can give a try.

 

If there is any problem, let me know. 

 

Derek  :)

0 Kudos
Visitor freylin
Visitor
12,913 Views
Registered: ‎12-04-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

About programming Intel S33 flash~
Is only method of programming flash using burn_intel_s33.bat?
Can I use iMPACT GUI to program Intel S33 flash?

 

Frey

0 Kudos
Observer derek.zhang
Observer
12,896 Views
Registered: ‎10-08-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

Unfortunately, you can not use iMPACT as the Intel S33 Flash is not included in the library.

 

XIP is the only way to do it at the moment.

 

Derek

0 Kudos
Voyager
Voyager
12,866 Views
Registered: ‎10-01-2007

Re: Spartan 3A DSP 1800 SPI flash programming problem

In 10.1.03, there are also some changes to the batch file if you are using the Parallel Cable IV.  The files and document that show how to do this is posted at www.em.avnet.com/spartan3a-dsp --> Support Files & Downloads --> Programming the Intel S33 Flash

 

Bryan

0 Kudos
Newbie beratron
Newbie
12,072 Views
Registered: ‎02-08-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

Hi Derek!

 

I have allmost the same problem than Frey, exept that the reply of XIP is 

 

---- snip ----

==> Checking SPI device [Intel_QB25F640S33_BottomBoot_ver_00100] ID code(s)
    - density = [8388608] bytes
              = [67108864] bits
    - mfg_code = [0x00] ==> error: expected [0x89]

---- ~snip ----

 

The only difference is that my mfg_code is 0x00! 

 

I tried the other example of XAPP1053 to write and readout the SPI-Flash from Microblaze and I received the correct mfg_code in Microblaze (0x89) and everything worked well with the Microblaze example.

 

I also tried the new version that you posted but with no effect. I am using EDK 9.2 and I do not want to update now, because I have to finish a project soon ...

 

Do you have any Ideas or suggestions?

 

Thanks a lot in advance!!!

 

Ulf

0 Kudos
Observer skimura_lynx
Observer
11,535 Views
Registered: ‎03-30-2009

Re: Spartan 3A DSP 1800 SPI flash programming problem

I was getting error code 0xFF when my USB platform cable was detecting a reference voltage, but not able to communicate with the FLASH. I was getting error code 0x00 when my cable wasn't even detecting a reference voltage. But the point is that something in the physical connection is not right when you get those error codes (or so it seems).

 

P.S. Anybody having any issues with "Experiment 4" on XAPP1053? I think I should probably start a new thread for this, but it seems like the UART can't read in my input data which I am giving it from hyperterminal. Any ideas?

Message Edited by skimura_lynx on 04-06-2009 12:27 PM
0 Kudos
Visitor freylin
Visitor
10,455 Views
Registered: ‎12-04-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

I have two DSP 1800 board, but New board can't programming S33 flash
If I use old board to programming, it can program without error.
I get error message ~
mfg_code = [0x20] ==> error: expected [0x89]
Any help would be appreciated

 

Frey

 


##########################################################################
# 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 '../implementation/download.bit' ...
INFO:iMPACT - Elapsed time =      3 sec.
done.
INFO:iMPACT:2257 - Startup Clock has been changed to 'Cclk' in the bitstream
   stored in memory,
   but the original bitstream file remains unchanged.
Dumping bit file ../implementation/download_cclktemp.bit...
INFO:iMPACT:501 - '1': Added Device xc3sd1800a 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 "../implementation/download.mcs".
Writing file "../implementation/download.prm".
------------------------------------------------------------------------
| ==> Checking SPI database [____xspi_database.xdv]
        - version [ 001 . 14k ( 2008 October 17 ) ]: OK
------------------------------------------------------------------------
xip(tm) Version 1.02
Xilinx Intel SPI Programming Utility
Copyright (c) 2003-2008 Xilinx, Inc. All rights reserved.
   Xilinx and other designated brands included herein are trademarks
   of Xilinx, Inc. All other trademarks are the property of their
   respective owners.

**************************************************************************
**//==================================================================\\**
**||                                                                  ||**
**||  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  : Mon Aug 03 14:12:32 2009

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

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

    - cable detected

==> Checking SPI device [Intel_QB25F640S33_BottomBoot_ver_00100] ID code(s)
    - density = [8388608] bytes
              = [67108864] bits
    - mfg_code = [0x20] ==> error: expected [0x89]

Finish : Mon Aug 03 14:12:32 2009
Elapsed clock time (00:00:00) = 0 seconds

0 Kudos
Voyager
Voyager
6,254 Views
Registered: ‎10-01-2007

Re: Spartan 3A DSP 1800 SPI flash programming problem

I believe in the recently built boards that the S33 flash was replaced with M25 flash.  You can look at the chip markings on the flash on your board to be sure.  The mfg_code of 0x20 matches ST Micro, which is now Numonyx.

 

The M25 flash can be programmed directly or indirectly with iMPACT, so I recommend you look at any documentation that shows this.  You could also open a support case with Xilinx to request the documentation be updated to reflect the flash change on the board.

 

Bryan

0 Kudos
Visitor freylin
Visitor
6,233 Views
Registered: ‎12-04-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

Dear Bryan

Thanks your help very much. Our new DSP1800 board was replaced with M25 Flash.

But I refer xapp974.pdf to program M25P64B

The result is "Program Failed"

The program is idcode non-match.

Conld you know what thing is wrong setting from following log ?

 

 

// *** BATCH CMD : addDevice -p 1 -file "D:/FPGA/tmpV2.3/implementation/download.bit"
'1': Loading file 'D:/FPGA/tmpV2.3/implementation/download.bit' ...
done.
INFO:iMPACT:501 - '1': Added Device xc3sd1800a successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
Selected part: M25P64
// *** BATCH CMD : attachflash -position 1 -spi "M25P64"
// *** BATCH CMD : assignfiletoattachedflash -position 1 -file "D:/FPGA/tmpV2.3/implementation/FPGA.mcs"
// *** BATCH CMD : Program -p 1 -spionly -e -v
INFO:iMPACT:583 - '0': The idcode read from the device does not match the idcode in the bsdl File.
INFO:iMPACT:1578 - '0':  Device IDCODE :        00001111111111111111111111111111
INFO:iMPACT:1579 - '0': Expected IDCODE:    00000011100001000000000010010011
INFO:iMPACT:583 - '1': The idcode read from the device does not match the idcode in the bsdl File.
INFO:iMPACT:1578 - '1':  Device IDCODE :        00001111111111111111111111111111
INFO:iMPACT:1579 - '1': Expected IDCODE:    00000011100001000000000010010011
PROGRESS_END - End Operation.
Elapsed time =      0 sec.
PROGRESS_START - Starting Operation.

0 Kudos
Newbie billewilson
Newbie
6,043 Views
Registered: ‎09-07-2009

Re: Spartan 3A DSP 1800 SPI flash programming problem

I am having the same problem, did you ever get it answered?
0 Kudos
Visitor freylin
Visitor
6,011 Views
Registered: ‎12-04-2008

Re: Spartan 3A DSP 1800 SPI flash programming problem

Dear Billewilson

 

This is my way to programming M25P64B for you reference.

1. generate *.mcs file

    Don't use software flows for SPI File Preparation and Programming

2. use " Direct SPI Configuration " in the Flows to programming M25P64B

 

Best regards,

Frey

0 Kudos
Newbie epxa10
Newbie
5,851 Views
Registered: ‎09-28-2009

Re: Spartan 3A DSP 1800 SPI flash programming problem

I got same ERROR message /.\

 

When I upload bootloader via flyleads

 

Use "SPI_bc_bootload.bat" with speedway By AVnet supported.

 

Humm....So....How can i do??

 

TKS for reply ;-)

Message Edited by epxa10 on 09-28-2009 08:11 AM
0 Kudos
Visitor jbaxter
Visitor
4,081 Views
Registered: ‎11-05-2010

Re: Spartan 3A DSP 1800 SPI flash programming problem

Was this ever fixed?

 

It's very strange that the only way to program this SPI flash externally is by using some bespoke Windows program.

 

Come on Xilinx, how hard is it to put in a driver for ths S33 flash into impact for indirect programming?

0 Kudos