This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Address space overflow with very small program.

Hi,

I'm trying to write some code using Keil UV3 for the Philips/NXP 89LPC901 microcontroller.

It was compiling my C program fine and generating a HEX executable which I thought was dowloading to the micro ok but there was no signs of life from the chip. When I looked at the HEX code I realized why, the main program code was located at 0x0800 which is way out of the 1k code space of the chip.

So I went back into Keil UV3 and changed the target options so that it will use the on-chip ROM (0x0000-0x03FFF) but now I get address overflow errors even though the code previously generated is only about 100 bytes so far.

Any ideas what I'm doing wrong?

Thanks,

Dave.