PYNQ: PYTHON PRODUCTIVITY FOR ZYNQ

Can pySerial be used to control the UART on PYNQ?

Hi, dear PYNQ elites,

In PYNQ, there is UART (0 or 1) in the PS side. If the user use the UART on PYNQ to communicate with other board, it needs to have the UART driver code on the PYNQ. From the existing PYNQ doc and library code, I don’t find any python example code for UART control but GPIO and IIC etc.

However, I found the following library pySerial for UART control SW. As you know, can we install the pySerial package on the Linux on PYNQ for the UART control of PYNQ ?

Or user needs to write the UART driver code for the PYNQ.

Or where can user find the python example code for UART control on PYNQ.

Thank you
All the best,

Have you tried https://github.com/Xilinx/PYNQ/blob/master/boards/sw_repo/pynqmb/src/uart.c

You can try it out on ipython microblaze; I think I did some testing in the past - it worked. You can do some testing with the base overlay, where microblaze is controlling the uart.

Hi, Rock,

Thanks for the information.

Actually, we would like to use the uart on ARM CPU instead of microblaze on PYNQ in the original plan. Do you know if there has any python UART example on ARM CPU on PYNQ ?

All the best,