element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Mini-ITX Hardware Design PS freezes when making use of PL
  • 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 12 replies
  • Subscribers 336 subscribers
  • Views 2811 views
  • Users 0 members are here
Related

PS freezes when making use of PL

cone83
cone83 over 9 years ago

I am encountering very odd problems with my new Mini-ITX board. Whenever I make use of a significant portion of the PL resources, the PS just freezes.

I have done quite a lot of debugging on this, and the only thing that seems to affect this problem is the amount of resources used. I have a test design that does a lot of useless computations. If I allow Vivado to optimize away all the useless stuff and hence greatly reduce the resource usage, then the CPU does not freeze. If I prevent the optimization and use 56% LUTs, then the CPU freezes immediately.

There are no timing timing violations or other errors reported by Vivado. I have now come to a point where I suspect that my Zynq might actually be damaged.

I have created a set of boot files for reproducing this error on a Mini-ITX with Zynq 7100. The boot files can be downloaded here:
https://mega.nz/#F!9hF0kQrZ!RfGgoTnCO0QOtp6MSUFZxg

When booting this configuration, U-boot only manages to print a few lines on UART before the CPU stalls. Usually the output looks like this:

--------------
U-Boot 2015.07-dirty (Apr 09 2016 - 11:32:21 +0200)

Model: Zynq Mini-ITX Board
DRAM:  ECC disabled 1 GiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL128S_64K with page size
--------------

Sometimes it even freezes before being able to print the first line. I would be really thankful if somebody could try out those boot files and report if this error also occurs on other Mini-ITX boards with Zynq 7100 SoCs.

