Timer 2 problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Timer 2 problem

617 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ramesh@spatika on Mon Aug 30 23:41:17 MST 2010
Hi,
Last week i was trying to initialise timer 2 in lpc 1768 for using as a counter.

But, unfortunately as soon as the program is started the programs stops in a hard fault handler()


kindly clarify me if someone has any solution for the same.
0 Kudos
Reply
1 Reply

589 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Aug 31 00:07:56 MST 2010
For information on how to go about debugging a hard fault, please see:

http://lpcxpresso.code-red-tech.com/LPCXpresso/node/52

You might also want to take a look at the "RDB1768cmsis_timers" example (supplied with LPCXpresso 3.4.6, or downloadable from http://support.code-red-tech.com/CodeRedWiki/RDB1768V2Support). This example sets up the 4 timers to be found in the LPC1768 MCU, and flashes the  LEDs based on when the timers trigger interrupts - one LED per timer  interrupt. Note though that the LED related code in this example is for Code Red's RDB1768 board, and will not work directly on the LPCXpresso1768 board. However the timer code may give you useful pointers for your own code.

Regards,
CodeRedSupport
0 Kudos
Reply