This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil debugging run problem

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?

Parents
  • >>do i need to set clock?
    Most real-world synchronous logic expects you to supply one. What does the part's Reference Manual suggest?

    Have you tried enabling the clock? Does the code work on real hardware? Do the peripheral views in the debugger suggest that registers are in a usable state?

Reply
  • >>do i need to set clock?
    Most real-world synchronous logic expects you to supply one. What does the part's Reference Manual suggest?

    Have you tried enabling the clock? Does the code work on real hardware? Do the peripheral views in the debugger suggest that registers are in a usable state?

Children