[ECOS] Problem about installing the eCOS interrupt handler

Jonathan Larmour jlarmour@redhat.com
Wed Oct 3 09:03:00 GMT 2001


HuangQiang wrote:
> 
> Hi all:
>    I am using ARME7T board at the moment. I have tried to install external
> INT0 in eCOS program but I encounter some strange problem so could anybody
> have a look of it for me? Thank you very much! Following are the source
> code:

Two potential problems: it could be cached, or it could be the compiler
optimizing the access away because you may not be using "volatile".

Try using the definitions in <cyg/hal/plf_io.h>. and make sure IOPCON is a
*volatile* pointer. I assume you're printing out its contents in a loop
somewhere - using insight to prod its value may not cause the value of
cpuval to change if the compiler detects that cpuval is not used.

(NB I don't know what IOPCON *does* on the e7t, but I assume you know what
you're doing in that respect).

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine



More information about the Ecos-discuss mailing list