Xenomai-help Digest, Vol 14, Issue 11
Quoted 57 lines · [email protected] wrote:
Send Xenomai-help mailing list submissions to
[email protected]To subscribe or unsubscribe via the World Wide Web, visit
https://mail.gna.org/listinfo/xenomai-help
or, via email, send a message with subject or body 'help' to
[email protected]You can reach the person managing the list at
[email protected]When replying, please edit your Subject line so it is more specific than "Re: Contents of Xenomai-help digest..."
Today's Topics:
1. RT-SocketCan + Xenomai on MPC5200B (Daniel Schnell)
2. Re: RT-SocketCan + Xenomai on MPC5200B (Wolfgang Grandegger)
3. RE: RT-SocketCan + Xenomai on MPC5200B (Daniel Schnell)
4. Re: RT-SocketCan + Xenomai on MPC5200B (Wolfgang Grandegger)
5. RE: RT-SocketCan + Xenomai on MPC5200B (Daniel Schnell)
6. RE: RT-SocketCan + Xenomai on MPC5200B (Daniel Schnell)
7. Re: RT-SocketCan + Xenomai on MPC5200B (Wolfgang Grandegger)
8. Xenomai on Athlon XP (and PIII) (Wolfgang Grandegger)
9. Re: RT-SocketCan + Xenomai on MPC5200B (Wolfgang Denk)
10. Re: Xenomai on Athlon XP (and PIII) (Jan Kiszka)----------------------------------------------------------------------
Message: 1
Date: Tue, 7 Nov 2006 13:43:16 -0000
From: "Daniel Schnell" <[email protected]>
Subject: [Xenomai-help] RT-SocketCan + Xenomai on MPC5200B
To: <[email protected]>
Message-ID:<[email protected]>Content-Type: text/plain; charset="us-ascii"
Hi,
I am struggling with Xenomai latest SVN and RT-Socket-CAN on a MPC5200B with MSCAN driver inside a Denx 2.4.25 kernel.
Does anybody have this configuration actively running ? How do you use the provided rtcansend/rtcanreceive functions, so they actually transfer data over the wires ?
I was doing the following:
rtcanconfig rtcan0 -b 125000 start
rtcansend rtcan0 -i 00x10x0
(returns)
rtcansend rtcan0 -i0x10x0
(hangs, never comes back)
Quoted 6 lines
Actually the first rtcansend command does not seem to work, because a connected CAN IO unit doesn't show any reaction.
Any ideas ?
With that configuration, one has to half the baudrate (at least that helps in our case using the same HW). We are configuring for 500kbits in a 1Mbits network.
Quoted 337 lines
Regards,
Daniel Schnell.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /public/xenomai-help/attachments/20061107/3a217ca5/attachment.htm------------------------------
Message: 2
Date: Tue, 07 Nov 2006 15:03:12 +0100
From: Wolfgang Grandegger <[email protected]>
Subject: Re: [Xenomai-help] RT-SocketCan + Xenomai on MPC5200B
To: Daniel Schnell <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowedQuoted 7 lines · Daniel Schnell
Hi,
I am struggling with Xenomai latest SVN and RT-Socket-CAN on a MPC5200B with MSCAN driver inside a Denx 2.4.25 kernel.
Does anybody have this configuration actively running ? How do you use
Yes.
Quoted 10 lines
the provided rtcansend/rtcanreceive functions, so they actually transfer data over the wires ?
I was doing the following:
rtcanconfig rtcan0 -b 125000 start
rtcansend rtcan0 -i 00x10x0
(returns)
rtcansend rtcan0 -i0x10x0
(hangs, never comes back)Quoted 3 lines
Actually the first rtcansend command does not seem to work, because a connected CAN IO unit doesn't show any reaction.
The first message seems not to go out to the wire and the second send blocks because the TX done interrupt of the first message has not yet occured (no TX hardware slot free). Is there a CAN node able to receive the message?
Quoted 2 lines
Any ideas ?
Likely, you have a problem with your clock setting, TX/RX routing or cabeling (termination etc.).
Wolfgang.
------------------------------
Message: 3
Date: Tue, 7 Nov 2006 14:22:10 -0000
From: "Daniel Schnell" <[email protected]>
Subject: RE: [Xenomai-help] RT-SocketCan + Xenomai on MPC5200B
Cc: <[email protected]>
Message-ID:<[email protected]>Content-Type: text/plain; charset="us-ascii"
Quoted 5 lines · Wolfgang Grandegger
The first message seems not to go out to the wire and the second send blocks because the TX done interrupt of the first message has not yet occured (no TX hardware slot free). Is there a CAN node able to receive the message?
Yes, there is an IO unit which normally reacts on that message
Quoted 3 lines
Likely, you have a problem with your clock setting, TX/RX routing or cabeling (termination etc.).
I would suspect it is the clock setting, as we have also problems with
clock_nanosleep()running 4 times too fast. I assume then that the IPB clock frequency is wrong ?How do you setup your CAN network for a test ? Which commands do you use ?
Best regards,
Daniel Schnell.
------------------------------
Message: 4
Date: Tue, 07 Nov 2006 15:35:30 +0100
From: Wolfgang Grandegger <[email protected]>
Subject: Re: [Xenomai-help] RT-SocketCan + Xenomai on MPC5200B
To: Daniel Schnell <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowedQuoted 11 lines · Daniel Schnell
Quoted 5 lines · Wolfgang Grandegger
The first message seems not to go out to the wire and the second send blocks because the TX done interrupt of the first message has not yet occured (no TX hardware slot free). Is there a CAN node able to receive the message?
Yes, there is an IO unit which normally reacts on that message
Quoted 7 lines
Quoted 3 lines
Likely, you have a problem with your clock setting, TX/RX routing or cabeling (termination etc.).
I would suspect it is the clock setting, as we have also problems with
clock_nanosleep()running 4 times too fast. I assume then that the IPB clock frequency is wrong ?On a Rev. B you normally set the CAN system clock to 33MHz via kernel configuration parameter. Is CAN TX/RX on PSC2?
Quoted 3 lines
How do you setup your CAN network for a test ? Which commands do you use ?
Your setup with rtcanconfig was OK, or what do you mean.
Do you have terminators on both ends of the cable?
Wolfgang.
------------------------------
Message: 5
Date: Tue, 7 Nov 2006 14:39:03 -0000
From: "Daniel Schnell" <[email protected]>
Subject: RE: [Xenomai-help] RT-SocketCan + Xenomai on MPC5200B
To: "Syed Amer Gilani" <[email protected]>
Cc: [email protected]
Message-ID:<[email protected]>Content-Type: text/plain; charset="us-ascii"
Quoted 6 lines · Syed Amer Gilani
I had similar problems, but with a 2.6.18 Kernel. Check you Kernel configurations of mscan. The default clock of 66Mhz is possibly wrong, on my mpc5200b board it is 33Mhz. And also check the Pin Configuration. I had also no termination on board, so i had to add it to the cable.
Hi,
This fixed it: setting it from 66MHz to 33MHz in the MSCAN configuration. At least the IOUnit gets messages now. Thanks a lot !!
If now only the
clock_nanosleep()would wait as long as expected and would not return after 1/4 of the time ....Best regards,
Daniel.
------------------------------
Message: 6
Date: Tue, 7 Nov 2006 14:45:35 -0000
From: "Daniel Schnell" <[email protected]>
Subject: RE: [Xenomai-help] RT-SocketCan + Xenomai on MPC5200B
To: <[email protected]>
Message-ID:<DD39B5C3F4963040ADC9768BE7E430CB014DF00D@is-hdq-exchange.marel.net>Content-Type: text/plain; charset="us-ascii"
Quoted 3 lines · Wolfgang Grandegger
On a Rev. B you normally set the CAN system clock to 33MHz via kernel configuration parameter. Is CAN TX/RX on PSC2?
Yes 33 MHz was the magic number. Hmmm, shouldn't that not be set automatically if MPC5200B is selected ?
The CAN in our case is on I2C1/TMR01Quoted 5 lines
Quoted 3 lines
How do you setup your CAN network for a test ? Which commands do you use ?
Your setup with rtcanconfig was OK, or what do you mean.
I mean physically. E.g. for a MPC5200B with two CAN ports you could make a send/receive ping/pong with a sort of nullmodem cable. Additionally you need a test case. Just wanted to know how your test setup looks like.
Quoted 2 lines
Do you have terminators on both ends of the cable?
Yes everything is fine here.
Best regards,
Daniel.
------------------------------
Message: 7
Date: Tue, 07 Nov 2006 16:02:40 +0100
From: Wolfgang Grandegger <[email protected]>
Subject: Re: [Xenomai-help] RT-SocketCan + Xenomai on MPC5200B
To: Daniel Schnell <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowedQuoted 9 lines · Daniel Schnell
Quoted 6 lines · Syed Amer Gilani
I had similar problems, but with a 2.6.18 Kernel. Check you Kernel configurations of mscan. The default clock of 66Mhz is possibly wrong, on my mpc5200b board it is 33Mhz. And also check the Pin Configuration. I had also no termination on board, so i had to add it to the cable.
Quoted 5 lines
Hi,
This fixed it: setting it from 66MHz to 33MHz in the MSCAN configuration. At least the IOUnit gets messages now. Thanks a lot !!
I will make this the default on MPC5200B. You are not the first on stumbling over this quirk.
Quoted 3 lines
If now only the
clock_nanosleep()would wait as long as expected and would not return after 1/4 of the time ....Do you have a little demo program demonstrating the problem?
Wolfgang.
------------------------------
Message: 8
Date: Tue, 07 Nov 2006 21:08:06 +0100
From: Wolfgang Grandegger <[email protected]>
Subject: [Xenomai-help] Xenomai on Athlon XP (and PIII)
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowedHello,
I'm currently setting up a PC for Xenomai-Tests. I'm using my good old PC with an Athlon XP (Thunderbird) for this purpose. The kernel hangs at boot time when I enable APIC via boot argument (lapic). With local APIC disabled the kernel boots but I see some Opps messages while running the latency test and trying a slogin to the system (in the scheduler). Are there any known issues with this X86 arch? I remember, that I have seen similar problems with my (old) PIII-Notebook (lapic did not work).
I will be more precise when time permits.
Wolfgang.
------------------------------
Message: 9
Date: Tue, 07 Nov 2006 21:31:39 +0100
From: Wolfgang Denk <[email protected]>
Subject: Re: [Xenomai-help] RT-SocketCan + Xenomai on MPC5200B
To: "Daniel Schnell" <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1Quoted 4 lines · In message <[email protected]> you wrote:
I would suspect it is the clock setting, as we have also problems with
clock_nanosleep()running 4 times too fast. I assume then that the IPB clock frequency is wrong ?As you can see from the U-Boot startup messages, the IPB clock on your board is set to 66 MHz.
Best regards,
Wolfgang Denk
Signature · 10 lines
Philipp Keller Software Development Neuronics AG Technoparkstrasse 1 8005 Zuerich / Switzerland Tel +41 44 445 16 40 Fax +41 44 445 16 44 www.neuronics.ch --