Using external INT0 on DSTINI400 in C with Keil

I have bodged an Exar UART onto a DSTINIs400 board & need to use INT0 with it. As a starting point pressing a push button to create an INT to test a handler gets executed would be nice before getting into writing various UART routines.

When I compile my C code, I get the
warning L30: memory space overlap
from c:200003H
to c:200007H

I'm not sure why this has happened & how do I get it working??

I am using the mon390 code to debug.

Help! Thanks

Trevor

Parents
  • That's essentially just the linker's somewhat cryptic way of telling you that you tried to define two distinct interrupt handlers for the same interrupt. Which, obviously, can't work.

    Odds are that the software you're adding that UART to already is using INT #0 in some other way. Check the rest of the message, and/or the map file, to see where the second one is coming from.

Reply
  • That's essentially just the linker's somewhat cryptic way of telling you that you tried to define two distinct interrupt handlers for the same interrupt. Which, obviously, can't work.

    Odds are that the software you're adding that UART to already is using INT #0 in some other way. Check the rest of the message, and/or the map file, to see where the second one is coming from.

Children
More questions in this forum