IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2011-03-11 20:21:39 (13 years 17 days ago) |
---|---|
Author: | Werner Almesberger |
Commit: | edfb8a94ebc33e6b985b75d208b51b87b945f7b0 |
Message: | atusb/fw/Makefile: clean up handing of boot loader base address - Makefile (BOOT_ADDR, boot.elf): use variable instead of hiding the address in a command - Makefile (CFLAGS): pass BOOT_ADDR as a macro - Makefile: removed commented-out application flashing code |
Files: |
atusb/fw/Makefile (3 diffs) |
Change Details
atusb/fw/Makefile | ||
---|---|---|
14 | 14 | |
15 | 15 | NAME = atusb |
16 | 16 | |
17 | CFLAGS = -g -mmcu=$(CHIP) \ | |
17 | CFLAGS = -g -mmcu=$(CHIP) -DBOOT_ADDR=$(BOOT_ADDR) \ | |
18 | 18 | -Wall -Wextra -Wshadow -Werror -Wno-unused-parameter \ |
19 | 19 | -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes |
20 | 20 | |
21 | 21 | CHIP=atmega32u2 |
22 | 22 | HOST=jlime |
23 | BOOT_ADDR=0x7000 | |
23 | 24 | |
24 | 25 | AVR_PREFIX = $(BIN_PATH) avr- |
25 | 26 | CC = $(AVR_PREFIX)gcc |
... | ... | |
67 | 68 | |
68 | 69 | boot.elf: $(BOOT_OBJS) |
69 | 70 | $(CC) $(CFLAGS) -o $@ $(BOOT_OBJS) \ |
70 | -Wl,--section-start=.text=0x7000 | |
71 | -Wl,--section-start=.text=$(BOOT_ADDR) | |
71 | 72 | |
72 | 73 | %.bin: %.elf |
73 | 74 | $(BUILD) $(OBJCOPY) -j .text -j .data -O binary $< $@ |
... | ... | |
132 | 133 | -U hfuse:w:0xde:m \ |
133 | 134 | -U lock:w:0x2f:m |
134 | 135 | |
135 | # -U flash:w:$(NAME).bin:r \ | |
136 | ||
137 | 136 | on: |
138 | 137 | ssh $(HOST) poke 0x10010318 4 |
139 | 138 |