cancel
Showing results for 
Search instead for 
Did you mean: 

Can not send CAN frames with STM32MP15F-EVAL and can-utils

DmnSd
Associate III

Hello,

I'm trying to send a CAN frame with can-utils library on STM32MP157F-EVAL board.

I read the following sites [1] and [2] and tried the commands:

root@stm32mp1:~# ip link set can0 up type can bitrate 1000000
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
root@stm32mp1:~# cansend can0 055#11223344
write: No buffer space available

no messages are sent and after some trys I get the error: No buffer space available.

root@stm32mp1:~# candump can0

candump also receives no frames.

The opposite station sends can messages and they are arriving the stm32 eval board. I have measured this with an oscilloscope.

what am I doing wrong?

How can I configure the eval board to send can frames?

Kind regards,

Dmn

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @DmnSd​ ,

Looks like a known bug we already identify and we are integrating.

You can find a version of patch here : https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b0342b87cad88894a989604df549e88ff47fb513

Keep you posted when integrated in ST delivery

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.

View solution in original post

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @DmnSd​ ,

Looks like a known bug we already identify and we are integrating.

You can find a version of patch here : https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b0342b87cad88894a989604df549e88ff47fb513

Keep you posted when integrated in ST delivery

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.

Dear @Community member​ ,

thanks for your answer.

Well that's the problem. If I patch kernel with the mentioned file I can send and receive CAN frames.

Thanks a lot!

I will wait for the official fix in linux-stm32mp.

Kind regards,

Dmn