I am working on lpc 1768 on keil version 5, after building the code when i go to debug using simulation option and run the code(using F5) the stop watch t1 which is in left bottom corner of debug window does not run continuously.
I have to hit F5 every time and the code gets stuck at
while (!(LPC_SC->PLL0STAT & (1<<26)));/* Wait for PLOCK0
above line which is in system_LPC17xx.c
Please help me in this situation.
do i need to set clock?
I have exact same problem. Is a compiler bug in gcc?
This is very urgent. I must hand in on monday.
Adviae now
>>This is very urgent. I must hand in on monday. The internet doesn't care, email your teacher and discuss with them. www.catb.org/.../smart-questions.html
Says the PLL should work in the simulator (uV4), wouldn't hold my breath.. http://www.keil.com/dd/chip/4868.htm
Why are you even using GCC, does the Keil Compiler not work? Try turning off optimization. Do you need the code in question to "simulate" the CPU? Could you ignore/remove it and test other aspects of the code? Note that in the code comments when you hand it in, shows some initiative.