We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i am writing a AGDI Driver for the uVision Debugger base on apntex_173. my chip is using Cortex-M0, many functions (r/w registers, r/w memory, start/stop debug session, run, run to cursor line, step out of current function, breakpoint and so on) have realized. only one thing makes me confused, as follow: i compile a project and then debug it, when arrive a subroutine, F10 and F11(step and step over) do same thing, they both go into subrountine, F10 should execute step over but execute step into .
i track souce, when F10 and F11, they both go into AG_GoStep, parameters nCode is 2, nSteps always is 1(only execute a step), F10 should execute n step. Somebody can give me some advice?
Thans a lot!!!
Hi, Thank you for giving us this information.
We still can not get the correct result, both F10 (Pstep) and F11 (Istep) always step into the functions, and did not set breakpoint.
For F10 and F11, It's OK to step the whole C source line, which calls "AG_GoStep(AG_NSTEP)" for serveral times internally. So Keil or upper layer dll(SARMCM3.DLL) must has the ability to know the PC address of next line.
It seems that it just can not understand the code of function call (such as BL, BX).
How Keil know if the code is a function call? Do we need to provide any information about it in ADGI driver?
Best regards,
xhchen at nuvoton.com