Skip to main content
ABous.1
Associate II
February 18, 2021
Question

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

  • February 18, 2021
  • 2 replies
  • 1823 views

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 ?

This topic has been closed for replies.

2 replies

Olivier GALLIEN
Technical Moderator
February 19, 2021

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
ABous.1Author
Associate II
February 23, 2021

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)

ABous.1
ABous.1Author
Associate II
February 19, 2021

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 ?