Brandt Erickson wrote: > Hey, > I'm trying to write a simple looping module to test out xenomai nucleus > usage. The problem is, when I insert the module (code attached), only the > printks from the initialization function ever get displayed and none from > the indefinite loop. All the pod startup functions return success, so is > the thread working and just not successfully sending the messages out or > is the thread not starting up at all? Could someone tell me if I'm using > the xenomai nucleus correctly? Thanks.
Have a look at other skins and their prologue/epilogue. RTDM is a fairly
simple skin e.g.
This is lacking in your case for init and may explain your problems
(unless some skin is already attached - but it's still required for
consistency):
#if defined(__KERNEL__) && defined(CONFIG_XENO_OPT_PERVASIVE)
/* The RTDM skin is stacked over the Xenomai pod. */
err = xncore_attach();
#else /* !(__KERNEL__ && CONFIG_XENO_OPT_PERVASIVE) */
/* The RTDM skin is standalone. */
err = xnpod_init(&__rtdm_pod, XNCORE_LOW_PRIO, XNCORE_HIGH_PRIO,
XNREUSE);
#endif /* __KERNEL__ && CONFIG_XENO_OPT_PERVASIVE */
Jan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
