Nice tutorial.. Can you tell me which debugger are you using for programming and debugging in this video? Which one is good to use for multiple CPU's and FPGA core debugging?
Dear friend Please, I have a problem during reading the status of an output switch on Zybo Z7-10. I use Vitis to program the Zynq processor with Gpio connected to a slid switch. I make the switch (input2) status as a condition as shown in the program below if (D == 1) ; The following program works only when the input2 signal that was connected to Gpio IP starts from ("1") but the program does not work when input2 signal starts from ("0"). ////////// while (1) { D = XGpio_DiscreteRead(&input2, 1); // input2 from a slide switch if (D == 1) { sum_all = XGpio_DiscreteRead(&input, 1); // input is a 32-bit data printf("%x " , sum_all); sleep (1); } else { XGpio_DiscreteWrite(&output, 1, 0); // output is a LED printf("No_Signal "); sleep (1); } } ///////////// i.e. the program works only when I change input2 from "1" to "0" but does not work when the input2 start changes from "0" to "1".
what is the 220 course that's mentioned in this video?
Thanks!
Nice tutorial.. Can you tell me which debugger are you using for programming and debugging in this video? Which one is good to use for multiple CPU's and FPGA core debugging?
Hello,
Can I have the working code for the vitis please
Did you find the error? What was the fix?
For one thing, he used _BASEADDR instead of _DEVICE_ID with XGpio_Initialize().
In addition to John's comment, use 1 for the GPIO Channel.
It turns out you can see the completed code at the beginning of the BYU Computing Bootcamp Vitis HLS video.
@@johnjj2637 bro, in the libary "xparameters.h", there only XPAR_AXI_GPIO_0_BASEADDR, no _DEVICE_ID was declared there
Dear friend
Please, I have a problem during reading the status of an output switch on Zybo Z7-10.
I use Vitis to program the Zynq processor with Gpio connected to a slid switch. I make the switch (input2) status as a condition as shown in the program below if (D == 1) ;
The following program works only when the input2 signal that was connected to Gpio IP starts from ("1") but the program does not work when input2 signal starts from ("0").
//////////
while (1)
{ D = XGpio_DiscreteRead(&input2, 1); // input2 from a slide switch
if (D == 1)
{ sum_all = XGpio_DiscreteRead(&input, 1); // input is a 32-bit data
printf("%x
" , sum_all);
sleep (1); }
else
{ XGpio_DiscreteWrite(&output, 1, 0); // output is a LED
printf("No_Signal
");
sleep (1); }
}
/////////////
i.e. the program works only when I change input2 from "1" to "0" but does not work when the input2 start changes from "0" to "1".
58:03 this indentation is a test to my ocd...
47:00