Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Downloading Software into FPGA Problem

Status
Not open for further replies.

pertinaks

Newbie level 3
Joined
Jul 28, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,319
Hello everyone,

I am new using MicroBlaze and Xilinx SDK, EDK platforms. I couldn't understand how to download the compiled C software (I mean the .elf file) into FPGA. I generated a simple MicroBlaze CPU, instantiated it in a top module in ISE, and exported the hardware design with bitstream to SDK. In SDK I have created a blank C project and compiled the code below. SDK has compiled the code and generated a Release .elf file. There are my questions:
  1. When I try to download bitstream from SDK, and run as launch on hardware, I receive an error message saying that there is no mdm hardware in design. But I have nothing about debugging in software. Is it a mandatory to keep the debugging hardware?
  2. Although there is a top module including microblaze, Is it true to download bitstream via sdk?
  3. When I try to download bitstream via impact, there is no problem but device does not do anything as if the software was not downloaded. Quest: Does impact initialize the blockram with software or should I regenerate the bit file from ISE each time I compile the software?
  4. How do you download the software into FPGA in Xilinx 13.2, can you suggest me a tutorial, video or something like that?

Note: I have double checked the ucf file and it seems correct.
Note: Target board is Spartan 3E Starter Kit from Digilent, Xilinx version is 13.2 licensed as 30-day evaluaiton
Code:
#include <stdio.h>
#include <xuartlite.h>
#include <xuartlite_i.h>
#include <xuartlite_l.h>
#include <xutil.h>

int main (){

	print("Try number: 1");
	return 0;
}

Thanks in advance
 

When I try to download bitstream from SDK, and run as launch on hardware, I receive an error message saying that there is no mdm hardware in design. But I have nothing about debugging in software. Is it a mandatory to keep the debugging hardware?
Although there is a top module including microblaze, Is it true to download bitstream via sdk?

Well SDk is used for debugging the code
when you export from xps to sdk only three files loaded (.bmm, .bit, .xml)
SDK checks code (c program for debuuging)
xps output can be seen in hyperterminal


How do you download the software into FPGA in Xilinx 13.2, can you suggest me a tutorial, video or something like that?

from edk
Timer with Interrupts
Cosmiac - Configurable Space Microsystems Innovations & Applications Center this sites helps in learning xps


FPGA design from scratch. Part 1 « New Horizons - FPGA design - SystemC - Wild Skating - Mac - Linux
 
Last edited:

Hi sanju_,

Thanks for your immediate reply. I have scanned the web sites you sent. I think, my problem is a little bit different. In tutorials everything is crystal clear and everything works perfect. Unfortunately, I don't know if it is because of the version difference, in my Xilinx, some buttons, menus or options are not where they are supposed to be. For example there is no "Device Configuration" menu in my EDK. Instead of that there is a hardware menu but there is not Download Bitstream under that. Do you have any suggestion to solve it?

In addition, I suspect from something else. In SDK I can generate .elf file, but in EDK's project files tree, no elf file exists. ("Project Files > Elf Files > microblaze_0 > Imp Executable:" , "Sim Executable:" ) Both the Imp and Sim Executables contain no Elf File. Moreover, in ISE, microblaze's Xmp/Elf File Associations refer to bootloop as associated elf file for both implementation and simulation. How can I associate the correct elf file? The contents are not editable.

I am waiting for your suggestions, Thanks again

Below you can find ss for EDK screen and Association window:
CPU3AssociatedElfFile.JPG XPS.JPG
 

i use ise 12.4 it is bit clearer about device configurations and downloading...
better check once 13.1 edk manual....their should be a options

regarding elf i use same "TestApp_Memory_microblaze_0 folder inside elf"
as i did many projects in edk i used to create new user application their right click " mark brams" again right click "set compiler option"
their " click use custom linker script" and used same project folder "TestApp_Memory_microblaze_0 folder " --->ld file and elf file...


try to ask about 13.1 ise in xilinx fourms Xilinx User Community Forums - Xilinx User Community Forums




try use in edk(XPS)
view-->toolbars---->device configurations
 
Last edited:

Hello sanju_,

Thank you very much for your participation. The problem has been solved, but not in 13.1 nor 13.2. The solution I used is a very non-technological and simple solution. I have downdated my Xilinx to 12.4, after a bit struggle everything is OK. It is saying hello to world now. What a nice thing :lol:

Thanks again
 

Hello sanju_,

Thank you very much for your participation. The problem has been solved, but not in 13.1 nor 13.2. The solution I used is a very non-technological and simple solution. I have downdated my Xilinx to 12.4, after a bit struggle everything is OK. It is saying hello to world now. What a nice thing :lol:

Thanks again

Hi,

I am facing the similar problem. Can u pls tell me what steps u followed to get it done.

Thanks in advance.
 

hello


Could you tell me how you resolved the problem... I have been facing the same problem when i try to download software(.elf) into FPGA.

Here I am using ISE 13.2. I have designed Microblaze in XPS and Exported to SDK, there i have written .C application(for LED blinking). Then if I try to download .elf in to FPGA (In SDK: Xilinx tools--> program FPGA), I am getting error as FPGA Configuration is failed.

How do I Cofigure FPGA without using iMPACT(i.e without using Xilinx Cables)


my target board is Nallatech Virtex4 Xtreme DSP kit.


plz help me in resolving this problem...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top