cancel
Showing results for 
Search instead for 
Did you mean: 

Using RS485 CAN Hat

CBris.1
Associate

We are trying to get CAN communication working on a STM32MP157D-DK1 using an RS485 CAN hat that is used for Rasberry PI. Is this possible and if so can you direct me to instructions? We are using Yocto to build the Linux distro. We are currently unable to see CAN0 at all.

1 REPLY 1
PatrickF
ST Employee

Hi @CBris.1​ ,

Did you check that STM32MP157D-DK1 GPIO connector pinout is able to provide required signals by your HAT board (refer to your board documentation or schematics) ?

Then, you have to define relevant signals for relevant peripherals in your pinmux device tree section.

Notice that some signals (e.g. SAI2 pins) are shared with internal peripherals and might be not connected by default (please refer to MB1272 Schematics or board User Manual). That might request to add some solder bridges.

Obviously, FDCAN or other peripherals should be enabled accordingly in the device tree.

Maybe have a look to :

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.