Go to advanced search

by bertr2d2
Mon Jan 13, 2014 6:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

[ 117.903868] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated [ 117.904799] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80) [ 117.965216] can: controller area network core (rev 20120528 abi 9) [ 117.965383] NET: Registered protocol family 29 [ 118.033730] CAN devi...
by bertr2d2
Mon Jan 13, 2014 7:11 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Hi Marco, Gerd, My Kernel is currently 3.10.25+ So, you already upgraded the kernel. 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? Yes, it should have both versions - the original 3.10.24+ and 310...
by bertr2d2
Sun Jan 12, 2014 7:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Hi Marco, 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...
by bertr2d2
Tue Jan 07, 2014 10:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Did you shortened JP3 for the 120 Ohm termination ? I got the same interface these days (thx Sukkin :-) ) and its working fine here. Gerd Probably a stupid question from a beginner, but how did you shortened the JP3 on this board? lmi Soldering a 2 pin Pin-Header an used a jumper. Don't know anymor...
by bertr2d2
Wed Dec 04, 2013 4:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

So I am now thinking of a setup with a tiny micro processor that could handle up to 3 MCP2515 with hard realtime setup and feed them to the Linux kernel in an optimized way, so that the kernel would just need to do long reads/writes of just messages which is much better handled than the "get status...
by bertr2d2
Wed Nov 06, 2013 1:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Hi Zeta, ... It seems the "cancel" program was copied to this archive by error (copy of can* ?), so I should remove it from the archive before creating the .deb, and it will be ok. thanks for the hint: cancel was added by accident (wildcard can*). Fixed it - /usr/bin/cancel removed from archive. Reg...
by bertr2d2
Sat Nov 02, 2013 5:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Almaz, you could avoid the copying if you extract the archive in the right path: cd / tar Jxvf /tmp/rpi_can_3611_spi_dma.tar.xz depmod -a will put all things in the right place. Load the modules with modprobe. The depmod -a will resolve dependencies and you don't need to give a path anymore. Regards...
by bertr2d2
Fri Nov 01, 2013 11:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Gert, I think you put one zero to much speed=1000000 for 1mHz. I never seen 10Mhz CAN bus yet. Daniel The 10Mhz is the max speed for the SPI interface of the MCP2515. A more detailed description could be found at: https://github.com/msperl/spi-config The CAN speed itself is set by the 'ip" command....
by bertr2d2
Fri Nov 01, 2013 11:16 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

It seems like mcp251x.ko not work ( not probe ). How to fix that? Please have a look at: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=433553#p433553 but use http://lnxpps.de/rpie/rpi_can_3611_spi_dma.tar.xz instead. The "glue" between the SPI interface and the MCP2515 is missing. Normally you ...
by bertr2d2
Tue Oct 29, 2013 4:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Hi Daniel, Hi Bertr2d2, you don't even need that board to program the PIC18F26K80. The Rpi alone will do. Check this post http://www.raspberrypi.org/phpBB3/viewtopic.php?p=430643#p430643 I Know I'm a little bit off track but does anybody have knowledge about libcanopen from https://github.com/rscada...
by bertr2d2
Tue Oct 29, 2013 2:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Hi, What about absolute sequencing of messages? Do we need to send out CAN-messages in correct sequence under any circumstances? I would definitly say yes to this question. I do have an application which could run into trouble if the sequence is out of order. Martin, your efforts are really promisin...
by bertr2d2
Wed Oct 09, 2013 8:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Updated: http://lnxpps.de/rpie/rpi_can_3611_spi_dma.tar.xz [ 5.061640] bcm2708_spi bcm2708_spi.0: DMA channel 0 at address 0xf2007000 with irq 16 [ 5.247613] bcm2708_spi bcm2708_spi.0: DMA channel 4 at address 0xf2007400 with irq 20 [ 5.385813] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000...
by bertr2d2
Tue Oct 08, 2013 3:14 pm
Forum: Raspberry Pi OS
Topic: Raspbian Kernel Source
Replies: 16
Views: 59478

Re: Raspbian Kernel Source

