Go to advanced search

by bertr2d2
Sat Dec 16, 2017 9:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry Pi PIC Programmer using GPIO
Replies: 102
Views: 33304

Re: Raspberry Pi PIC Programmer using GPIO

Do you know 'pickle' ?:
https://wiki.kewl.org/dokuwiki/projects ... interfaces

It's a programmer also for RPi which should burn nearly any Microchip PIC ;-)
by bertr2d2
Thu May 04, 2017 12:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN-Bus Interface with galvanic isolation
Replies: 0
Views: 512

CAN-Bus Interface with galvanic isolation

Hi, if you need a galvanic isolated, easy to build CAN Board, here it is: https://raw.githubusercontent.com/GBert/misc/master/RPi-MCP2515/pictures/rpi-mcp2515_01_s.jpg https://github.com/GBert/misc/tree/master/RPi-MCP2515 Either use DCDC converter to generate isolated 5V or 7805 with external supply...
by bertr2d2
Sun Jan 29, 2017 5:20 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPI3 mcp2515 issues
Replies: 2
Views: 674

Re: RPI3 mcp2515 issues

Hi, the 8 MHz is fine because http://lxr.free-electrons.com/source/drivers/net/can/spi/mcp251x.c?v=4.4 1036 clk = devm_clk_get(&spi->dev, NULL); 1037 if (IS_ERR(clk)) { 1038 if (pdata) 1039 freq = pdata->oscillator_frequency; 1040 else 1041 return PTR_ERR(clk); 1042 } else { 1043 freq = clk_get_rate...
by bertr2d2
Sat Nov 08, 2014 2:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

pauldcox wrote: <snip>
Not sure why ip link shows 8Mhz clock when I thought I specified 16Mhz to spi-config
8MHz is ok because the TQ calculation is based on FOSC/2.

Regards

Gerd
by bertr2d2
Tue Sep 16, 2014 3:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hi Andreas, Hi Gerd, [ 17.822227] spi_config_register: device description: bus=0:cs=0:modalias=mcp2515:speed=10000:gpioirq=25:pd=20:pds32-0=20000000:pdu32-4=0x2002:force_release [ 17.846650] spi_config_match_cs: SPI0: check CS=0 to be 0 [ 17.857859] spi_config_match_cs: SPI0.0: Found a device with m...
by bertr2d2
Tue Sep 16, 2014 1:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hi Andreas,

how did you setup the CAN Interface ("ip link set can0 ...") ? Do you use the loopback mode or do you have
a second CAN node on the CAN bus ? What does "ip -s -d link show can0" say ?

Regards

Gerd
by bertr2d2
Mon Sep 15, 2014 1:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hi Andreas Hi, I just have tried the new modules for 3.12.28+, but I have the same problem I had with the old ones. I have a problem with spi-config, because in the initialization it gaves me an error "mcp251x spi0.0: probe failed". The problem is that when the module reset the mcp2515, after that i...
by bertr2d2
Sat Sep 13, 2014 11:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hi Moritz,
moritzmhmk wrote:Hi

did someone already compile the modules for 3.12.28+ and could upload them ;)

Moritz
new modules can be found here: http://lnxpps.de/rpie/rpi-can-3.12.28+.tar.bz2. Please give feedback.

Regards

Gerd
by bertr2d2
Sat Aug 30, 2014 11:22 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hi all, Like a lot of us I'm following this topic for the last few months. I bought this SKPang board and still trying to get it to work the way I'd prefer. At this point the two terminal test is working (terminal1 cangen can0, terminal2 candump any, with loopback on). My main goal is to connect my...
by bertr2d2
Tue Aug 05, 2014 7:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Updated Linux Kernel modules can be found here: http://lnxpps.de/rpie
Tested on SKpang PICAN
by bertr2d2
Thu Mar 20, 2014 12:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hey, Hi Joker_90, just clearifying your setup: You want to use MCP2515DM-BM board with the RPi, right ? The mcp251x drivers won't work with the MCP2515DM-BM, because they rely on a MCP2515 connected via SPI not USB. Here is somebody, who used this board with Linux: http://www.harshbutfair.org/softw...
by bertr2d2
Mon Feb 17, 2014 9:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

moritzmhmk wrote: PPPS I am using 2014-01-07-wheezy-raspbian
Which kernel do you run ('uname -a') now ?
by bertr2d2
Thu Feb 13, 2014 9:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

deleted
by bertr2d2
Fri Jan 24, 2014 7:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

First off the command "ip -s -d link show can0" is telling me the clock is 8,000,000 but the MCP2515 is connected to a 16MHz crystal and is configured in the board file as 16M wondered why the "ip" command is giving me 8? 8Mhz is correct - Fosc/2 (16MHz/2) is the base for the CAN bit timing calcula...
by bertr2d2
Mon Jan 20, 2014 12:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hi radman, Hi Gerd, After some more testing I have to say that for my testing methodology, I haven't found a stable enough SPI driver (regardless of distro version). It is probably related to the way how the driver has been tested. My current test which I perform goes as follows: Bus analizer/exerci...
by bertr2d2
Sun Jan 19, 2014 9:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hi radman, Hi Gerd, thank you for the pointer. I found this SPI driver but when I tried it with 3.12.y it turned out to be even less stable than the default driver from the rpi branch. I used following driver for the test: https://github.com/notro/spi-bcm2708 As next steps I tried 3.9.y kernel versi...
by bertr2d2
Sat Jan 18, 2014 9:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

Re: CAN controller

Hi, I just tested the update posted on http://lnxpps.de/rpie/ (Update: Just use Raspbian 2013-12-20 with this update). I see the same issue with candump hanging upon heavy traffic. Has anybody noticed it or there is something wrong with my hardware? I also have performed following test. Terminal #1:...
by bertr2d2
Mon Jan 13, 2014 6:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 806
Views: 283107

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: 806
Views: 283107

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: 806
Views: 283107

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: 806
Views: 283107

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: 806
Views: 283107

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: 806
Views: 283107

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: 806
Views: 283107

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: 806
Views: 283107

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

Go to advanced search