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
    About the element14 Community
  • 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
ZedBoard Hardware Design standalone xgpio app freeze on zedboard if I dont boot linux once before...
  • 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 2 replies
  • Subscribers 353 subscribers
  • Views 648 views
  • Users 0 members are here
Related

standalone xgpio app freeze on zedboard if I dont boot linux once before...

Former Member
Former Member over 11 years ago

Hi team !

I use a Zedboard rev D
SD linux demo is okay (write_led ...)

I use vivado/xsdk 14.1 (but the same with 13.4)
I have written a test design with dual axi-gpio (v4) and exported to xsdk. everything ok

I boot linux (sw 4-1 ON), then flash (with xsdk) wrapper_system.bit then with xmd :

connect arm hw
source ps7_init.tcl
ps7_init
dow mydemo.elf
con

all leds are happily blinking


BUT the same app, without booting linux first, freeze during XGpio_SetDataDirection

I have reproduce this
I double check design ...

any ideas ?

test app :
int status=XGpio_Initialize(&gpio,XPAR_PS7_GPIO_0_DEVICE_ID);
    if (status != XST_SUCCESS)xil_printf("xgpio_initialize error
r");
    xil_printf("1
r");
    XGpio_SetDataDirection(&gpio,1,0x00);
    xil_printf("2
r");
    XGpio_SetDataDirection(&gpio,2,0x1);
    xil_printf("3
r");
XGpioPs_Config *cfg=XGpioPs_LookupConfig(XPAR_PS7_GPIO_0_DEVICE_ID);
    xil_printf("11
r");
    XGpioPs_CfgInitialize(&gpiops,cfg,cfg->BaseAddr);
    xil_printf("12
r");
    XGpioPs_SetDirectionPin(&gpiops,7,1);
    xil_printf("13
r");

    while (1) {
               xil_printf("on %x
r",XGpio_DiscreteRead(&gpio,2));
               XGpio_DiscreteWrite(&gpio,1,0xaa);
               XGpioPs_WritePin(&gpiops,7,1);
               getchar();
               xil_printf("OFF
r");
               XGpio_DiscreteWrite(&gpio,1,0x55);
               XGpioPs_WritePin(&gpiops,7,0);
               getchar();
           }

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

    The Rev D ZedBoard has production version of the Zynq device. The BootROM in the production device operates differently than the pre-production or 'ES' silicon and does not bring the PL out of reset after the bitstream is loaded. The production Zynq device was not supported in the Xilinx tools until ISE/SDK 14.2, so you will need to use a newer version of the tools. See this Xilinx Answer Record:

     

    http://www.xilinx.com/support/answers/51807.htm

     

    I would suggest using the Vivado tool suite or, if you want to stay with the PlanAhead/ISE flow, updating to 14.7. The software voucher that came with your ZedBoard should still be valid for software updates.

     

    -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


    use of ps7_post_config solve the issue :

    follow rules below :

    connect arm hw
    ps7_init
    flash fpga with wrapper.bit
    ps7_post_config
    dow f.elf
    con

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