http://elinux.org/RPi_Kernel_Compilation is helpful but doesn't provide any info about getting the exact kernel sources. It's a little bit tricky - with a litle help from somebody else: $ uname -a Linux pi3 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux $ zgrep "* firmware as of"...
by bertr2d2
Tue Oct 08, 2013 9:10 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Hi, as Martin suggested, here is the 'new' version: http://lnxpps.de/rpie/rpi_can_3611_spi_dma.tar.xz It includes the advanced SPI driver from notro (which is based on Martin's Low Latency SPI Driver) without the 64k DMA blast (only 4k DMA) and the mcp2515 async driver. I had to include a new kernel...
by bertr2d2
Sun Oct 06, 2013 7:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Thanks for your excellent work, Martin ! So, recompiling the kernel is not necessary anymore ! I have done a successful test on a fresh 2013-09-25-wheezy-raspbian with this modules+utils: http://lnxpps.de/rpie/rpi_can.tar.xz This archive provides vanilla kernel modules and can-utils. Howto install: ...
by bertr2d2
Sat Oct 05, 2013 11:05 am
Forum: Raspberry Pi OS
Topic: Raspbian Kernel Source
Replies: 16
Views: 59478

Raspbian Kernel Source

Hi, I'm using the actual Raspbian 2013-09-25-wheezy-raspbian.zip and tried to get the kernel source. Does anybody know where I can get it ? apt does provide some: linux-source - Linux kernel source (meta-package) linux-source-2.6 - Linux kernel source (dummy package) linux-source-3.2 - Linux kernel ...
by bertr2d2
Tue Oct 01, 2013 3:41 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Martin, you are faster than light ;-)

Many users appreciate you excellent work, as I do. Thx.

Regards

Gerd
by bertr2d2
Tue Oct 01, 2013 3:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Compiling the kernel to adpat the MCP2515 settings and connections is boring and for most users it's a challenge. The best way would be a small module which could do the setup like this here (add_spike_device_to_bus): https://github.com/scottellis/spike/blob/master/spike.c The settings (especially M...
by bertr2d2
Sat Aug 31, 2013 10:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Dorin,

what happens, when you typed

Code: Select all

ip link set can0 type can bitrate 125000 
ifconfig can0 up
in (console, dmesg)? Is the transceiver connected and wired correctly ?
Is there a second CAN device on the bus with the same speed ?
Do you have a sketch of your setup ?
by bertr2d2
Fri Aug 30, 2013 12:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Dorin, seems to me that you missed to setup the CAN correctly: mcp2515 spi0.0: can0: device registered (cs=0, irq=195) mcp2515 spi0.0: can0: bit-timing not yet defined mcp2515 spi0.0: can0: bit-timing not yet defined mcp2515 spi0.0: can0: bit-timing not yet defined can0: <NOARP,UP,LOWER_UP,ECHO> mtu...
by bertr2d2
Thu Jul 18, 2013 9:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Hi feliks, However CAN interface is not present after modprobe of kernel modules. wlan0 is also missing after this step. Setting up can0 failes like this: ip link set can0 type can bitrate 125000 loopback on RTNETLINK answers: Operation not supported IMHO bitrate is not supported in loopback mode in...
by bertr2d2
Thu Apr 25, 2013 7:09 pm
Forum: General discussion
Topic: Raspberry Pi vs. Beagle Bone Black
Replies: 177
Views: 82924

Re: Raspberry Pi vs. Beagle Bone Black

The blurb mentions "Programmable Real-Time Unit Subsystem" Anybody got more details? I tried typing in "real time" as a search in the manual and did not get any hits. Perhaps more details will be released when they provide more information about software IMHO that's one of the BBB things, that make...
by bertr2d2
Tue Apr 16, 2013 12:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: two gpio interrupts on RPi
Replies: 10
Views: 8388

Re: two gpio interrupts on RPi

Hmm, static irqreturn_t bcm2708_gpio_interrupt(int irq, void *dev_id) { unsigned long edsr; unsigned bank; int i; unsigned gpio; for (bank = 0; bank <= 1; bank++) { edsr = readl(__io_address(GPIO_BASE) + GPIOEDS(bank)); for_each_set_bit(i, &edsr, 32) { gpio = i + bank * 32; generic_handle_irq(gpio_t...
by bertr2d2
Mon Apr 15, 2013 8:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

nexulm wrote:Hello Gerd,
bertr2d2 wrote: Could you get the MCP2515 register values after the controller stopped transmitting frames ?
Currently I don't know how it is possible? Is there any debugging stuff already in the driver code?
What does "ip -s -d link show can0; ip -s -d link show can1" say ?
by bertr2d2
Sun Apr 14, 2013 11:10 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 390580

Re: CAN controller

Hi, interesting pics nexulm. One thing seems to be still not solved from the SPI driver: during SPI transfer the CS line is still low a long time after the the last bit clock (1st pink -> CS , 2nd pink SCLK): http://lnxpps.de/rpie/cs_idle.png There is a flag for the SPI-DMA transfer which should rai...

Go to advanced search