Boyd Posted June 21, 2023 Share Posted June 21, 2023 Hello i'm new to FPGA programming. My Hello world doesnt work. I'm using Zybo Zynq-7000 board. I don't know why the UART doesn't work. I followed a few tutorials already, but I can't get it to work. Also I need to know what the xdc file needs to look like, because this is not very clear to me for UART1. Can somebody help me with this? Zybo_Master.xdc design_1_wrapper.vhd Link to comment Share on other sites More sharing options...
1 artvvb Posted June 23, 2023 Share Posted June 23, 2023 Hi @Boyd The latest block design looks fine, assuming you are using block automation to apply the zynq preset from the board files. What do your Vitis projects look like? Are you using xil_printf? The code presented towards the end of this guide should work with a default project based on the empty C application template - though note some customization is needed if your block design doesn't exactly match the one presented. Thanks, Arthur Link to comment Share on other sites More sharing options...
0 Abady Posted June 22, 2023 Share Posted June 22, 2023 Are you trying to read and write to the uart on the USB port? If this was the case then you are probably won't need this IP, the USB probably is connected to the PS side in the of the FPGA (bank 501) If you are trying to use UART from the GPIOs, then you probably need to check your connection from the schematic, and also you should either use the bus connection or the wire connection (either uart_rtl or rx_0&tx_0, not both), I think this should make your UART work Link to comment Share on other sites More sharing options...
0 Boyd Posted June 22, 2023 Author Share Posted June 22, 2023 I'm trying to read and write to the uart on the USB port. I deleted the IP, but it still doesn't work. I don't know what I'm doing wrong really... You can find my code that is generated from the IP + a picture of my new IP. design_1_wrapper.vhd Link to comment Share on other sites More sharing options...
0 Boyd Posted June 23, 2023 Author Share Posted June 23, 2023 Ok I changed the IP to this again and I know from tutorials that this should work, but it does not for me!!! Even changing in Vitis to use the ps7_init.h did not work for me. I just want the uart to work and print Hello world to the screen. Can somebody help me please? design_1_wrapper.vhd Link to comment Share on other sites More sharing options...
0 Boyd Posted June 24, 2023 Author Share Posted June 24, 2023 (edited) I tried the example, but it still doesn't work. It just doesn't send anything the Rx led doesn't blink and neither do the leds on the board turn on if I push the buttons. I build it and I run it. I don't know where to look also, I tried everything... The board is also a couple of years old, but if I code in VHDL everything works fine. design_1_wrapper.vhd main.c Zybo_Master.xdc Edited June 24, 2023 by Boyd Link to comment Share on other sites More sharing options...
0 Boyd Posted June 25, 2023 Author Share Posted June 25, 2023 Ok I found the solution I needed to pick Zybo en not z7-10 in the beginning of making the vivado project. Thank you for your help!!! artvvb 1 Link to comment Share on other sites More sharing options...
Question
Boyd
Hello i'm new to FPGA programming.
My Hello world doesnt work.
I'm using Zybo Zynq-7000 board.
I don't know why the UART doesn't work.
I followed a few tutorials already, but I can't get it to work.
Also I need to know what the xdc file needs to look like, because this is not very clear to me for UART1.
Can somebody help me with this?
Zybo_Master.xdc design_1_wrapper.vhd
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now