don't know what to remove anymore. Any suggestions?
don't know what to rmeove anymore. Any suggestions?
see related /var/log/messages
Hello Heinz, I retried first removing from /boot/config.txt lines ans see lsmod. See attachmente as in attachment configTxt-lsmod-can_send.txt - There's not anymore can_dev and mcp251x So I perfomed steps (make inodes and make load). Run can_send -D can0 . Same results (see configTxt-lsmod-can_send.txt)
Hello Heinz, first of all thanks for your support. I'll make the tests you are proposing and let you know. I would need 2 channels (because I have 2). After I will see the first channel working properly I'll maybe discuss with you (and if I can help I'm available) how to add the support of the second. I'll keep you posted. Thanks Massimo
I also attach the whole /var/log/messages of the test
Hello Heinz. I apologize but robably I'm not enough expert. If you mean enabling debugging putting 7 on /proc/sys/dev/Can/dbgMask I did it. Attached what I see. In summary here below whet I do: $ sudo make load Loading Driver Module to Kernel /sbin/insmod can4linux.ko chmod 666 /dev/can* echo 7 >/proc/sys/dev/Can/dbgMask and then run ./can_send -D can0 this is the output: Segmentation fault Message from syslogd@raspberrypi at Jun 7 00:12:41 ... kernel:[ 348.786884] Internal error: Oops: 817 [#1]...
Hello Heinz, same error. I attach messages from var log. this happen running both can_send or ctest. examples $ ./ctest using CAN device /dev/can0 Message from syslogd@raspberrypi at Jun 4 21:00:22 ... kernel:[ 209.646838] Internal error: Oops: 817 [#1] SMP ARM Segmentation fault Message from syslogd@raspberrypi at Jun 4 21:00:22 ... kernel:[ 209.647110] Process ctest (pid: 1267, stack limit = 0xb45ec210) this happens with or without following lines in /boot/config.txt dtparam=spi=on dtoverlay=spi-bcm2835...