Revision 163
tried to update test Makefile to move code to start at 1024
also added some printouts to netprog
Makefile | ||
---|---|---|
182 | 182 |
# -Wl,...: tell GCC to pass this to linker. |
183 | 183 |
# -Map: create map file |
184 | 184 |
# --cref: add cross reference to map file |
185 |
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref |
|
185 |
LDFLAGS = -Wl,--section-start=.text=0x400,-Map=$(TARGET).map,--cref
|
|
186 | 186 |
LDFLAGS += $(EXTMEMOPTS) |
187 | 187 |
LDFLAGS += $(PRINTF_LIB) $(SCANF_LIB) $(MATH_LIB) |
188 | 188 |
|
... | ... | |
378 | 378 |
@echo load >> $(GDBINIT_FILE) |
379 | 379 |
endif |
380 | 380 |
@echo break main >> $(GDBINIT_FILE) |
381 |
|
|
381 |
|
|
382 | 382 |
debug: gdb-config $(TARGET).elf |
383 | 383 |
ifeq ($(DEBUG_BACKEND), avarice) |
384 | 384 |
@echo Starting AVaRICE - Press enter when "waiting to connect" message displays. |
385 | 385 |
@$(WINSHELL) /c start avarice --jtag $(JTAG_DEV) --erase --program --file \ |
386 | 386 |
$(TARGET).elf $(DEBUG_HOST):$(DEBUG_PORT) |
387 | 387 |
@$(WINSHELL) /c pause |
388 |
|
|
388 |
|
|
389 | 389 |
else |
390 | 390 |
@$(WINSHELL) /c start simulavr --gdbserver --device $(MCU) --clock-freq \ |
391 | 391 |
$(DEBUG_MFREQ) --port $(DEBUG_PORT) |
392 | 392 |
endif |
393 | 393 |
@$(WINSHELL) /c start avr-$(DEBUG_UI) --command=$(GDBINIT_FILE) |
394 |
|
|
395 | 394 |
|
396 | 395 |
|
397 | 396 |
|
397 |
|
|
398 | 398 |
# Convert ELF to COFF for use in debugging / simulating in AVR Studio or VMLAB. |
399 | 399 |
COFFCONVERT=$(OBJCOPY) --debugging \ |
400 | 400 |
--change-section-address .data-0x800000 \ |
Also available in: Unified diff