We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I started a new project with an LPC2106 cpu. There are two files in it: blinky.c and time.c In Blinky.c I declare: extern void init_time(void); And call it in the main function. Function is written in time.c When I link I get a undefined symbol report on init_time If I look at blinky.lst I can see a call to a external symbol called: "Z9init_timev" And if I look at time.lst I can see a global symbol "init_time" Anyone know what I am doing wrong???
More specifically: http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html#Overall%20Options
Actually we have completed your example. It is available at: http://www.keil.com/download/files/lpc2100_blinky.zip Detailed information can be found in the Abstract.txt file that comes with the example. It is tested with the simulator (but should also run on real hardware). This example shows: - how to setup the Vector Interrupt controller. - how to setup timer0 for timer interrupts. - how to put the device into power-down mode.
Looks like the example program from Keil support only runs on the simulator, not the real chip. There are no interrupts generated in real target.