Hello all... I've been working for a few days (weeks?) with rtlinux
trying talk with a data acquisistion board for rt-control. I've found the
debugger code, but I'm unable to figure out what the problem is. I've got a
simple single thread for scanning the A/D channels, with a
while(1){
pthread_wait_np();
<code>.... }
main loop. The thread is initialized with
int init_module (void) {
struct sched_param p;
hrtime_t now = gethrtime();
pthread_create (&thread[0], NULL, scan_ad_channels, (void *) 1);
pthread_make_periodic_np (thread[0], now + 10000, 1000000000);
pthread_setfp_np (thread[0], 1);
p . sched_priority = 1;
pthread_setschedparam (thread[0], SCHED_FIFO, &p);
return 0;
}
The main problem I get are "exception 14 in init..." and gdb inidicates a fault
at the cleanup_module(), even before it's supposed to execute. Am I stomping
on memory somewhere? Can I find a listing of which exceptions are what
somewhere?
Thanks for any help
-Cory
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/