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 CAN Controller header files
  • 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 329 subscribers
  • Views 420 views
  • Users 0 members are here
Related

CAN Controller header files

hjo
hjo over 12 years ago

Can someone please help regarding the C header files I have to use for developing a CAN driver for the Zynq internal CAN.
I'm confused. Is it
canps_v1_00_a/
canps_v1_01_a/
can_v2_00_a/
?

I'm even not sure if it is a LogiCore IP or any other.
The CAN Controller itself is documented in Zynq-7000 EPP Technical reference Manual UGS85 Chapter 18.

I hope you can send me with a link to the directory within the EDK. Thanks.
  Heinz

  • Sign in to reply
  • Cancel
Parents
  • hjo
    0 hjo over 12 years ago

    With the help of friends at Silica Berlin I got can4linux working. The project is at http://sourceforge.net/projects/can4linux/

    Regards
       Heinz

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

    Hey,
    I want to compile the can4linux for my Zedboard but when I use the ./target zedboard, the next message appears:

    elect Target compilatiion environment
    ======================================

    ./target <target>
    where <target> = standard | mcp2515spi | mcp2515 | mcp2515aur | mmc | at9263
                     | imx25 | imx28 | imx35

    mcp2515spi - with external MCP2515 using kernel SPI driver
    mcp2515    - SSV ATMEL9263 with external MCP2515, direct SPI register acc
    mcp2515aur - A&R ATMEL9G45 with external MCP2515, direct SPI register acc
    mmc     - Heyfra MMC, ATMEL AT91SAM9260, 3 external SJA1000
    at9268  - ATMEL AT91SAM9263 internal CAN controller
    imx25   - Freescale FlexCAN iMX25 (Ka-Ro TX25)
    imx28   - Freescale FlexCAN iMX28 (Ka-Ro TX28)
    imx35   - Freescale FlexCAN iMX35 (Freescale PDK)
    zedboard- Xilinx Zynq on ZedBoard
    standard- local host PC, using the local kernel source tree
              call 'make TARGET=X' for different supported boards
              call 'make help' for a list of supported boards

    the script does: ln -s Makefile-zedboard Makefile
    before calling make, adjust cross-zedboard and source it in

    ARCH             arm
    CROSS_COMPILE    arm-xilinx-linux-gnueabi-
    CC               /home/user/bin/arm-xilinx-linux-gnueabi-gcc
    AR               /home/user/bin/arm-xilinx-linux-gnueabi-ar
    LD               /home/user/bin/arm-xilinx-linux-gnueabi-ld
    RANLIB           /home/user/bin/arm-xilinx-linux-gnueabi-ranlib
    DEPMOD           /home/user/bin/arm-xilinx-linux-gnueabi-depmod-2.6
    KDIR             /usr/src/linux-headers-2.6.3246-generic
    LIBS           
    CFLAGS           -Wall -Wstrict-prototypes -Os -Wl,-s
    LDFLAGS        
    DEPLOYDIR      
    DESTDIR          /home/user/Escritorio/can4linux/can4linux-4.1

    ===================================================
    NOW do:
    $ unset KDIR
    $ . cross-zedboard

    I think that the problem is about cross-zedboard file configuration. In the cross-zedboard configuration I have a question: where is located linux directory due to the next directory doesn't exist.

    [ ${KDIR} ] || KDIR=/home/oe/development/zynq/linux-xlnx

    Has somebody the can4linux compiled (can4linux.ko) or has any idea about what I can change to compile??

    Thanks.

    regards.

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

    Hello Asier

    I was absent and did not read form posts.
    Do you still hneed help was the problem above ?

    Heinz

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

    Hello Asier

    I was absent and did not read form posts.
    Do you still hneed help was the problem above ?

    Heinz

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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