I’m using this and it is working can you try it?
from pynq import allocate
from pynq import Overlay
ol = Overlay(“something.bit”)
arr = allocate(shape=(512, 16), dtype=np.int32)
Hi @bartokon, thanks your suggestion!
I don’t understand the device-tree you mean, and the the relationship between this error with DMA.
But I google for “Xilinx APF” and found this post Enabling Xilinx APF Accelerator Driver in PetaLinux, the author mentioned similar problem which is failed to open “/dev/xlnk”. Then he added several configurations about DMA and APF into petalinux configurations.(I don’t familiar with petalinux neither)
Then I looking into the Ultra96-v2 PYNQ image repository and found the configuration file, but do not see any configuration about DMA and APF, could this be the possible cause? If yes, what should I do?
BTW, I upgrade my PYNQ on Ultra96-v2 by using pip3.
I haven’t solve the problem now…, could you share your code?
For me, arr = allocate(shape=(512,16), dtype=dt got Bus error when dt = np.uint16, np.int16, np.uint32 and np.int32. And it works for only np.uint8 and np.int8.
What do you mean by “buffer size is even dimension”?