RTCAN & RT-Socket CAN
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 99 lines · Breno
Quoted 98 lines · Wolfgang Grandegger
Quoted 72 lines · Breno
Quoted 70 lines · Wolfgang Grandegger
Quoted 67 lines · Breno
Quoted 41 lines · Wolfgang Grandegger
Quoted 28 lines · Breno
Quoted 25 lines · Wolfgang Grandegger
Quoted 6 lines · Breno
Hi all, on my kernel option I can enable the RT-Socket CAN as a feature along with Xenomai support. Does it means if I enable it I start using RTCAN?
Could anyone explain me the differences if it exists?RT-Socket-CAN is the real-time capable variant of Socket-CAN using the
(almost) same API. It is based on RTDM and is used together with one of
the Xenomai skins. If you use the RT-Socket-CAN MSCAN driver, you need
to disable it for Socket-CAN, or better, disable Socket-CAN completely.
Here are a few links related to RT-Socket-CAN:http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/drivers/can/README
http://www.xenomai.org/documentation/trunk/html/api/group__rtcan.html
http://www.xenomai.org/documentation/trunk/html/api/examples.htmlQuoted 10 lines
Quoted 4 lines
Wolfgang.
Thanks Wolfgang, those codes are great and help me understand some issues. But, I should have a
Makefileto compile them, shouldn't? I can 't use only ppc_6xx-gccrtcansend.c-o rtcansend, right? Do you have aMakefile?Quoted 12 lines
http://www.rts.uni-hannover.de/xenomai/lxr/source/examples/native/Makefile
shows how to make Xenomai applications using the native skin, like rtcansend. Nevertheless, rtcansend will be built together with the other
Xenomai user space applications.Wolfgang.
Hi all, I wonder know why many function declarations take place inside an structure like:
#if
defined(__KERNEL__)||defined(__XENO_SIM__)My compilation process always return error because it doesn't find the functions declarations that is inside those structures!
What should I do?
Quoted 9 lines
Quoted 6 lines
Please tell use what you compile how (source code + compile command)?
Wolfgang.
My source code and
Makefileare attached! First I'm trying to make some tests using POSIX API.First, your problems have nothing to do with Socket-CAN and therefore it's off-topic here. Please move this thread to the Xenomai-help mailing list.
The following commands reveal:
$ export CROSS_COMPILE=ppc_6xx $ export DESTDIR=/opt/eldk/ppc_6xx $ make XENO=/opt/eldk/ppc_6xx/root/xenomai ...Your
Makefileis not appropriate for the POSIX API but the native API. Have a look to working examples:
Quoted 8 lines
Quoted 6 lines
http://www.rts.uni-hannover.de/xenomai/lxr/source/examples/posix/
Wolfgang.
Wolfgang.
Hi Wolfgang, all those
Makefileget me confused! I'm gonna post my problem about posix on Xenomai list!
The Makefile is for Xenomai applications and modules and works with Linux 2.4 as well. That makes is somehow difficult to read. But the compiler and linker flags for your application are:
CC=$(shell $(XENOCONFIG) --cc)
CFLAGS=$(shell $(XENOCONFIG) --xeno-cflags) $(MY_CFLAGS)
LDFLAGS=$(shell $(XENOCONFIG) --xeno-ldflags) $(MY_LDFLAGS) -lnative
LDFLAGS+=-Xlinker -rpath -Xlinker $(shell $(XENOCONFIG) --libdir)
This is for the native skin. For rtcansend you also need to add -lrtdm.
Quoted 20 lines
I also tried to compile the
rtcansend.cwith theMakefileattached. The erros reported were;
/usr/local/xenomai/include/rtdm/rtdm.h:288: error: parse error before '(' token/usr/local/xenomai/include/rtdm/rtdm.h:289: error: parse error before '(' token/usr/local/xenomai/include/rtdm/rtdm.h:290: error: parse error before '(' token/usr/local/xenomai/include/rtdm/rtdm.h:291: error: parse error before '(' token/usr/local/xenomai/include/rtdm/rtdm.h:292: error: parse error before '(' token/usr/local/xenomai/include/rtdm/rtdm.h:293: error: parse error before '(' token/usr/local/xenomai/include/rtdm/rtdm.h:294: error: parse error before '(' token/usr/local/xenomai/include/rtdm/rtdm.h:295: error: parse error before '(' token
Quoted 1 line
I'm really striving on compile all these codes!!
Are you cross compiling? Then the include path above is wrong. Please tell use, what exactly you have typed to compile the program. Maybe just DESTDIR is not set properly.
Wolfgang.