This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uV debugging of externally compiled files

Hi,

I'm starting to work with the Keil MDK_ARM_4.14 and I have some problems with setting up a project for debugging. I build my software with an external build process using a makefile. The output format is dwarf2 and the file extension of the debug file is *.elf.

My first problem is to change the file extension of the debug file in the uVision environment. uV always requires a *.axf file. Is it possible to change this standard extension? My current workaround is to rename my elf-file to *.axf.

My second problem is the debugging behaviour of the uVision environment. When I compile a project completely in uV then the debugger automatically opens a source file when a function call is executed outside of the current file. When I use my externally build debug file the debugger doesn't do this. That means if a function call is executed, I need to open the file manually and then the executed position is shown properly after the first single step command. Does anybody know the reason for this behaviour?

I hope anyone can help me.

Cheers,
Ralf

Parents
  • Thanks for the fast reply!

    I thought that the complete path information is located in the *.elf file isn't it? I made a dump of the elf using the fromelf tool and it contains all pathes of my linked objects.

    Where does the debugger take the path information from?

    My folder strcture is as follows:

    <project>\build
    <project>\prog => contains the application code and make file
    <project>\uses => contains library files

    My elf-file is generated in the prog folder. The uV project is located in the <project> root folder, i.e. one step above the elf-fle in the prog folder.

    rgds,
    Ralf

Reply
  • Thanks for the fast reply!

    I thought that the complete path information is located in the *.elf file isn't it? I made a dump of the elf using the fromelf tool and it contains all pathes of my linked objects.

    Where does the debugger take the path information from?

    My folder strcture is as follows:

    <project>\build
    <project>\prog => contains the application code and make file
    <project>\uses => contains library files

    My elf-file is generated in the prog folder. The uV project is located in the <project> root folder, i.e. one step above the elf-fle in the prog folder.

    rgds,
    Ralf

Children