Coldfire (MCF5235) Interrupt Problem

Eric Norum wenorum at lbl.gov
Fri May 11 16:04:57 UTC 2012


On May 11, 2012, at 8:55 AM, Ivica Eftimovski wrote:

> Hi all,
>  
> I am just starting with RTEMS and I am trying to interface the MCF5235 BCC board to our existing hardware. I am trying to set it to use *IRQ4, which should have fixed level/priority.
>  
> When I execute the code noted below, the interrupts are disabled properly, the vector seems set and interrupts are re-enabled. But anytime I ground*IRQ4 (default high) line while my example program is running, I do not vector to the ISR.
>  
> I fashioned my code using the clock/network/console code as guide, and those work great.
>  
> Can anyone please give me a hint of what am I doing wrong?

Not sure about any of the MCF5235 code, but one thing for sure that is wrong is that you must not call printf from an interrupt handler…

Try declaring a volatile global variable -- increment it in the interrupt handler and print it in the main thread.

-- 
Eric Norum
wenorum at lbl.gov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120511/9afedaae/attachment.html>


More information about the users mailing list