Hi team !
I use a Zedboard rev D
SD linux demo is okay (write_led ...)
I use vivado/xsdk 14.1 (but the same with 13.4)
I have written a test design with dual axi-gpio (v4) and exported to xsdk. everything ok
I boot linux (sw 4-1 ON), then flash (with xsdk) wrapper_system.bit then with xmd :
connect arm hw
source ps7_init.tcl
ps7_init
dow mydemo.elf
con
all leds are happily blinking
BUT the same app, without booting linux first, freeze during XGpio_SetDataDirection
I have reproduce this
I double check design ...
any ideas ?
test app :
int status=XGpio_Initialize(&gpio,XPAR_PS7_GPIO_0_DEVICE_ID);
if (status != XST_SUCCESS)xil_printf("xgpio_initialize error
r");
xil_printf("1
r");
XGpio_SetDataDirection(&gpio,1,0x00);
xil_printf("2
r");
XGpio_SetDataDirection(&gpio,2,0x1);
xil_printf("3
r");
XGpioPs_Config *cfg=XGpioPs_LookupConfig(XPAR_PS7_GPIO_0_DEVICE_ID);
xil_printf("11
r");
XGpioPs_CfgInitialize(&gpiops,cfg,cfg->BaseAddr);
xil_printf("12
r");
XGpioPs_SetDirectionPin(&gpiops,7,1);
xil_printf("13
r");
while (1) {
xil_printf("on %x
r",XGpio_DiscreteRead(&gpio,2));
XGpio_DiscreteWrite(&gpio,1,0xaa);
XGpioPs_WritePin(&gpiops,7,1);
getchar();
xil_printf("OFF
r");
XGpio_DiscreteWrite(&gpio,1,0x55);
XGpioPs_WritePin(&gpiops,7,0);
getchar();
}