2012-08-30 08:51 PM
Does Keil UV4 provide step-by-step debug mode? If so, how to activate it?
By ''step-by-step'' I mean execute my codes line by line, and I get to observe various registers and ports etc. However the ''run'' button execute my codes in an unfathomable fashion, it run through some of the codes, then stops, I press it again, and same thing happens. Worse yet, I have no control (seemingly) over where it starts its execution. Can anyone please help me?2012-08-30 09:00 PM
If you want to start at the beginning uncheck ''run to main()''
If the C view steps oddly, use the disassembly view, or turn off optimization. The stepping buttons let you step into a particular statement, step over line/subroutine, step out of subroutine, run to cursor.