Keil Logo

µVision debugger: enabling source level debug for already built ELF file

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
PAUL MOREAU
Posted
9-Feb-2019 20:43 GMT
Toolset
None
New! ÂµVision debugger: enabling source level debug for already built ELF file

Hello,

I have an existing test.elf that I built with an external MAKE utility.
I use the µVision debugger to debug my test.elf.
I can flash my hardware with test.elf in µVision.
My test.elf is compiled with debug info.
I can debug my test.elf in other Eclipse-based IDE, but I want to switch to µVision, because Eclipse-based IDE is Java-based and very slow.

The problem:
- When I start debugging (Ctrl+F5) the disassembly code opens.
- I don't want to debug test.elf in disassembly mode.
- I want to debug test.elf in regular source level debugging mode.

I tried to use SET SRC command. Without success.
Just spent a lot of time to enable source level debugging mode for my test.elf.

Questions:
1. How to see which path are already stored in the debug info in my test.elf?
2. My test.elf was built with files that are in multiple directories.
Like this:
test/dir1
test/dir2
test/dir2/subdir1
test/dir2/subdir2
...
Do I need to set all of them to SET SRC or just root one?
Like this: SET SRC = test/dir;test/dir2;test/dir2/subdir1;test/dir2/subdir2
Or like this:SET SRC = test
3. Can µVision enable source level debugging mode if test.elf contains debug info in absolute path? How I can configure GCC to store absolute path in debug info?

Many thanks.
P.M.

Author
Andrew Neil
Posted
11-Feb-2019 11:51 GMT
Toolset
None
New! RE: µVision debugger: enabling source level debug for already built ELF file

Was the "already built ELF file" built using the Keil compiler?

Search the forum for previous discussions on how to have uVision access debug info from a GCC-created ELF...

"Eclipse-based IDE is ... very slow"

I have never found Eclipse-based IDEs to be particularly faster or slower than uVision - so perhaps you should look into why your setup is so slow ... ?

Author
Andrew Neil
Posted
11-Feb-2019 11:56 GMT
Toolset
None
New! Searching the forum

See: http://www.keil.com/forum/64192/

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.