Where electronics enthusiasts find answers.
naz wrote:As well as checking your startup code, as suggested, try switching off any compiler optimisation settings that may be active. An agressive optimiser will deduce that your loop isn't actually doing any real work and will optimise the 'for' statement away to nothing. Hence there will be no delay.Code: Select allfor (d = 0; d < 1000000; d++);
naz wrote:my code and example code is same.(means just i copied it in different file name).but my hex file and example hex file is not same why?.Example hex file is working fine.i'm confused.any one can tell me where i'm doing mistake.Make sure you are using
naz wrote:any one can tell me the details about starup file.NXP, the designers of the LPC2140 microcontroller, are a good starting point for information. Read their application notes: