Hi
I'm starting with ADuC70xx I got a small problem with timer 0
interupt.
Program does not go to handling routine. I tried many egzamples
without but didn't fond the wright one for ADuC
IRQ, FIQ, SWI, ABORT and UNDEF are the only valid parameters to the
interrupt function attribute.
I have seem problems with the code that arm-uclibc-gcc v3.3.1
generates for a function using an invalid function parameter like
this. The return from interrupt instruction – sub pc, r14,#14
– was omitted completely and control just flowed into the next
function. It may be a problem with the gcc version you are using as
well. No warning is given by the compiler.
The start-up code sets up the IRQ vector location. Does it point
to your handler? The interrupt function attribute does not update the
vector location to point to your function. (The C51 compiler
does).
You should also ensure that the handler in compiled in ARM mode
and not in THUMB mode for obvious reasons.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.