Hi All,
I am trying to use the functions of Time.h in my application (My target is LPC2138) and my Application is jumping to SWI_Handler.
Do timer.h is implemented?
TNX Kobi
well, if your project links you probably have time.c included in your project. without details regarding what you do when it goes wrong, no one here would be able to help you. we don't have a degree in mind reading, you know.
Since you are not using semi hosting environment you need to retarget the low level time functions (at least _clock_init and clock and optionally time).
Look into the uVision User Manual for details: http://www.keil.com/support/man/docs/armlib/armlib_cihcbhgc.htm http://www.keil.com/support/man/docs/armlib/armlib_cihbihgf.htm http://www.keil.com/support/man/docs/armlib/armlib_cihbfbfd.htm
Look also at the example Keil\ARM\Examples\DHRY - especially Retarget.c for an example how to re-implement _clock_init and clock.