<div dir="ltr">It may be off track but try increasing your stack size for the tasks. <div>What you can also try is instead of doing a printk, try blinking one of the Leds on an interrupt - just removes the printk from equation.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 13, 2015 at 10:49 PM, Martin Galvan <span dir="ltr"><<a href="mailto:martin.galvan@tallertechnologies.com" target="_blank">martin.galvan@tallertechnologies.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone! I'm currently trying to use an interrupt server task for<br>
handling USB interrupts on the Beaglebone Black. Here's the code I'm<br>
using:<br>
<br>
rtems_interrupt_server_initialize(1, 1500, RTEMS_TIMESLICE | RTEMS_PREEMPT,<br>
RTEMS_DEFAULT_ATTRIBUTES, NULL);<br>
<br>
rtems_interrupt_server_handler_install(NULL, AM335X_INT_USB1, "USB_interrupt",<br>
RTEMS_INTERRUPT_UNIQUE,<br>
reinterpret_cast<rtems_interrupt_handler>(USB1HostIntHandler), NULL);<br>
<br>
I checked the return codes of both functions and it's always<br>
RTEMS_SUCCESSFUL. At the same time I have a separate thread which is<br>
constantly doing a printk for debugging purposes.<br>
<br>
Right now what happens is that the printk thread runs about 10-15<br>
times and then the system hangs in the middle of the print. Am I doing<br>
something wrong?<br>
<br>
Thanks a lot!<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div><br></div>