cancel
Showing results for 
Search instead for 
Did you mean: 

CAN network doesn't work for micocontroller on STM32MP157C-DK2

ABous.1
Associate II

Hello,

I use STM32MP157C-DK2 with the last open st linux distribution (20-11-12).

I try to enbale CAN network on microcontroller but I can't send message.

I m sure of my code on microcontroller side because it's work fine with an other distribution.

I change dts and dtsi file to enable can pin mapping but without success .

What can I try ?

3 REPLIES 3
Olivier GALLIEN
ST Employee

Hi @ABous.1​ ,

There's a know limitation regarding M-CAN as listed here :

https://wiki.st.com/stm32mpu/wiki/STM32MP15_OpenSTLinux_release_note#Main_restrictions_list

Please check if it's not the root cause of your issue

Olivier

Olivier GALLIEN
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.
ABous.1
Associate II

Hello,

Thanks for your answer.

I did the following tests :

-Without sleep mode pin and without the patch

-with sleep mode pin and with the patch

-with sleep mode pin and without the patch

But without success.

I noticed multiple reference to pin A 11 and A12 (my fdcan pins) in stm32mp15-pinctrl.dtsi.

I mean this pins are also use for i2c5.

Should I comment i2C5 or other peripheral ?

Hello,

I tried to comment all multiples references to pin A11 and A12 but without result.

Have you an dts file exemple with CAN that I could try on my board ?

PS : (I try to generate DTS with CubeMX but without any effect on my kernel)