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
Software Application Development LED application on Zed board
  • 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 328 subscribers
  • Views 1414 views
  • Users 0 members are here
Related

LED application on Zed board

Former Member
Former Member over 11 years ago

Hi,

I am working on Zed board. I would like to work on the eclipse based SDK to dump the basic bare-metal applications onto Zed the board. I am able to put the hello world application through JTAG, where the "Hello World" text gets printed through the serial port. This is the process I follow to get the hello world application deployed on the target:
1. Import the system.xml file into the eclipse based Xilinx SDK IDE.
2. Create a new application project, with support of an existing standalone bsp.
3. The application project is created with a hello world template.
4. Now, compile and Run the application project onto the target, with the target configured in JTAG mode.
With these steps, the "Hello World" text gets printed on the serial port of the target.

Following the above steps, I am not able to work on the LED application. It seems like there are some hardware initialization missing in the process, which is the reason why the application fails. How do I put the hardware configuration file on the target board ? Do I need to use Impact tool for making the basic LED example work on the Zed platform.
I am pretty new to the FPGA part of programming, but fine with ARM side bare-metal applications.

Thank You

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

    I have a very basic question.
    I am searching for some sample xilinx SDK code.
    e.g. the code should flash leds on the ZedBoard every 5 sec or so...
    Is there any one who can guide me?
    Thanks in advance.

    Regards
    Hamid

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

    Once you have exported your Zynq design that includes GPIO that is connected to your LEDs to SDK open up the system.mss file (under your bsp on the left in the Project Explorer pane if it is not already open). Scroll down to the 'Peripheral Drivers' section and click on the 'Examples' next to the GPIO you are using to drive your LEDs (either axi_gpio or ps7_gpio). The xgpio_example.c source code shows you how to blink an LED.

     

    -Gary

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

    Hello thanks Gary,
    The code you mentioned is working.
    I made a slight change in the code.
    Instead of using
    Status = XGpio_Initialize(&Gpio, GPIO_EXAMPLE_DEVICE_ID);
    i used
    Status = XGpio_Initialize(&Gpio, 0);

    I don't exactly know what was the problem but this change worked.

    :)

    Regards
    Hamid

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

    Hello thanks Gary,
    The code you mentioned is working.
    I made a slight change in the code.
    Instead of using
    Status = XGpio_Initialize(&Gpio, GPIO_EXAMPLE_DEVICE_ID);
    i used
    Status = XGpio_Initialize(&Gpio, 0);

    I don't exactly know what was the problem but this change worked.

    :)

    Regards
    Hamid

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

    Glad that worked for you. The GPIO_EXAMPLE_DEVICE_ID declaration is just a place holder for your real device declaration. If you will look in xparameters.h in the 'include' directory, under 'ps7_cortexa9_0 under the BSP in the Project Explorer pane on the left, you will find the declarations for your project. Probably something like 'XPAR_AXI_GPIO_0_DEVICE_ID'.

     

    -Gary

    • 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