Sorry, you need to enable JavaScript to visit this website.

Basic Bare metal application not loading on Zedboard

Solved
7 posts / 0 new
kini3105's picture
kini3105
Junior(0)
Basic Bare metal application not loading on Zedboard

Hi,
I'm trying to get a basic led glowing project up using a bare metal application. After I downloading the bit stream and  the .elf file, I'm not seeing any change on the Zedboard. Even the uart terminal is blank, even though connection is there. The board jumpers are set to jtag mode! I'm sure there is a pretty simple reason as to what I'm not doing right! But I'm not able to put my finger on it! Can someone please explain! 

JFoster's picture
JFoster
Moderator(48)
Hello Kini3105,

Hello Kini3105,

Do you have much experience with Zynq Development? If not I am going to suggest you go through our Zynq Hardware and Zynq Software Development Speedways. You can find them here :

 http://zedboard.org/support/trainings-and-videos

As for the issue you are currently facing. Did you program your Zedboard? If you did that, did you right click on your application your trying to run and click Run As -->Launch On Hardware. This is all covered in the speedways I referenced above as well.

--Josh

kini3105's picture
kini3105
Junior(0)
Hi Josh,

Hi Josh,
As a matter of fact, I do have experience with Zynq development. And I tried dowloading teh same bit stream and .elf file on a different board and it works. But I'm trying to figure out what is wrong with this board. It seems that the program doesn't run completely when I dump the .elf file. This i sthe simple C code i'm running:

//====================================================

#include "xparameters.h"

#include "xgpio.h"

 

int main (void)

{

XGpio led;

 

 

// AXI GPIO LEDs Initialization

XGpio_Initialize(&led, XPAR_AXI_GPIO_0_DEVICE_ID);

 

xil_printf("-- Start of the Program --\r\n");

 

XGpio_DiscreteWrite(&led, 1, 0xff);

 

xil_printf("-- End of the Program --\r\n");

 

 return 1;

}

 

JFoster's picture
JFoster
Moderator(48)
Hello Kini3105,

Hello Kini3105,

Have you tried running the Hello_World application and Peripheral test application templates on your ZedBoard? If those fail, you could possibly have an issue with your hardware design.

--Josh 

kini3105's picture
kini3105
Junior(0)
I finally was able to solve

I finally was able to solve the problem. when we configure the Zynq processor, and select UART 1, the voltage across the bank should be made 1.8. This setting is mentioned in one of the tutorials in the link provided by you. Thank you very much. But I still do not understand why it was working on the other Zedboard and failing in this one. The behavior should have been same in both the Zedboards. 

JFoster's picture
JFoster
Moderator(48)
Hello Kini3105,

Hello Kini3105,

I appreciate you providing your solution! Hopefully it will help others in the future. Perhaps you have two different revisions of ZedBoard? One rev D the other rev C?

--Josh

kini3105's picture
kini3105
Junior(0)
Hi Josh, 

Hi Josh, 
You are right! I just logged in to mention that one board is Rev C and the other is Rev D. You had already said that :) That was the key difference and probably it was because of that.