Go to advanced search

by Xanatos
Wed Jan 15, 2014 8:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

Hi everybody, I have another question as I'm still not able to read any packets from my CAN Device. I think it has to do with the bitrate. In the docs it say 20kBit/s should be used for my device and when I test with my USB to CAN it works. But what is the correct parameter I need to use on the rpi?...
by Xanatos
Mon Jan 13, 2014 7:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

Thanks Gerd! That did the trick :idea: CAN0 is now online. Will try with a real can device now to see if I can receive something :o

Regards,
Marco
by Xanatos
Mon Jan 13, 2014 4:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

Gerd, I repeated my steps without rpi-update and I get rid of the module problem. Thanks! After extracting the archive and depmod -a I did: modprobe spi-bcm2708 modprobe can modprobe can-dev modprobe can-raw modprobe can-bcm modprobe spi-config devices=\ bus=0:cs=0:modalias=mcp2515:speed=10000000:gp...
by Xanatos
Mon Jan 13, 2014 9:44 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

Gerd,

I only tested with 3.10.25+. I will do a fresh img to an SD and don't do rpi-update and test again.
Did you tested youself with 3.10.24+?

Regards,
Marco
by Xanatos
Mon Jan 13, 2014 6:55 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

Gerd,

My Kernel is currently 3.10.25+.
I used the rpi_can_310x_spi_dma.tar.xz from your site and as far as I can see it includes the modules for this kernel too. Did I missunderstand that?

Thanks for your help!

Regards,
Marco
by Xanatos
Sun Jan 12, 2014 1:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

Hello, I tried to bring up my CAN interface from SK Pang again following the latest way documented on http://lnxpps.de/rpie/ . I downloaded the latest Raspbian 2013-12-20 and write it to SD. Booting it up and doing rpi-update, apt-get update / apt-get-upgrade. All this runs successful. Now I downloa...
by Xanatos
Tue Oct 01, 2013 10:31 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

Martin,
saw to late your file before posting, sorry for that.

Yeah I'm doing cross compile as my PI is not at work 8-)

The file downloaded is spi-bcm2708.c do I need to replace the original bcm2708.c with that one?

Regards,
Marco
by Xanatos
Tue Oct 01, 2013 10:16 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

msperl, I just got a fresh 3.11.y branch and tried to add ypur patch. But I got rejects for the following code. What can be wrong? --- arch/arm/mach-bcm2708/bcm2708.c +++ arch/arm/mach-bcm2708/bcm2708.c @@ -552,19 +558,29 @@ .resource = bcm2708_spi_resources, .dev = { .coherent_dma_mask = DMA_BIT_MA...
by Xanatos
Tue Sep 24, 2013 12:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377199

Re: CAN controller

Hi All, I have just finished reading the thread! Many thanks to all who have posted there solutions. I'm an owner of a PICAN and tried to follow all the steps you all took to get it work. But it is hard to find what is still needed to be done and what not. Also what kernel versions the patches have ...

Go to advanced search