Skip to contentSkip to conversation

RTcan: Assertation failed

Xenomai Jack Lee 2 participants 2 messages Sep 27, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jack Lee

author
#1 lore raw
Quoted 5 lines · Jack Lee

Hello,

more on that subject:

Am 26.09.2016 um 14:04 schrieb Wolfgang Grandegger:

Quoted 8 lines
Quoted 1 line

//>/[ 5911.271780] rtcan0: real bitrate 1000000, sampling point 75.0% />/[ 5911.271806] rtcan_sja_set_bit_time: btr0=0x0 btr1=0x14 />/[ 5911.271868] Assertion failed! />/drivers/xenomai/can/rtcan_raw.c:rtcan_tx_push:178 dev->tx_socket == 0 />/[ 5911.271872] (1) TX skb still in use />/[ 6011.087098] rtcan0: real bitrate 1000000, sampling point 75.0% />/[ 6011.087119] rtcan_sja_set_bit_time: btr0=0x0 btr1=0x14 />/[ 7985.615408] perf interrupt took too long (2512 > 2500), lowering />/kernel.perf_event_max_sample_rate to 50000 />//>//>/Hi, Wolfgang, />//>/I got this error with my advantech PCM26D2CA CAN-board when real-time />/applications were running. />//>/The PCM26D2CA board has two ports: "rtcan0" was used by user />/applications and "rtcan1" was used by "rtcanrecv" to monitor CAN bus. />//>/The bitrate was set previously and not set explicitly here./

What do you mean? It looks like bitrate was set while the interface was active... which should not be allowed. But unfortunately, it is. Anyway, I can not see how that function is called accidentally. Must be done somehow by you system. Or are there any other related messages in kernel log (dmesg) indicating that there was a bus error.

Wolfgang.

Well, you reminded me and I checked my code. It was done by myself explicitly in fact. I have a script to initialize the real-time environment which started the CAN device and set the bit rate, and I set the bit rate again in my application.
It's my fault to start this thread and waste your time. Sorry for that.
Beg your pardon!

If I have a chance to travel to the Europe one day, I really want to have a visit on
you guys. If you come to China, especially Beijing, Wuhan, Shenzhen, don't hesitate to contact me, I am glad to help :)

Have a good day!

#2 lore raw

Hello,

Am 27.09.2016 um 03:57 schrieb Jack Lee:

Quoted 28 lines · Jack Lee
Quoted 25 lines

Hello,

more on that subject:

Am 26.09.2016 um 14:04 schrieb Wolfgang Grandegger:

Quoted 1 line

//>/[ 5911.271780] rtcan0: real bitrate 1000000, sampling point 75.0%

/>/[ 5911.271806] rtcan_sja_set_bit_time: btr0=0x0 btr1=0x14 />/[ 5911.271868] Assertion failed! />/drivers/xenomai/can/rtcan_raw.c:rtcan_tx_push:178 dev->tx_socket == 0 />/[ 5911.271872] (1) TX skb still in use />/[ 6011.087098] rtcan0:
real bitrate 1000000, sampling point 75.0% />/[ 6011.087119]
rtcan_sja_set_bit_time: btr0=0x0 btr1=0x14 />/[ 7985.615408] perf interrupt took too long (2512 > 2500), lowering />/kernel.perf_event_max_sample_rate to 50000 />//>//>/Hi, Wolfgang, />//>/I got this error with my advantech PCM26D2CA CAN-board when real-time />/applications were running. />//>/The PCM26D2CA board has two ports: "rtcan0" was used by user />/applications and "rtcan1" was used by "rtcanrecv" to monitor CAN bus. />//>/The bitrate was set previously and not set explicitly here./
What do you mean? It looks like bitrate was set while the interface was active... which should not be allowed. But unfortunately, it is. Anyway, I can not see how that function is called accidentally. Must be done somehow by you system. Or are there any other related messages in kernel log (dmesg) indicating that there was a bus error.

Quoted 8 lines
Quoted 1 line

Wolfgang.

Well, you reminded me and I checked my code. It was done by myself explicitly in fact. I have
a script to initialize the real-time environment which started the CAN device
and set the bit rate, and I set the bit rate again in my application. It's my fault to start this thread and waste your time. Sorry for that. Beg your pardon!

No problem. It revealed a real bug, at least.

Quoted 4 lines

If I have a chance to travel to the Europe one day, I really want to have a visit on
you guys. If you come to China, especially Beijing, Wuhan, Shenzhen, don't hesitate to contact me, I am glad to help :)

You are welcome.

Wolfgang.