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 GPIO/CAN Pins on ZedBoard
  • 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 5 replies
  • Subscribers 353 subscribers
  • Views 1339 views
  • Users 0 members are here
Related

GPIO/CAN Pins on ZedBoard

Former Member
Former Member over 11 years ago

Please forgive me if this question has already been answered elsewhere.  I have a ZedBoard on which I am developing, and I require integration with a CAN bus.  The ZedBoard does not appear to break out the CAN bus.

I have, however, seen several posts on this forum about operating the CAN bus on a ZedBoard.  Some people seem to have been operating CAN over GPIO pins.

Are there any exposed CAN pins?  Are there any exposed GPIO pins that can be used to implement CAN over GPIO?

Thanks

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

    There are two ways to 'expose' the CAN bus signals from either of the Zynq CAN controllers. Once you enable one of the CAN controllers in the Zynq PS (Processing System) you can select the I/O to be connected to a selection of specific MIO pins or connect the CAN I/O to EMIO into the Zynq PL (Programmable Logic) section and then onto PL I/O pins.

     

    Several pairs of allowable MIO signals for either of the CAN controllers are connected to the JE PMOD connector on the ZedBoard.

     

    -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

    Gary,

    Thank you for the reply.  Using the schematic and the technical reference manual, I was able to wire a level-shifted CAN transceiver to MIO pins 14&15.

    The big mystery at this point, becomes the nuts-and-bolts mechanics of assigning MIO pins to the CAN controller.  I am running the ubuntu based Linux distro provided by Xilinx, but have been unable to locate any documentation regarding which binaries will report the status of things like the MIO pins, which /proc entries do I tickle to connect them, etc.

    Are you aware of any documentation that can help me get a sense for how to do things with my zynq using the command-line?

    Thanks again,
    Harrison

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

    Most of my experience is with the Vivado GUI but I think you will be using tcl from the command line. As this Answer Record  suggests ( http://forums.xilinx.com/xlnx/board/crawl_message?board.id=Vivado&message.id=1820 ) Xilinx Users Guides UG834 and UG894 are probably a good place to start.

     

    You might also want to take a look at the TCL Community on the Xilinx Community Forums: http://forums.xilinx.com/t5/Vivado-TCL-Community/bd-p/Vivado

     

    If you do a search for "vivado command line" also turns up some interesting answer records.

     

    Perhaps some other forum members have more command line experience to relate.

     

    -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


    Gary,

    There seems to have been a miscommunication.  I'm not looking for a way to configure a project on my laptop, I'm looking for an instruction that can be executed by the arm core itself.

    ie:

    minicom -D /dev/tty.usbmodem...

    -- OR --

    ssh root@my-zedboard-running-ubuntu

    root@my-zedboard-running-ubuntu ~ $ some-awesome-binary show-mio-status
    ...
    ...

    root@my-zedboard-running-ubuntu ~ $ some-awesome-binary set-mio-pin --mio=14 --tgt=can-0-rx
    root@my-zedboard-running-ubuntu ~ $ some-awesome-binary set-mio-pin --mio=15 --tgt=can-0-tx

    The TCL scripts seem to be geared towards interaction with the development environment rather than with the production environment.

    Do you think Xilinx included such an instruction, or DMA memory address, or ... to allow the ARM to configure the MIO pins?

    Thanks again for helping,
    Harrison

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

    Take a look at the ARM System Level Control Registers section ( Appendix B.28 in the Zynq TRM, UG585 is a good place to start) of the Technical Reference Manual for Zynq. These configurations are controlled by the ARM System Registers. As an example, MIO Pin 14 I/O is selected by the MIO Pin 14 Control Register at address 0x00000738. You can read the state set by the ps7_init.c (or ps7_init.tcl for JTAG boot) but you should be very careful to understand the complete configuration state before changing register values.

     

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