Skip to content
New issue

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

ConnectionError: Could not connect to PL server in "4-Packaging-An-Overlay.ipynb" #11

Open
pkstud opened this issue Jun 3, 2019 · 2 comments

Comments

@pkstud
Copy link

pkstud commented Jun 3, 2019

  • PYNQ version: 2.4 Release 2019_02_21 2382a55
  • Board: PYNQ-Z1
  • Vivado 2017.4

Until notebook 4 Packaging-An-Overlay everything went fine but instantiating the overlay leads to the following error:
ConnectionError: Could not connect to PL server

Has anybody else experienced these issues and does anyone know how to fix it?

Full output:

import sys
sys.path.insert(0, '/home/xilinx/RISC-V-On-PYNQ/riscvonpynq/picorv32/')

from tut.tutorial import TutorialOverlay

overlay = TutorialOverlay("tutorial.bit")

/usr/local/lib/python3.6/dist-packages/pynq/overlay.py:299: UserWarning: Users will not get PARAMETERS / REGISTERS information through TCL files. HWH file is recommended.
  warnings.warn(message, UserWarning)
---------------------------------------------------------------------------
ConnectionError                           Traceback (most recent call last)
<ipython-input-2-6d8ffe0f6845> in <module>()
      4 from tut.tutorial import TutorialOverlay
      5 
----> 6 overlay = TutorialOverlay("tutorial.bit")

/usr/local/lib/python3.6/dist-packages/riscvonpynq/Overlay.py in __init__(self, bitfile, **kwargs)
     83         if(not os.path.isabs(bitfile)):
     84             bitfile = os.path.join(self.__get_path(), bitfile)
---> 85         super().__init__(bitfile, **kwargs)
     86 

/usr/local/lib/python3.6/dist-packages/pynq/overlay.py in __init__(self, bitfile_name, download, ignore_version)
    313 
    314         if download:
--> 315             self.download()
    316 
    317         self.__doc__ = _build_docstring(self._ip_map._description,

/usr/local/lib/python3.6/dist-packages/pynq/overlay.py in download(self, partial_bit)
    377                     Clocks.set_pl_clk(i)
    378 
--> 379             super().download()
    380             PL.reset(self.parser)
    381         else:

/usr/local/lib/python3.6/dist-packages/pynq/pl.py in download(self)
   1936         # use fpga manager to download bin
   1937         if not self.partial:
-> 1938             PL.shutdown()
   1939             flag = '0'
   1940         else:

/usr/local/lib/python3.6/dist-packages/pynq/pl.py in shutdown(cls)
   1456 
   1457         """
-> 1458         ip = cls.ip_dict
   1459         for name, details in ip.items():
   1460             if details['type'] == 'xilinx.com:ip:pr_axi_shutdown_manager:1.0':

/usr/local/lib/python3.6/dist-packages/pynq/pl.py in ip_dict(cls)
   1295 
   1296         """
-> 1297         cls.client_request()
   1298         cls.server_update()
   1299         return cls._ip_dict

/usr/local/lib/python3.6/dist-packages/pynq/pl.py in client_request(cls, address, key)
   1417         except FileNotFoundError:
   1418             raise ConnectionError(
-> 1419                 "Could not connect to PL server") from None
   1420         cls._bitfile_name, cls._timestamp, \
   1421             cls._ip_dict, cls._gpio_dict, \

ConnectionError: Could not connect to PL server

@pkstud
Copy link
Author

pkstud commented Jun 4, 2019

FYI: rebooting the PYNQ board is a temporary fix for this issue

@drichmond
Copy link
Owner

This happens when the PL server goes down. Without more detail it's hard to help

But you can run sudo service pl_server restart and see if that fixes the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants