Sean McGranaghan wrote: > Hello all, > > I have been writing an RTDM driver for an ISA (PC/104) based DAQ board. I had > the initial driver working under a very old trunk snapshot (Rev 464). This > morning I upgraded to the latest trunk. I put a few small fixes into my > driver > and test application to take care of some deprecated functions and constants. > (rt_queue_recv() and RT_IRQ_ENABLED). It appears that my driver is no longer > receiving interrupts. I can see the irq line go active on the oscilloscope > but > it is never cleared and it appears my interrupt handler is never called. > > I ran the test suite including xeno-test with no problems. Attached are > output > files from dmesg, xeno-config and xeno-test outputs. My kernel config file is > also attached. > > At this point I think I need to turn on some debugging in the kernel. Which > debug options would be appropriate here?. >
First of all, what does /proc/xenomai/irq tell you about your DAQ IRQ? Is it registered correctly? Are there any arrivals noted? Then double-check if you pass the correct code on return from the IRQ handler: either RTDM_IRQ_HANDLED (if that IRQ was for you - standard), or RTDM_IRQ_NONE. Nothing else (RT_IRQ_ENABLE is "native stuff", i.e. violates the rule to keep your driver clean from non-RTDM APIs). Regarding debugging options: CONFIG_XENO_OPT_DEBUG_RTDM is highly recommended for drivers under development. Jan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
