2020-11-16 05:56 AM
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
Solved! Go to Solution.
2020-11-16 07:52 AM
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
2020-11-16 07:52 AM
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
2020-11-17 12:38 AM
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