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
  • 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 pulsar linux PL mmio hangs
  • 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 1 reply
  • Subscribers 315 subscribers
  • Views 179 views
  • Users 0 members are here
Related

pulsar linux PL mmio hangs

chrisroelle
chrisroelle over 8 years ago

Hi all -

My apologies for the simple question.

Using Pulsar Linux release 8, out of the box on a MicroZed 7010 board.  With either the provided PL image or my own PL image (which does nothing more than expose an axi_gpio at 0x41200000), accessing a memory mapped IO in the region 0x40000000-0x7FFFFFFF seems to hang the whole board.  I think the memory mapping is working OK because I can see the expected value 0x308xxxxx in the devcfg.MCTRL register if I read address 0xF8007080, but I'm not able to read in the PL memory range.  I must be missing something simple?

 

Thanks,

CR

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 8 years ago

    Hi chrisroelle,

    How is your device tree being configured for the axi_gpio instance you have in the PL?

    For example, when I want to access axi_gpio control registers in the PL from user space, I have some entries showing up in the device tree.  These entries look like this:

    tamba_pl: amba_pl {
    tt#address-cells = <2>;
    tt#size-cells = <2>;
    ttcompatible = "simple-bus";
    ttranges ;
    ttaxi_gpio_0: gpio@80000000 {
    ttt#gpio-cells = <2>;
    tttcompatible = "xlnx,xps-gpio-1.00.a";
    tttgpio-controller ;
    tttreg = <0x0 0x80000000 0x0 0x10000>;
    tttxlnx,all-inputs = <0x1>;
    tttxlnx,all-inputs-2 = <0x0>;
    tttxlnx,all-outputs = <0x0>;
    tttxlnx,all-outputs-2 = <0x0>;
    tttxlnx,dout-default = <0x00000000>;
    tttxlnx,dout-default-2 = <0x00000000>;
    tttxlnx,gpio-width = <0x8>;
    tttxlnx,gpio2-width = <0x20>;
    tttxlnx,interrupt-present = <0x0>;
    tttxlnx,is-dual = <0x0>;
    tttxlnx,tri-default = <0xFFFFFFFF>;
    tttxlnx,tri-default-2 = <0xFFFFFFFF>;
    tt};
    ttaxi_gpio_1: gpio@80010000 {
    ttt#gpio-cells = <2>;
    tttcompatible = "xlnx,xps-gpio-1.00.a";
    tttgpio-controller ;
    tttreg = <0x0 0x80010000 0x0 0x10000>;
    tttxlnx,all-inputs = <0x0>;
    tttxlnx,all-inputs-2 = <0x0>;
    tttxlnx,all-outputs = <0x1>;
    tttxlnx,all-outputs-2 = <0x0>;
    tttxlnx,dout-default = <0x00000000>;
    tttxlnx,dout-default-2 = <0x00000000>;
    tttxlnx,gpio-width = <0x8>;
    tttxlnx,gpio2-width = <0x20>;
    tttxlnx,interrupt-present = <0x0>;
    tttxlnx,is-dual = <0x0>;
    tttxlnx,tri-default = <0xFFFFFFFF>;
    tttxlnx,tri-default-2 = <0xFFFFFFFF>;
    tt};
    ttaxi_gpio_2: gpio@80020000 {
    ttt#gpio-cells = <2>;
    tttcompatible = "xlnx,xps-gpio-1.00.a";
    tttgpio-controller ;
    tttreg = <0x0 0x80020000 0x0 0x10000>;
    tttxlnx,all-inputs = <0x1>;
    tttxlnx,all-inputs-2 = <0x0>;
    tttxlnx,all-outputs = <0x0>;
    tttxlnx,all-outputs-2 = <0x0>;
    tttxlnx,dout-default = <0x00000000>;
    tttxlnx,dout-default-2 = <0x00000000>;
    tttxlnx,gpio-width = <0x3>;
    tttxlnx,gpio2-width = <0x20>;
    tttxlnx,interrupt-present = <0x0>;
    tttxlnx,is-dual = <0x0>;
    tttxlnx,tri-default = <0xFFFFFFFF>;
    tttxlnx,tri-default-2 = <0xFFFFFFFF>;
    tt};
    t};

    Also, this Xilinx forum post may interest you:

    https://forums.xilinx.com/t5/Embedded-Linux/Zynq-Linux-Freeze-on-Memory-Mapped-Peripheral-Write/td-p/246156

    Regards,

    -Kevin

    • 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