Skip to main content
DmnSd
Associate III
November 16, 2020
Solved

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

  • November 16, 2020
  • 1 reply
  • 1583 views

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

This topic has been closed for replies.
Best answer by Olivier GALLIEN

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

1 reply

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
November 16, 2020

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.
DmnSd
DmnSdAuthor
Associate III
November 17, 2020

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