Hello to all! I tried to debug the Blinky example shipped with the MCB2300 board in the Simulator mode. However, the code was blocked in a endless loop, waiting for the main oscilator stabilize.
Below is the code of the loop:
; Wait for main osc stabilize OSC_Loop LDR R3, [R0, #SCS_OFS] ANDS R3, R3, #OSCSTAT BEQ OSC_Loop
The code allways branch to OSC_Loop in the BEQ instruction.
Is this a bug in simulator? The version of uVision used is 3.50.
as a workaround, under simulation, you may force the execution on the instruction right after the branch. ( right click mouse option to put PC in somwhere ).
BEQ OSC_Loop -> XXX xx,xx,xx
There are a lot more problems with the simulation than just the startup code.