<p>Hi!</p>
<p>I am new with the zedboard and I am having problems with the example project (peripheral test) of SDK and with GPIO.</p>
<p>I have configured my board in Vivado to have one AXI GPIO with the board presets (8 leds). Whe I go to the SDK and try to do the SetDataDirection the program blocks.</p>
<p>I put here the code:</p>
<div>
t#include <stdio.h></div>
<div>
t#include "platform.h"</div>
<div>
t#include "xil_printf.h"</div>
<div>
t#include "xparameters.h"</div>
<div>
t#include "xgpio.h"</div>
<div>
t </div>
<div>
tXGpio gpio;</div>
<div>
t </div>
<div>
tvoid CheckLeds(){</div>
<div>
tint status = XST_FAILURE;</div>
<div>
tstatus = XGpio_Initialize(&gpio, XPAR_AXI_GPIO_0_DEVICE_ID);</div>
<div>
tif(status != XST_SUCCESS){</div>
<div>
tprintf("Error");</div>
<div>
t}else{</div>
<div>
tprintf("Success");</div>
<div>
t}</div>
<div>
t </div>
<div>
tXGpio_SetDataDirection(&gpio,1,0x00);</div>
<div>
tXGpio_DiscreteWrite(&gpio,1,0xFF);</div>
<div>
t}</div>
<div>
t </div>
<div>
tint main()</div>
<div>
t{</div>
<div>
t init_platform();</div>
<div>
t print("Hello World
r");</div>
<div>
t CheckLeds();</div>
<div>
t while(1){</div>
<div>
t </div>
<div>
t </div>
<div>
t }</div>
<div>
t cleanup_platform();</div>
<div>
t return 0;</div>
<div>
t}</div>
<p>Thanks in advance.</p>
<p> </p>
<p>EDIT: Finally I get it!</p>
<p>The problem is that I didn't run ps7_postconfig, this file is thought to prepare the PL/PS boundary.</p>
<p>I hope this post could be usefull for other guys like me :).</p>
<p>Bye</p>