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 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
      •  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
FPGA
  • Technologies
  • More
FPGA
Forum Problems with sample Zmod SDK project for USB104 A7
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join FPGA to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 8 replies
  • Answers 5 answers
  • Subscribers 557 subscribers
  • Views 2575 views
  • Users 0 members are here
  • usb104 a7
  • fpga
  • zmod
Related

Problems with sample Zmod SDK project for USB104 A7

Fred27
Fred27 over 4 years ago

Whilst road testing the USB104 A7, I decided to see how it worked with the ADC and DAC Zmods that were supplied with the Eclypse Z7. Unfortunately I seem to be having some strange issues with the sample code. I've already asked about this on the Digilent forums, but have so far received no reply so I thought I'd ask here. I was about to describe these problems in my road test, but decided that I should check first in case it's user error! I'll paste what I wrote there:

I'm trying to use the ZmodADC and ZmodDAC with the Digilent USB104 A7. I'm hitting the same problem with both SDK projects, after very carefully following the supplied instructions. I'm using Windows 10 and Vivado / SDK 2019.1.

 

When I run the project the main entry point does not get hit. Setting "Stop at program entry" shows that ZMODADC1410:setCalibValues or ZMODDAC1411::getSignedRawFromVolt is hit on entry rather than main. I don't believe either are called from their respective constructors.

 

I had no problems with the DSPI demo (obviously using Vitis 2020.1). I had no problems with the Zmods on an Eclypse Z7.

I had recorded a video of what's happening, but I seem to have deleted it. If nobody has any suggestions I'll re-record it.

 

Update: Rerecorded video

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply
  • Cancel

Top Replies

  • Fred27
    Fred27 over 4 years ago in reply to 14rhb +1 suggested
    Well, with your help 14rhb I've finally found the answer. I think the bitstream under /FPGA/sdk_workspace is the problem. I thought I'd rebuilt it from Vivado, but it seems I hadn't. (I'm sure I'd seen…
Parents
  • 14rhb
    0 14rhb over 4 years ago

    Hi Fred27

     

    Following my comment in your roadtest page discussion I have investigated and also installed Vivado 2019.1 - although currently I am unsure if it is registered under my old license or indeed fully up-to-date. But at least its a start.

     

    That let me (1) learn how to choose which version to run depending on the task or example available on internet (2) from that I can hopefully also install other versions (3) try out the ZMOD DAC example.

     

    Firstly, once I'd setup the workspace to point at my extracted ZMOD DAC folder I was able to import the three project components - HW, BSP and SW. I re-built the BSP and that worked this time (as opposed to when I was using Vivado 2018.3 and it failed to generate the BSP). Initial build failed due to DPTI and I always end up stumbling my way through includes, the double quotes failed even with the path added...angle brackets to search the include path I manually added did work!

    #include <stdio.h>
    #include "platform.h"
    #include "xil_printf.h"
    #include <dpti.h>
    #include "ZmodDAC1411/zmoddac1411.h"

     

    That built and I downloaded the ELF and bit stream as you did....all good.

     

    I added a breakpoint and started the debug session, SDK changed to the debug perspective and stopped at the DemoInitialise call, I was then able to step into that function.

    image

    image

    image

     

    The only thing along the way that I ignored was this message:

    image

     

    Whilst the above may not help directly it shows the code and project can be built. Unfortunately I don't have the ZMOD DAC so I cannot actually see if it works.

     

    Let me know if you need any other screenshots of settings or try bits out.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Fred27
    0 Fred27 over 4 years ago in reply to 14rhb

    Well, with your help 14rhb I've finally found the answer. I think the bitstream under /FPGA/sdk_workspace is the problem. I thought I'd rebuilt it from Vivado, but it seems I hadn't. (I'm sure I'd seen the "do you want to reload the changed hardware platform" popup in SDK, but maybe I hadn't. Maybe it was the "An exported file for this module was found at this location. Do you want to overwrite it?" warning in Vivado I'd seen.

     

    Anyway, if you rebuild the bitstream and use Launch SDK from Vivado - ignoring the instruction in the readme that specifically tell you to not to do this - then you can get it to work!

     

    OK - back to my road test...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • 14rhb
    0 14rhb over 4 years ago in reply to Fred27

    Great news Fred27 ...onwards we both go  image. As far as I recall I didn't even rebuild the bitstream but I did also launch SDK straight from Vivado this time.

     

    "do you want to reload the changed hardware platform"

    Sometimes I find this pops up at the front position and sometimes it remains hidden under other windows....sometimes I'm sure it doesn't display anywhere.

     

    By the way I've also added in Vivado 2020.2 to my laptop and apart from trouble with the boards initially it went well; a dusting of chmod and chown remedied my issues.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Fred27
    0 Fred27 over 4 years ago in reply to 14rhb

    14rhb  wrote:

    By the way I've also added in Vivado 2020.2 to my laptop and apart from trouble with the boards initially it went well; a dusting of chmod and chown remedied my issues.

    I suspect with multiple Vivado installations, the trouble you'll soon be having is lack of disk space! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • Fred27
    0 Fred27 over 4 years ago in reply to 14rhb

    14rhb  wrote:

    By the way I've also added in Vivado 2020.2 to my laptop and apart from trouble with the boards initially it went well; a dusting of chmod and chown remedied my issues.

    I suspect with multiple Vivado installations, the trouble you'll soon be having is lack of disk space! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
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