Network error
Chris Johns
chrisj at rtems.org
Wed Dec 8 03:06:07 UTC 2004
Steve Holle wrote:
> At 01:48 PM 12/7/2004, Joel Sherrill <joel at OARcorp.com> wrote:
>
>> Steve Holle wrote:
>>
>>> I'm trying to stream 16-bit audio samples at 8ksps over the network
>>> using datagram packets. After running for a cople of minutes RTEMS
>>> halts with "RETMS: Can't obtain network semaphore." These samples
>>> are sent in packets of 128 16-bit words ( 256 8-bit bytes ) every 16mS.
>>> All that's in the DDD backtrace after the crash is :
>>> ZEROLOOPTEST();
>>> boot_card() at bootcard.c:133
>>> sp_cleanup() at bspclean.c:34
>>> Any idea what could be causing this?
>>
>>
>> Are you trying to access the network stack from an ISR by any chance?
>
>
> No. I load up buffers in my interrupt and send a pointer to the buffer
> and length through an RTEMS message queue. The network send and receive
> are handled in independant threads.
>
>
Are your stack sizes large enough ?
Any chance you can run with a debugger and set a break point on the line
312 of cpukit/libnetworking/rtems/rtems_glue.c ?
We can then see which thread is failing.
Are your networking threads higher or lower in priority than the network
stack and drivers ?
--
Chris Johns
More information about the users
mailing list