[En-Nut-Discussion] How do I generate Ethernut (Net & OS) with symbols?

Chuck Hackett egroupscdh at up844.us
Mon Jan 30 03:58:22 CET 2006


I'm trying to rebuild the HTTPD sample application with symbols within Nut/Net,
Nut/OS and HTTPD itself.

I've worked on it a couple of days and read all the documentation I can find but
I end up with symbols for the HTTPD portion but I can't seem to generate an
image of Ethernut with symbols on.

My Environment:
	Windows XP
	Ethernut 4.0.1
	WinAVR 20060125
	AVRStudio 4.10.356
	Ethernut2.1b target

My Background:
	New to WinAVR and Ethernut, 30 years experience in non-embedded software
development.

Currently I'm just loading the elf into AVRStudio's simulator (I know it won't
run there, I'm just doing it for the moment to test for the presence of
symbols).

In the Ethernut Configurator I turned on "Tools/GCC Settings/Include debug info"
and re-executed the "Build Nut/OS" and "Create Sample Directory" steps.

To get symbols within HTTPD I then added the following to the UserConf.mk file
in HTTPD:

# Generate debug information, also turn off optimization
HWDEF += -g3 -gdwarf-2 -O0

# Rule to generate project elf file for debugging
elf: $(PROJ).elf

Then I did a "make clean", "make all" and "make elf"

When I load it into AVRStudio I appear to have symbol information for HTTPD but
not for Nut itself.

Also, is adding the "elf: $(PROJ).elf" rule to "HTTPD\UserConf.mk" the way I'm
supposed to generate the elf file?  It seemed strange that I'd have to do that
but I noticed that the "make all" deletes the elf file at the end and I didn't
notice any other rules to produce it.  Or, should I be giving AVRStudio a
different file?  Is there a template that the sample directory "Makefile"s are
generated from that I should modify for this?  This is probably just due to my
'newness' at WinAVR & Ethernut.

Any help greatly appreciated.

Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844
http://www.whitetrout.net/Chuck





More information about the En-Nut-Discussion mailing list