MCP2515 crash after one message everytime

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

MCP2515 crash after one message everytime

Post by /RaspberryPi »


I recently made a pcb with multiple IC, an raspberry pi, an mcu and two MCP2515.



To bring up the MCP2515, I added these line /boot/config.txt

dtoverlay=mcp2515-can1,spi0-0,oscillator=8000000,interrupt=25 dtoverlay=mcp2515-can0,spi0-1,oscillator=8000000,interrupt=24 dtoverlay=spi-bcm2835-overlay after a reboot, i set up the bitrate to 500kbits with the command

sudo ip link set can1 up type can bitrate 500000 and when I try to send a message with cansend, The MCU catch it and the message receive is right, but after that the MCP2515 doesn't do anything (can't send, or receive anymore) until i reboot the board. Once i rebooted the board I can once again only send one message.



I was curious if anybody got the same problem before
submitted by /u/chipigui11
[link] [comments]

Source: https://www.reddit.com/r/raspberry_pi/c ... everytime/
/RaspberryPi
Post Reply

Return to “Raspberry Pi Forum”