Many thanks

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 9 years ago

    While I don't have a 7z100 version of the Mini-ITX here to work with I was able to get someone to try your project on their board. It got further than you post indicates but did hang at the 'Starting Kernel' step, so it looks like your application and not your Mini-ITX hardware.

     

    You have a lot of things going on here: the fsbl, u-boot, your OS, devicetree, bit stream etc. Is your zynq_fsbl current for your platform or did you copy it from somewhere else?

     

    You might want to check and see if your system will boot correctly with a simple bare-metal program with your PL loaded. Maybe one of the canned memory tests, peripheral tests or an echo test. Or you could write a simple bare-metal 'hello world' with an indication to the terminal that it is running and then load your bit stream to see if it does indeed crash the PS. This could indicate if the problem really is a bit stream that crashes the PS, a problem with your software, or some more complex interaction between the two.

     

    -Gary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cone83
    0 cone83 over 9 years ago in reply to Former Member

    Hi Gary,

    Thank you so much for trying this out. Interesting to see that it got past the 3 second boot delay on another system. The whole thing actually boots nicely If I use a smaller bit stream. It also boots nicely if I use the large bit stream, but have all the logic idle. The system will then freeze immediately when the PL is put to work. On the external interfaces, there is no difference between the small and the large bit stream.

    I'll try chopping this design down even further. Maybe something is wrong with the constraints or the PS configuration. But I have used the original board definition files for these.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cone83
    0 cone83 over 9 years ago in reply to Former Member

    I have now narrowed this down as far as I possibly can. I am left with the following set-up that reproduces the problem

    PL:
    * The design is connected to just one HP_AXI port
    * It is attempted to read approx. 1 MB of data from the AXI port at a speed less than 60 MB/s
    * No writing is performed
    * An AXI Interconnect is wired in between with enabled protocol checking and no errors are reported
    * No other connections exists form the PL to the outside world
    * The processing system configuration is copied from one of the reference designs (I actually copied the XML code from the .bd file)

    PS:
    * Only the u-boot boot console is started
    * No operating system is loaded


    As soon as reading from the AXI port starts, the PS reproducibly stalls. If I allow Vivado to optimize the design and throw away most of the internal logic, everything works fine. But Vivado's optimization should not make any difference on the PL/PS interaction. Nothing happening inside the PL should be allowed to affect the PS in any way.

    So, the only theories that I have left are:

    * There's something wrong with the Mini-ITX board definition files (maybe DDR delay or something)
    * There's a bug in my Vivado version (I'm using 2015.4.1 on Linux)
    * The power consumption pattern of the PL affects the PS
    * Maybe some other hardware bug

    These are all things that I can't do anything about. So, currently the Mini-ITX is nut usable for my purposes. Is there anyone from Avnet I can get in touch with?

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Hello,

     

    You mention in the post above that you are using Vivado 2015.4.1 on Linux. I have seen an issue in the past where Vivado on Linux created incorrect frequencies for PL fabric clocks if the regional settings for the Linux were set to something other than 'US'. Here is a post to the Xilinx Community forums and one on this forum that relate to that issue:

     

    https://forums.xilinx.com/t5/Embedded-Development-Tools/Cannot-Set-specific-clock-frequency-for-PL-Fabric-Clocks-in/td-p/528867/page/2

     

    http://zedboard.org/content/ethernet-does-not-work-linux-314

     

    I don't know if this is an issue in the current version of Vivado, but it might be worth changing the Linux regional setting and regenerating your application to rule it out.

     

    -Gary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cone83
    0 cone83 over 9 years ago in reply to Former Member

    Hi Gary,

    I really appreciate your help on this. I'm aware of Vivado's problems with coping with different regional settings. That's why I already switched all settings to English on my system. I also just tried downgrading to 2015.2 and it produced the same result.

    I think that the same error might also be responsible for my problems with getting PCIe running (other thread), as the PCIe data is also passed through a HP_AXI port. I have ordered the same NIC that is used in the reference design, but that is another topic.

    I'll try if I can get a Windows machine to do a test-build, but building on Windows wouldn't be a longterm solution.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cone83
    0 cone83 over 9 years ago

    I just tried it with 2016.1 on Windows. This time it was running fine for several minutes before freezing. But that's probably due to other changes I did. I was also getting longer run times on my Linux builds recently. It's all just very random.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cone83
    0 cone83 over 9 years ago

    I still haven't made progress on this and it's becoming a major issue. I think that the most likely explanation would be a power issue. I have monitored the supply voltages in chip scope and haven't found any values that would be outside the allowed voltage ranges, but I suppose chipscope wouldn't pick up a short spike in the voltage levels. When I clocked down the design from 125 MHz to 50 MHz it did work, which would support the hypotheses that it is power related. I really can't think of any other way that the PL could be affecting the PS. Could there be a problem with the Min-ITX power circuitry?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cone83
    0 cone83 over 9 years ago

    I'm also not convinced yet that this isn't an issue with my board. Your test got stuck when loading the kernel. This could e.g. also be caused by a faulty device tree. To get sure  I have created a bare metal application for reproducing the fault. The application cycles between periods of low and high CPU loads, as I have found that some bit files work well for as long as the CPU is idle. On a functioning system, this should output something like this:

    Test with low CPU load
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    Test with high CPU load
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    Test with low CPU load
    0
    1
    ...

    For me it usually gets stuck after printing the first two lines. I have made the boot.bin file available at:
    https://mega.nz/#!QgtnRaAR!8QKhi_PFyIKuAeFEGoOdsmup8QKnQBcL6DoDhz6nPzI

    I would be really thankful if you or somebody else could give this another try.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • drozwood90
    0 drozwood90 over 9 years ago

    Hi there,

    I wanted to post and let you know that I was able to run your software on a M-ITX Z100 for the last hour without issues. I also tried to reboot it at least 5 times to ensure I did not see any stuck at boot issues you mentioned.

    I would suggest you check your heat sink + fan that they are performing their function. That the CPU is not getting HOT. I would also validate your power rails and PC Power Supply is hooked up properly to ensure that your rails are not causing your issue.

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • cone83
    0 cone83 over 9 years ago

    Hi Dan,

    thank you so much for testing this. I have actually been monitoring the voltages and the temperature using the XADC and everything seems nominal. I have also tested the board with a different power supply and experienced the same behavior, so I can't really pinpoint the cause.

    Anyway, many thanks for your help. I'll contact Avnet for replacement.

    • 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