Hi I want to start using dwarf-2 instead of ext-coff but it seems to be an impossible task just to generate a file that can be loaded with Studio v4.10 B356.
First of all the code I'm using generated a perfectly fuctional EXTCOFF file which I could load into Studio and step with JTAG-MK2.
Since I used a makefile that has been cut and pasted so many times I thought I'd go back to a 'clean' file that is output by the Mfile v1.41 utility. So I specified all the options from the Mfile menu (including Debug Format = ELF/DWARF-2) but when I open the .elf file from Studio I get the message "Coordinator Error loading object file".
I studied the makefile and saw the line "ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs"
still contains the stabs option. So I changed it to
"ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),--gdwarf2". Still no joy with loading the .elf file in Studio.
Please, what can I do to generate a working DWARF-2 file?
Another Q about make:
Is there a way to cause make to automatically check if any of the #included files in a .c file changed and then recompile the .c file when a make all is done? At the moment this list of dependancies is specifies manually in my makefiles.
PS: I've attached my whole makefile and the output from the make process.