cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ml
Visitor
Visitor
3,157 Views
Registered: ‎07-05-2010

program SPI Flash with fpga bitstream and MicroBlaze elf file

Hello everybody;

For an embedded project, we use an SPARTAN 6 FPGA  (ISE/EDK 12.2) with included MicroBlaze processor. The firmware should be placed in the BlockRam (2 BlockRam blocks 128kByte). It works fine, when I program the FPGA via IMPACT. (bit-stream is created with data2mem).

But when I create an mcs file, to program the SPI-Flash (to boot the FPGA) it doesn't work, This means, IMPACT prompts an error massage:

"PROGRAM FAILED:   '1': Configuration data download to FPGA was not successful. DONE did not go high, please check your configuration setup and mode settings.
INFO:iMPACT - '1': Flash was not programmed successfully.
PROGRESS_END - End Operation."

When I read back the FLASH contents, the read back file looks similar (the flash is bigger 8MByte, FPGA download file 1,5MByte).
 Without the merged elf  file it works. How can I solve this? Any Idea?

Best regards

Matthias Lamp

 

 

0 Kudos
2 Replies
panorro
Observer
Observer
2,954 Views
Registered: ‎04-08-2010

Be sure you have your M0 and M1 bits connected correctly. For booting in SPI mode M0 must be 1 and M1 must be 0. 

 

After programming iMPACT try to boot from SPI, and waits for DONE pin from FPGA. If booting is not correct, and DONE is not asserted, iMPACT will report a Program Failure.

 

regards, 

 

Jose Luis

0 Kudos
tibacou
Explorer
Explorer
2,398 Views
Registered: ‎02-17-2013

Hey 

Did you resolve your problem ? 

Best Regards. 

0 Kudos