# PiCAN2 issue with Balena Fin

**URL:** <https://forums.balena.io/t/pican2-issue-with-balena-fin/190523>\
**Category:** balenaFin\
**Created:** [September 16, 2020, 9:23am UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523 "2020-09-16T09:23:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lior](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lior](https://forums.balena.io/u/Lior)\
**Post date:** [September 16, 2020, 9:23am UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/1 "2020-09-16T09:23:33Z")

</div>

Hi!

I am trying to use [PiCAN2 board](https://copperhilltech.com/pican-2-can-bus-interface-for-raspberry-pi/) with Balena Fin. I have the similar issue as described [here](https://github.com/raspberrypi/linux/issues/3514): **can0** device is not created, kernel message log shows:

```auto
[5.158349] mcp251x spi0.0: MCP251x didn't enter in conf mode after reset
[5.158393] mcp251x spi0.0: Probe failed, err=16
[5.158453] mcp251x: probe of spi0.0 failed with error -16

```

`lsmod | grep mcp` gives:

```auto
mcp251x 20480 0
can_dev 28672 1 mcp251x

```

Kernel is 5.4

Any suggestions how to solve the problem?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [September 16, 2020, 9:56am UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/4 "2020-09-16T09:56:16Z")

</div>

Hi! Thank you for reporting and welcome to the balena forums!

One quick question. Are you using balenaOS or Raspbian?

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [September 16, 2020, 11:13am UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/6 "2020-09-16T11:13:09Z")

</div>

Hello, if you are using the last kernel update that should solve some voltage issues. On the other hand, did you follow the instructions to change the device tree overlay? [https://copperhilltech.com/content/PICAN2\_jessie\_2016-05-10.pdf](https://copperhilltech.com/content/PICAN2_jessie_2016-05-10.pdf)

---

<div class="post-metadata">

**Author:** ![Lior](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lior](https://forums.balena.io/u/Lior)\
**Post date:** [September 16, 2020, 4:01pm UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/8 "2020-09-16T16:01:10Z")

</div>

Hi Marc,

thanks for a quick reply 🙂

I am using Raspbian, the most recent kernel: [https://github.com/raspberrypi/linux](https://github.com/raspberrypi/linux)

Added 3 lines to _/boot/config.txt_ as directed:

```
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
dtoverlay=spi-bcm2835-overlay
```

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [September 16, 2020, 5:28pm UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/11 "2020-09-16T17:28:57Z")

</div>

Hi,

A colleague noted that he had a user with a similar issue with the balenaFin + pican2 duo, and he produced a balena application for testing that has the Fin writing on a can bus and reading from the other. Here’s the link: [https://github.com/balena-io-playground/balena-pican2-testbench](https://github.com/balena-io-playground/balena-pican2-testbench).

Let us know if this is something that might work for you.

John

---

<div class="post-metadata">

**Author:** ![Lior](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lior](https://forums.balena.io/u/Lior)\
**Post date:** [September 16, 2020, 6:04pm UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/13 "2020-09-16T18:04:10Z")

</div>

Unfortunately I’ve got only one bus physically and no even **can0** device to begin with sending anything…

By the way, I’ve just tried the same hardware on regular Raspberry 3 (same Kernel 5.4) and the driver loads:

```
[8.009589] CAN device driver interface
[8.057974] mcp251x spi0.0 can0: MCP2515 successfully initialized.
```

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [September 16, 2020, 7:27pm UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/14 "2020-09-16T19:27:03Z")

</div>

Hi,

That’s interesting that it worked on the RPi 3. I’ll share this with our engineers to see if we might have a bug.

John

---

<div class="post-metadata">

**Author:** ![Lior](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@Lior](https://forums.balena.io/u/Lior)\
**Post date:** [September 16, 2020, 7:38pm UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/16 "2020-09-16T19:38:47Z")

</div>

Thank You very much! I would be glad to provide additional diagnostic data if it helps.

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [September 16, 2020, 8:22pm UTC](https://forums.balena.io/t/pican2-issue-with-balena-fin/190523/17 "2020-09-16T20:22:30Z")

</div>

Yes, if you can share the RPi 3 logs along with the separate balenaFin logs, that would be very useful. Thanks for your help and your patience!

John
