As I mentioned in another thread, I've added a second PS UART to a design on MIO pins 14-15. The platform project has been updated and I'm back in Vitis. By screwing around with the Xparameters.h, Xprint.c and Xprint.h files, I was able to send strings from Zybo_Z7 to PC over both UARTs, that is the USB UART and the Uart on MIO pins 14-15. I did restore the 3 mentioned files to their original content.
I decided I was wasting some time and really needed to use the already defined methods in the xuartps.h/c files. And to get started, I downloaded the example projects the bsp pointed to (particularly the simple xuartps_hello_world_example). It seems to make sense. So I changed the define to what seemed should obviously send over UART0 (the one connected to MIO 14-15). No luck - data is always transmitted over the USB Uart. I even ran in Debug mode from Vitis, saw the expected 'base address', but still my laptop always receives data over the USB Uart, regardless which line I've uncommented below. Any idea as to what stupid thing I'm doing wrong?
Question
engrpetero
As I mentioned in another thread, I've added a second PS UART to a design on MIO pins 14-15. The platform project has been updated and I'm back in Vitis. By screwing around with the Xparameters.h, Xprint.c and Xprint.h files, I was able to send strings from Zybo_Z7 to PC over both UARTs, that is the USB UART and the Uart on MIO pins 14-15. I did restore the 3 mentioned files to their original content.
I decided I was wasting some time and really needed to use the already defined methods in the xuartps.h/c files. And to get started, I downloaded the example projects the bsp pointed to (particularly the simple xuartps_hello_world_example). It seems to make sense. So I changed the define to what seemed should obviously send over UART0 (the one connected to MIO 14-15). No luck - data is always transmitted over the USB Uart. I even ran in Debug mode from Vitis, saw the expected 'base address', but still my laptop always receives data over the USB Uart, regardless which line I've uncommented below. Any idea as to what stupid thing I'm doing wrong?
Link to comment
Share on other sites
3 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