We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
o = Overlay(r'overlay/design7.xsa') o.qspi_master_hier.axi_quad_spi.register_map
SPI DRR
__init__
pynq.registers.RegisterMap
based on this I created some sample code to see where the python kernel crashes:
from pynq import Overlay o = Overlay(r'overlay/design7.xsa') rs = pynq.registers.RegisterMap.create_subclass(o.qspi_master_hier.axi_quad_spi._register_name, o.qspi_master_hier.axi_quad_spi._registers)(o.qspi_master_hier.axi_quad_spi.mmio.array) buf = o.qspi_master_hier.axi_quad_spi.mmio.array array32 = buf.view(dtype='u4') array32[0x10] = 0xa # resetting spi core for k, v in rs._register_classes.items(): index = v[1] // 4 print("%02X " % (v[1]//4), end='') sleep(1) print("\n") for k, v in rs._register_classes.items(): index = v[1] // 4 if index == 0x1B: continue print("%02X " % (v[1]//4), end='') sleep(0.1) array = array32[index:index+1] print("= %02X" % array[0]) sleep(1) print("\n") for k, v in rs._register_classes.items(): index = v[1] // 4 print("%02X " % (v[1]//4), end='') sleep(0.1) array = array32[index:index+1] # axi bus gets timeout when trying to excess empty rx fifo print("= %02X" % array[0])
Output:
18 19 10 18 19 1C 1D 1E 07 1A 1B 08 0A 18 = 180 19 = AD 10 = 00 18 = 180 19 = AD 1C = 01 1D = 00 1E = 00 07 = 00 1A = 00 08 = 400 0A = 00 18 = 180 19 = AD 10 = 00 18 = 180 19 = AD 1C = 01 1D = 00 1E = 00 07 # *Python kernel Restarts here*
pynq.pl_server.embedded_device.EmbeddedDevice
mmap()
array = np.frombuffer(mem, np.uint32, length >> 2, virt_offset)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SPI DRR
- causing timeout on AXI when FIFO is empty__init__
-function of classpynq.registers.RegisterMap
based on this I created some sample code to see where the python kernel crashes:
Output:
pynq.pl_server.embedded_device.EmbeddedDevice
the functionmmap()
will be called.array = np.frombuffer(mem, np.uint32, length >> 2, virt_offset)
will cause the whole linux kernel to crash.The text was updated successfully, but these errors were encountered: