Hi All,
I have a zcu-104 board with pynq image on it, and I normally program it with a script that goes through the following steps (copied from Jupiter examples):
import sys
sys.path.append(“/home/xilinx/pynq”)
from random import randint
from pynq import MMIO
from pynq import PL
from pynq import Overlay
from pynq import Interrupt
import os
bspath = ‘bitfiles/’
PL = Overlay(bspath + ‘bistream.bit’ )
Everything worked ok till few days ago when I last programmed the board.
Today at PL = Overlay(bspath + ‘bistream.bit’ ) I’m facing this:
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 315, in init
self.download()
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 379, in download
super().download()
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1938, in download
PL.shutdown()
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1458, in shutdown
ip = cls.ip_dict
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1297, in ip_dict
cls.client_request()
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1416, in client_request
cls._remote = Client(address, family=‘AF_UNIX’, authkey=key)
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 487, in Client
c = SocketClient(address)
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
Error in sys.excepthook:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/apport_python_hook.py”, line 63, in apport_excepthook
File “/usr/lib/python3/dist-packages/apport/init.py”, line 5, in
from apport.report import Report
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 779, in get_code
File “”, line 487, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Original exception was:
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 315, in init
self.download()
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 379, in download
super().download()
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1938, in download
PL.shutdown()
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1458, in shutdown
ip = cls.ip_dict
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1297, in ip_dict
cls.client_request()
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1416, in client_request
cls._remote = Client(address, family=‘AF_UNIX’, authkey=key)
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 487, in Client
c = SocketClient(address)
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
This happens always: by running the script, by doing step by step manually, by connection to the board via ssh, by using the terminal.
Apparently nothing has been changed on the board till the last time it was programmed successfully. Any idea of what is happening?
Thanks in advance.