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
      •  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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Ultra96 Hardware Design ULTRA96 FPGA programming + Petalinux application development
  • 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
  • Replies 4 replies
  • Subscribers 348 subscribers
  • Views 1094 views
  • Users 0 members are here
Related

ULTRA96 FPGA programming + Petalinux application development

u6113500
u6113500 over 6 years ago

Hi all,

My PL + PS application works om bare-metal Ultra96 and I can built Petalinux for this board as well. Now I want to move my application to petalinux environment.
How do I program FPGA and run C code in petalinux?
Can anyone share his approach (or a tutorial) for PL programming and Petalinux application development?
To program FPGA do I have to rebuilt BOOT.bin by using petalinux command below?

$ petalinux-package --boot --fsbl components/plnx_workspace/fsbl/fsbl/Release/fsbl.elf --fpga hardware/design_1_wrapper.bit --pmufw components/plnx_workspace/pmu-firmware/pmu-firmware/Release/pmu-firmware.elf --u-boot

where "design_1_wrapper.bit" is exported from my Vivado project?

Do I have to generate FSBL and pmu-firmware.elf myself as well?

Can I use SDK to program FPGA and run C applications on petalinux (ULTRA96 board SD card boot mode)?

 

Thank you,
Anton

  • Sign in to reply
  • Cancel
Parents
  • kevinkeryk
    kevinkeryk over 6 years ago

    Hi Anton,

     

    When you change the underlying hardware from the default included with the BSP, you will need to pull the new hardware description into your PetaLinux project using the "petalinux-config --get-hw-description=" command as outlined in UG1144:

     

    image

     

    Once you get the new hardware configuration pulled in, build everything by running "petalinux-build" command.

     

    Finally, you can package everything up with your "petalinux-package" command.

     

    As for getting your application working, my suggestion is to get it working as a new SDK Linux application project first, then pull the application code into a new PetaLinux app under your PetaLinux project.

     

    For connecting to the TCF Agent, we have some lab materials that cover connecting to the profiler using SDK that you might find useful:

     

    https://www.hackster.io/xdf2018/xdf-2018-linux-application-development-on-ultra96-b8388d

     

    Did you run "petalinux-build" command after you enabled tcf-agent in your PetaLinux project?  If you did not, then tcf-agent might not have gotten baked into the RootFS image properly.

     

    Best Regards,

     

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • kevinkeryk
    kevinkeryk over 6 years ago

    Hi Anton,

     

    When you change the underlying hardware from the default included with the BSP, you will need to pull the new hardware description into your PetaLinux project using the "petalinux-config --get-hw-description=" command as outlined in UG1144:

     

    image

     

    Once you get the new hardware configuration pulled in, build everything by running "petalinux-build" command.

     

    Finally, you can package everything up with your "petalinux-package" command.

     

    As for getting your application working, my suggestion is to get it working as a new SDK Linux application project first, then pull the application code into a new PetaLinux app under your PetaLinux project.

     

    For connecting to the TCF Agent, we have some lab materials that cover connecting to the profiler using SDK that you might find useful:

     

    https://www.hackster.io/xdf2018/xdf-2018-linux-application-development-on-ultra96-b8388d

     

    Did you run "petalinux-build" command after you enabled tcf-agent in your PetaLinux project?  If you did not, then tcf-agent might not have gotten baked into the RootFS image properly.

     

    Best Regards,

     

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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