PYNQ: PYTHON PRODUCTIVITY

How can I use UART in Microblaze Library

Hey, guys

I have read the ‘PynqMicroBlaze’ part in the doc, but I still can’t get that how I can use the peripherals in MicroBlaze Library (for example: UART). Are there any examples? Or did I miss any important tutorials?

Details:
When I type the following, jupyter notebook tells me “name ‘uart_open’ is not defined”
from pynq.lib import PynqMicroblaze
uart_open(0,1)

When I type the following,
%%microblaze
myuart = uart_open(0,1);
jupyter notebook tells me “File “”, line 1
_proxy.obj =
^
SyntaxError: invalid syntax”

I think I just missed some useful examples or tutorials, but I don’t know how to find them. Any advice will be appreciated, thank you for your help.

Chao Zhang

My board is Ultra96-v2.

You need to have an IOP (IO processor, as in Pynq-z1,z2, or ZCU104 base overlay) to be able to use PynqMicroblaze. Currently we do not have that overlay on ultra96. Did you build any overlay for that?

Hi Rock,

Thank you for your reply.
I didn’t build an overlay for that.
I use ttyPS0 as UART currently, it works well.

Chao Zhang