element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Run program from flash
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 6 replies
  • Subscribers 176 subscribers
  • Views 206 views
  • Users 0 members are here
Related

Run program from flash

cascade99
cascade99 over 8 years ago

I'm new on using Zedboard, I have simple program using FreeRTOS, I can run it from RAM. I created BOOT.bin on SDK, but after I did "Program Flash", my program didn't run, anyone knows why?  -- Thanks

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

    Hello Lynn,

     

    You don't really give us enough information to help very much. What version of Xilinx tools/SDK are you using? What is your host OS? Did you change the boot jumpers on the Zedboard to indicate your new boot location?

     

    How did you create your boot image? Are you trying to boot from QSPI Flash or SD Card? A boot.bin image is used to boot from SD Card but you should generate a .mcs image for a QSPI boot.

     

    Even though it is targeting the MicroZed Board this tutorial should be a good place for you to start:

    http://zedboard.org/sites/default/files/design/04_MZPZ_FSBL_Boot_2015_2_01.zip

     

    Just use the fsbl.elf you generated for your zedboard project, along with your system_wrapper.bit file (if you have one) and the .elf file you generated for your FreeRTOS program in the 'Create Zynq Boot Image' application.

     

    Also note that I deleted your duplicate post on this issue. Please to not make multiple forum posts with the same question.

     

    -Gary

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

    I'm using freeRTOS, latest SDK, is it possible I load image to QSPI flash directly from PC without using SD card?
    The link is for MicroZed, if I following the step, will it work for ZedBoard?
    Thanks

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

    Lynn,

     

    The tutorial link is for MicroZed but, except for targeting your hardware project to ZedBoard, the flow will work the same. Once you have generated your .mcs image you can use the 'Program Flash' function under 'Xilinx Tools' in the SDK to program the QSPI Flash as is shown in the tutorial.

     

    -Gary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • cascade99
    0 cascade99 over 7 years ago

    Thanks for the info, now I got idea. One more question is that if I need also load FPGA code(.PL?) to the QSPI, when should I do that?
    Thanks

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

    As shown in the tutorial if your hardware design includes a PL section you would add that by listing the System_wrapper.bit file after the fsbl.elf, but before your FreeRTOS application, in the Create Zynq Boot Image function under the SDK 'Xilinx Tools'. Then the PL code will be part of the .mcs image you program into the QSPI Flash.

     

    You may want to look at the earlier tutorial to see how these files were created:

     

    http://zedboard.org/support/design/1519/10

     

    -Gary

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

    Thanks for your help, it works.

    • 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 © 2023 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