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
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum How can i use the MCP2515 can bus module
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 58 subscribers
  • Views 1563 views
  • Users 0 members are here
  • can_bus
  • spi
  • mpc2515
  • dma
  • spi to can
  • can bus module
  • maaxboard
  • can
Related

How can i use the MCP2515 can bus module

akoc
akoc over 4 years ago

Hello all,

 

I want to use mcp2515 on maaxboard but i have a few problems. I added the driver of MCP2515 on kernel and i start up the system. System is running but spi is not working. I'm getting dma  error when i check. The ouput is as follows,

 

 

root@maaxboard-ddr4-2g-sdcard:~# dmesg | grep spi

[    2.082346] spi_imx 30820000.ecspi: dma setup error -19, use pio

[    2.089493] spi_imx 30820000.ecspi: probed

 

I can see mcp2515 driver installed.

 

root@maaxboard-ddr4-2g-sdcard:~# ls /sys/bus/spi/drivers

cros-ec-spi  ds3234  m25p80  mcp251x  mmc_spi  mtd_dataflash  spidev

 

root@maaxboard-ddr4-2g-sdcard:~# ls /sys/bus/spi/devices/

spi0.0

 

 

Also  see spi status below,

 

root@maaxboard-ddr4-2g-sdcard:~# dmesg | grep dma

[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool

[    0.868557] imx-sdma 30bd0000.sdma: no iram assigned, using external mem

[    0.875326] imx-sdma 30bd0000.sdma: no event needs to be remapped

[    0.875395] imx-sdma 30bd0000.sdma: Falling back to user helper

[    0.879126] imx-sdma 302c0000.sdma: no iram assigned, using external mem

[    0.886145] imx-sdma 302c0000.sdma: no event needs to be remapped

[    0.892047] mxs-dma 33000000.dma-apbh: initialized

[    2.070136] spi_imx 30820000.ecspi: dma setup error -19, use pio

[    2.256040] Can't support > 32 bit dma.

[    2.337410] Can't support > 32 bit dma.

[    7.109588] imx-sdma 302c0000.sdma: loaded firmware 4.4

[    7.117541] imx-sdma 30bd0000.sdma: loaded firmware 4.4

 

You can  see the gpio file at the attachment.

 

How can I solve this problem?

Attachments:
maaxboard-extended-gpio.dtsi.txt.zip
  • Sign in to reply
  • Cancel
  • amgalbu
    amgalbu over 4 years ago

    Hello Ahmet

    I'm not sure why is say it's  not working: you can't see and CAN frame txed?

    In the attached file (which, btw, is a dtsi and not the dts) there is no definition for the peripheral mcp2515. I only see an spidev device

    Also, the CS1 pin (gpio5.13) has not a pinmux here

     

    So please provide the dts file you are using and maybe the complete dmesg output so I can have a more complete understanding of what is going on

     

    Bye!

    Ambrogio

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • akoc
    akoc over 4 years ago in reply to amgalbu

    Hi Ambrogio,

     

    Thanks for reply.

     

    I think I couldn't explain my problem. I don't know why maaxboard is not working. I made a few change. The updated of files are included in file.zip. you can see at the attached.

     

    Thank you for your support.

    Ahmet.

    Attachments:
    file.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jafoste4
    jafoste4 over 4 years ago in reply to akoc

    Hi Ahmet,

     

    What OS are you utilizing? The Debian or Yocto?

     

    Thx,
    Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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