Hey, pretty new the world of FPGAs and I'm trying to get UART working in both directions.
I'm using the internal UART1 example "xuartps_low_echo_example" provided by the SDK.
Vivado version is 2018.1 and I'm using Windows 7.
The outgoing serial works with both the "xil_printf" function as well as by writing characters to XUARTPS_FIFO_OFFSET.
In the example code, the process never runs past
while(!XUartPs_IsReceiveData(UartBaseAddress));
But I can receive the correct characters on the PC side. Using either the SDK terminal or by using PuTTY, I can receive the ASCII characters "0123456789:;<=>?".
When I try to send characters from the terminal to the board, only the TX led blinks.
COM port settings are 115200 baud rate, 8 data bits, 1 stop bit, no parity, no flow control.
The ZyboZ7 examples on Digilent reference page are mostly for Vivado 2016.4 and don't synthesize successfully.
I've tried with different USB cables.
I've tried the same example code with ZedBoard and MiniZed boards and they worked without any modification.
Only way I've been able to successfully send data to the ZyboZ7 is by using PetaLinux. The terminal showed me the characters I sent and I was able to run commands.
I've also tried Automatic Echo and Remote Loopback modes with no success.
I've attached images of my simple block design. I also included the example c code but it's unmodified from the imported example.
The final intention of the project is teaching students how to work with ARM features, modules and registers.
Question
TeemuAtLUT
Hey, pretty new the world of FPGAs and I'm trying to get UART working in both directions.
I'm using the internal UART1 example "xuartps_low_echo_example" provided by the SDK.
Vivado version is 2018.1 and I'm using Windows 7.
The outgoing serial works with both the "xil_printf" function as well as by writing characters to XUARTPS_FIFO_OFFSET.
In the example code, the process never runs past
But I can receive the correct characters on the PC side. Using either the SDK terminal or by using PuTTY, I can receive the ASCII characters "0123456789:;<=>?".
When I try to send characters from the terminal to the board, only the TX led blinks.
COM port settings are 115200 baud rate, 8 data bits, 1 stop bit, no parity, no flow control.
The ZyboZ7 examples on Digilent reference page are mostly for Vivado 2016.4 and don't synthesize successfully.
I've tried with different USB cables.
I've tried the same example code with ZedBoard and MiniZed boards and they worked without any modification.
Only way I've been able to successfully send data to the ZyboZ7 is by using PetaLinux. The terminal showed me the characters I sent and I was able to run commands.
I've also tried Automatic Echo and Remote Loopback modes with no success.
I've attached images of my simple block design. I also included the example c code but it's unmodified from the imported example.
The final intention of the project is teaching students how to work with ARM features, modules and registers.
Thank you for any assistance.
xuartps_low_echo_example.c
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.