element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
RFSoC Boards Avnet RFSoC Explorer Failed to Connect to Target
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 10 replies
  • Subscribers 326 subscribers
  • Views 1941 views
  • Users 0 members are here
  • RFSoC Explorer 2.2
  • Failed to connecto to target
Related

Avnet RFSoC Explorer Failed to Connect to Target

dchien
dchien over 2 years ago

Several months ago I was able to run Avnet RFSoC Explorer 2.2 on ZCU208 evaluation board. I tried to run the same application today and it failed to connect to target. Below is a history from my command window. I then tried to ping the board's IP address and the board was respoding to my ping. What is wrong with my setup?

Thanks.

---------

Prepending following Xilinx Vivado path(s) to the system path:
C:\Xilinx\Vivado\2020.2\bin
Target board [3] ZCU208
Opening Avnet RFSoC Explorer...
Failed to connect to target at 169.254.184.100
>> !ping 169.254.184.100

Pinging 169.254.184.100 with 32 bytes of data:
Reply from 169.254.184.100: bytes=32 time=1ms TTL=64
Reply from 169.254.184.100: bytes=32 time=1ms TTL=64
Reply from 169.254.184.100: bytes=32 time=1ms TTL=64
Reply from 169.254.184.100: bytes=32 time=1ms TTL=64

Ping statistics for 169.254.184.100:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
>>

  • Sign in to reply
  • Cancel
  • mbrown
    0 mbrown over 2 years ago

    Have you tried to ping from the board to the host PC? Are you on a corporate LAN that may be blocking inbound traffic from unauthorized remotes?
    I would also try to reboot the zcu208, then after boot open a serial terminal and confirm that a service called 'rftool' is running.

    top | grep rftool

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dchien
    0 dchien over 2 years ago in reply to mbrown

    You are right about the rftool not running. Recently, our corporate IT department limited USB based devies and potentially could cause it to fail.

    The host computer runs on a spearte USB-LAN adaptor based network connected by a local network switch. The network is not part of the corporate LAN. I have to type "rftool &" to start the rftool. The complete setup was working before our computer updates. Do you think it was caused by our IT's limitations on the USB-LAN adaptor? Why does it not run automatically? Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mbrown
    0 mbrown over 2 years ago in reply to dchien

    Okay, that's progress!


    The SD card image for Avnet RFSoC Explorer contains an autostart.sh shell script where rftool is started just after Linux boots.

    (The SD image will be different if you are using our ZCU208 Support Package for HDL Coder)

    If linux is able to initialize eth0 on the board, rftool should automatically start. I wouldn't expect anything on the host computer to interfere with that process.

    Have a look at the linux boot log using dmesg. Do you see any type of faults recorded for rftool after boot?

    #!/bin/sh

    # Set true if your network assigns an IP address via DHCP
    # Set false for static IP address
    USE_DHCP=true

    # Static IP address (you can set to this to whatever works for you)
    IPADDR="169.254.10.2"

    ifconfig -a | grep eth0
    RESULT=$?
    if [ $RESULT -eq 0 ]; then
      if [ "$USE_DHCP" = false ]; then
          ifconfig eth0 $IPADDR netmask 255.255.255.0
      fi
      rftool &
      /mnt/sd-mmcblk0p1/cots-tcp -p 8083 &
    fi
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dchien
    0 dchien over 2 years ago in reply to mbrown

    The boot has errors and did not complete with rftool. Please see the log below.  The direct firmware load for regulatory.db failed with error. Then, additional problmes followed. Do I run "fsck" to repair the problem?

    In addition, I am using the SD image from the ZCU208 HDL Coder. With your prior link, it takes me to v1.0.2. Currently, I am using v1.0.3 from your previous help. Should I stay with v1.0.3? Should I also update Avnet RFSoC Explorer to v2.3.0? Thanks.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mbrown
    0 mbrown over 2 years ago in reply to dchien

    The 'unmounted' warning can often happen after copying files to the SD card using a PC. The error later on @ 6.494 is concerning as well. Have you tried to re-image your SD card from scratch?

    RE: v2.30

    Yes you should upgrade.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dchien
    0 dchien over 2 years ago in reply to mbrown

    I reformated the SD card long way, not quick format, on computer using File Explorer.  Copied all files from ZCU208 HDL Coder release v_1_0_3 sdcard folder. Reprogrammed the FPGA with my latest design. After rebooting the ZCU208 board, I still don't have rftool running with "top | grep rftool" command. Please see the log with dmesg command. The file corruption message is gone. What should I do next? Thanks.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mbrown
    0 mbrown over 2 years ago in reply to dchien

    The bootlog still has an SD card error: "/dev/mmcblk0p1: can't open blockdev". That might be the problem. Did you format your SD as FAT32 as described in the ZCU208 HDL Coder instructions? Quick Format is sufficient. Is it the same SD card you used previously when this worked?

    I found your earlier question  External 10 MHz Reference Clock for ZCU208 via Simulink HDL IP Core Generation  and remembered that you're attempting a combination that is not officially supported, so results may vary. As a reminder to others reading this thread, Avnet RFSoC Explorer has its own SD card image, different from the SD boot image used for HDL Coder. The experiment in this thread is an attempt to communicate with a MATLAB HDL Coder-generated design using Avnet RFSoC Explorer. Please read the other thread I linked above to understand the caveats.

    dchien Ultimately there may be something in the steps of your custom workflow that either prevents the rftool utility from running, or it runs and exits. You could add your own shell script to simply restart it:


    rftool &

    Even then, Avnet RFSoC Explorer will be of limited use b/c many of its features rely on a specific FPGA design that will not be present in your custom ZCU208 HDL Coder bitstream.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dchien
    0 dchien over 2 years ago in reply to mbrown

    I reformatted the SD card according to the instructions using Window File Explorer. The same SD card was used in the past when it worked. I will try again using a new and formatted SD card.

    You are correct that I try to use the external 10MHz reference clock with the HDL IP generation flow. I am using ZCU208 HDL Coder release v_1_0_3 SD card image from the results in the prior 10 MHz discussion to fix the rftool connection/reconnect issues. This image is not listed in the link you provided for the HDL Coder IP generation.

    After some experiments with the current problem, the rftool does not run after rebooting the FPGA before any commands from the Avnet RFSoC Explorer. I will replace the SD card and try again. Please advise if you see other potential issues.

    In addition, what is the best release combination to have for the HDL Coder design running with Avnet RFSoC Explorer with the 10MHz reference clock API command? I have the following combination:

    • ZCU208 HDL Coder release v_1_0_3 SD card image (not listed in the link you provided and obtained from prior 10MHz discussion)
    • MathWorks release 2022a update 5
    • Avnet RFSoC Explorer release 2.2
    • Xilinx Vivado 2020.2

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dchien
    0 dchien over 2 years ago in reply to dchien

    I replaced the SD card with a new one and followed the formatting procedure. The rftool still does not show after reboot. After issuing commands from MATLAB command window, I often get the board locked up and terminal via ethernet non-responsive. Is my design environment correct? Please help me with my last question in my prior post regarding the tool combination for ZCU208. Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mbrown
    0 mbrown over 2 years ago in reply to dchien

    Hi dchien ,

    Your tool combination (listed above) looks good and seems to match what you had working back in Oct2022External 10 MHz Reference Clock for ZCU208 via Simulink HDL IP Core Generation

    However, I noticed that you listed update 5 on R2022a. Are you certain this is the update that was working in Oct2022?

    Also, I've been in contact with your MathWorks AE about this. He should be contacting you soon to see if we can solve this together.

    Thanks,

    /Matt

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube