Hello Dears,
I use PYNQ-Z2 board, the pynq version which I am using is v3.1.
Vivado design is attached .
CAN0,1 use from EMIO pins.
The code which I have used is:
from pynq import MMIO
from pynq import Overlay
from pynq import ps
from pynq import GPIO
from pynq import registers
from pynq import allocate
import numpy as np
import sys
sys.path.insert(1, ‘./src’)
ol=Overlay(“./bits/FullInterfaceWrapper.bit”)
ol.download()
ps.Clocks.fclk0_mhz=100.0
BASE_ADDRESS = 0xE0009000#CAN
pynq.mmio() reads and writes from IP in the PL via the GP ports. The CAN IP and base address are associated to the PS, hence when you try to read the board crashes.
Dear @marioruiz , what is the solution to work with CAN in PS section without consuming PL gates? How I can access to these registers for reading and writing into them? Is there any proper library to handle CAN in python environment for Pynq-z2?