Hmm catching interrupts with RTEMS for the UART2 was tricky since it uses the trap value instead of the interrupt value so i had to do<br><br>rtems_interrupt_catch( UART_isr, (rtems_vector_number) 0x12,&old_handle );<br>
LEON_Unmask_interrupt(2);<br><br>in order to get the interrupt working. However, once the handler runs, the application seems to hang. the UART1, used for stdio, does not "printf" anymore after the handler is called. Any clues why?<br>
<br><br>Best,<br>JM<br><br><br><br><div class="gmail_quote">On Mon, Aug 16, 2010 at 5:23 PM, Joćo Rasta <span dir="ltr"><<a href="mailto:freakforever@gmail.com">freakforever@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br><br>I re-compiled RTEMS with CONSOLE_USE_INTERRUPTS=1 but now i don't receive any UART messages. Can it be that LEON3 does not support interrupt mode?<br><br><br>Best,<br>JM<div><div></div><div class="h5"><br><br>
<div class="gmail_quote">On Thu, Aug 12, 2010 at 5:57 PM, Joćo Rasta <span dir="ltr"><<a href="mailto:freakforever@gmail.com" target="_blank">freakforever@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">No problem, any help is allways very much appreciated. <br><div><div></div><div><br>
<br><div class="gmail_quote">On Thu, Aug 12, 2010 at 5:45 PM, Joris van Rantwijk <span dir="ltr"><<a href="mailto:jorisvr@sron.nl" target="_blank">jorisvr@sron.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>On Thursday 12 August 2010 18:24:16 Joćo Rasta wrote:<br>
> Including leonuart.h results in a compilation error:<br>
><br>
> ../src/comms/packet_lib/leonuart.h:57: warning: type defaults to 'int' in<br>
> declaration of 'amba_apb_device'<br>
> ../src/comms/packet_lib/leonuart.h:57: error: expected ';', ',' or ')'<br>
> before '*' token<br>
<br>
</div>Right, sorry.<br>
I just looked at the <a href="http://gaisler.com" target="_blank">gaisler.com</a> version of RTEMS, and it appears that<br>
the interface to the AMBA bus has been redesigned. The leonuart driver<br>
will not work on your version of RTEMS.<br>
<div><br>
> Calling apbuart_register() also results an error: apbuart_register not<br>
> found. I have included apbuart.h.<br>
<br>
</div>There seems to be a function called apbuart_register_drv() but I'm not<br>
sure how it works. It turns out that you are running a version of RTEMS<br>
that I have no experience with. Sorry for the confusion.<br>
<br>
Regards, Joris.<br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>