Hi Eric, thank you for your feedback.
I will further investigate my problem using the information in the link that you provided me, however, I think the issue is not related to forgetting set up of can speed.
In fact, when I execute the command
canconfig can0 bitrate 500000
ifconfig can0 up
./candump can0 -L
everything works fine, however if I write
canconfig can0 bitrate 500000
ifconfig can0 up
./cansend can0 0CF00203#CC0000FFF00000EF
I receive the proposed error. Therefore it seems something related only to the tx phase. Please note that the data read from first step are fine, since I have a device sending a specific can packet, and I read it fine.
If this provides you some further idea about my problem, please let me know.
I will inform you about any progress.
Best regards.
Giovanni