hi peg,
thanks for the info !!
i'm using HCS908AW32 controller for my application. Cyclone pro is the flash tool along with BDM connector. using this setup, i'm tring to debug my code by entring Background Debug mode.
everything works fine untill it encounters a while loop in the code. the first while loop is in clock initialisation function. here i wait for PLL to stabilize to the specified frequency. There is a LOCK bit in the status register which says about the status of PLL. untill that bit is false, program doesn't come out of the while loop.
problem is LOCK bit in the status register (ICGS1) is not getting cleared. so program execution is not coming out of that loop. This bit is not in my control.
so now i get a doubt that, if its executing from the hardware, LOCK bit should get cleared and execution should come out of the loop. is it just simulated in PC ??
i tried to toggle a portpin inside the while loop, and it was not toggling. so is this a simulation or is this executing from the hardware connected ???
if i remove the BDM connection, there is a message - " cannot communicate to Hardware"
i'm really confused with the situation.