Go to advanced search

by hhh321
Fri May 20, 2016 10:37 am
Forum: Troubleshooting
Topic: Enabling SPI by raspi-config
Replies: 11
Views: 7847

Re: Enabling SPI by raspi-config

1) dtparam exist in /opt/vc/bin but I can't see link to this at /usr/bin
2) I'm running Raspbian. After installation i had 4.1.19... kernel version - then I run rpi-update so it bringed me to 4.4.10-v7+
by hhh321
Fri May 20, 2016 10:19 am
Forum: Troubleshooting
Topic: Enabling SPI by raspi-config
Replies: 11
Views: 7847

Re: Enabling SPI by raspi-config

Yes it exist, all looks fine but i need to be sure that this message is just wrong.
by hhh321
Fri May 20, 2016 10:14 am
Forum: Troubleshooting
Topic: Enabling SPI by raspi-config
Replies: 11
Views: 7847

Enabling SPI by raspi-config

Hello, I try to enable SPI by raspi-config in terminal. After confirming my choice there are two messages. At first it prompt "The SPI interface is enabled" info, but then after pressing "OK" it brings There was an error running option A5 SPI . After closing raspi-config I've got some information in...
by hhh321
Wed May 18, 2016 4:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [quick-guide] CAN bus on raspberry pi with MCP2515
Replies: 146
Views: 190008

Re: [quick-guide] CAN bus on raspberry pi with MCP2515

Same as above i can't setup can0 interface. I'm using RPi + device with MCP2515 + TJA1050 + level shifter. My kernel version is 4.4.10-v7+ . After setting overlays in /boot/config.txt and rebooting RPi I don't see net\can0 for spi0.0.
by hhh321
Wed May 18, 2016 4:08 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 366793

Re: I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

Thank you for help, is it possible that something broke while i tried before to connect 5v pins to RPi ? I did tested SPI and it turned out to be OK.
by hhh321
Wed May 18, 2016 3:50 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 366793

Re: I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

In dmesg it logged something after loading: [ 148.656123] can: controller area network core (rev 20120528 abi 9) [ 148.656228] NET: Registered protocol family 29 [ 148.721725] can: raw protocol (rev 20120528) [ 148.780860] can: broadcast manager protocol (rev 20120528 t) After rebooting it looks sam...
by hhh321
Wed May 18, 2016 3:46 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 366793

Re: I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

After loading modules I don't get any response it just bring me back to prompt. There's datasheet for MCP http://ww1.microchip.com/downloads/en/D ... 21801e.pdf, and scheme for my device(it also includes TJA1050) http://elty.pl/pl/p/file/e6f9cc8afd8b6b ... module.pdf.
by hhh321
Wed May 18, 2016 3:37 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 366793

Re: I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

After running this commands i still receive :
Cannot find device "can0"
For:

Code: Select all

sudo ip link set can0 up type can bitrate 250000
by hhh321
Wed May 18, 2016 3:26 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 366793

Re: I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

So i've got : dmesg | grep -i can [ 4.288643] CAN device driver interface [ 7.085896] Modules linked in: brcmfmac brcmutil cfg80211 rfkill mcp251x can_dev snd_bcm2835 snd_pcm snd_timer snd bcm2835_gpiomem spi_bcm2835 bcm2835_wdt uio_pdrv_genirq uio fuse ipv6 ls /dev/spi* /dev/spidev0.1 lsmod | grep ...
by hhh321
Wed May 18, 2016 3:01 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 366793

Re: I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

I saw some mistake in wiring, but logs seems to look same, but maybe i can't see difference so: sudo vcdbg log msg |& grep -v -E "(HDMI|gpioman)" 000993.858: *** Restart logging 000995.443: Read command line from file 'cmdline.txt' dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/m...
by hhh321
Wed May 18, 2016 12:30 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 335
Views: 366793

Re: I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

Hi. I'm using RPi 3 with kernel: Linux pi 4.4.10-v7+ #885 SMP Fri May 13 15:44:27 BST 2016 armv7l GNU/Linux I've got quite similar problem to Kvach's one. I want connect via SPI to my CAN controller. I cannot create can0 interface. I put this line to my boot/config.txt: dtoverlay=mcp2515-can0,oscill...
by hhh321
Mon May 16, 2016 3:00 pm
Forum: Troubleshooting
Topic: No can0 interface RPi 3
Replies: 10
Views: 2791

Re: No can0 interface RPi 3

As mentioned in: https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=7027&sid=501d5932c4dc587bbf4e779934e02ba8&start=625, I run test posted by msperl , my output without any parameter is : Resetting MCP2515 RESET 0 0x00 Read MCP2515 registers CMD-READ 0 0x00 REG-CNF3 0 0x00 CNF3 0 0x00 CNF2 0 0x...
by hhh321
Mon May 02, 2016 9:07 am
Forum: Troubleshooting
Topic: No can0 interface RPi 3
Replies: 10
Views: 2791

Re: No can0 interface RPi 3

Yes, I have installed libsocketcan-dev + can-utils.
by hhh321
Mon Apr 25, 2016 7:01 am
Forum: Troubleshooting
Topic: No can0 interface RPi 3
Replies: 10
Views: 2791

Re: No can0 interface RPi 3

lsmod | grep mcp25 mcp251x 8438 0 can_dev 9381 1 mcp251x dmesg | grep mcp25 [ 9.537230] Modules linked in: mcp251x can_dev brcmfmac brcmutil cfg80211 rfkill snd_bcm2835 bcm2835_rng bcm2835_gpiomem spi_bcm2835 snd_pcm snd_timer snd uio_pdrv_genirq uio i2c_dev fuse ipv6 dmesg | grep spi [ 6.355722] s...
by hhh321
Fri Apr 22, 2016 2:46 pm
Forum: Troubleshooting
Topic: No can0 interface RPi 3
Replies: 10
Views: 2791

Re: No can0 interface RPi 3

I'm using ready module. Here is link to scheme http://elty.pl/pl/p/file/e6f9cc8afd8b6b ... module.pdf. It is connected to 16MHz crystal.
by hhh321
Fri Apr 22, 2016 1:53 pm
Forum: Troubleshooting
Topic: No can0 interface RPi 3
Replies: 10
Views: 2791

Re: No can0 interface RPi 3

Aydan : nothing changes if I swap bcm2835 with mcp2515 overlays in config.txt.
[EDIT]
I have connected SPI CLK(SCLK) to SCK pin on my board with mcp2515.
by hhh321
Fri Apr 22, 2016 12:55 pm
Forum: Troubleshooting
Topic: No can0 interface RPi 3
Replies: 10
Views: 2791

No can0 interface RPi 3

Hello, I'm trying to connect my RPi3 to CAN bus with MCP2515 controller using SPI. I have ready module with MCP2515 and TJA1050 on board. Here is link to scheme http://elty.pl/pl/p/file/e6f9cc8afd8b6b8fd9ed2e78074ab0d2/CAN-module.pdf .I added this 2 lines to my /boot/config.txt . dtoverlay=mcp2515-c...

Go to advanced search