Home arrow Support arrow Forums

Luminary Micro Forums

gnuarm

Fresh Boarder
Click here to see the profile of this user

2007/01/28 17:14

Keil debugger problem

I am working on a design contest entry and I am having trouble with the debugger. Unless I am doing something really wrong, it looks like the debugger has some very serious issues.

When I am single stepping code the debugger is very slow. I guess that is more an issue with the the FTDI USB interface than the debugger.

When I view local variables in the local watch window, they sometimes change value even when they are not being acted upon. I looked at the assembly output and it seems that the compiler will move a local from one register to another. When that happens, the debugger does not keep up and displays the old register. This makes it very hard to tell if the code is wrong or if it is a debugger error.

I have also seen the debugger just plain not display a local variable in the local window. I can't add it to the regular watch window either. It is tough to use a debugger that won't show you variable info.

Anyone else see this or is my debugger old or something? I am using the tools straight off the contest CD.

login or register to reply

jberezin

Junior Boarder
Click here to see the profile of this user

2007/02/01 12:10

Re:Keil debugger problem

The speed issue is normal for most of these types of debuggers. You can set multiple breakpoints or run to the cursor location for much better performance.

The weird issue you are having with the local variables is a problem which I am also experiencing right now. I am also having the same problem when trying to add these variables to the watch window. If you hear of a solution I would be interested also.

login or register to reply

abcdef

Fresh Boarder
Click here to see the profile of this user

2007/02/02 11:10

Re:Keil debugger problem

I found the support knowledgebase at Keil and they have a couple of posts about the Locals watch window not displaying the right values. Both are from last year, around late summer, IIRC. Seems this issue may be fixed, but I don't know when they released the fix. The contest CD has a version of the tools that is not current. There is an update if you go to the contest main page. But Keil has an even newer version out. I have not been told that either of these versions have fixed the problem. I will try to update my version of the tools tonight when I get home.

login or register to reply