firmware: bootloader with firmware upgrade

This commit is contained in:
ikari
2011-02-17 18:57:10 +01:00
parent 2d15e24f4d
commit cb202569d1
49 changed files with 9055 additions and 5 deletions

View File

@@ -200,6 +200,8 @@ all: build
build: elf bin hex
$(E) " SIZE $(TARGET).elf"
$(Q)$(ELFSIZE)|grep -v debug
cp $(TARGET).bin $(OBJDIR)/firmware.img
utils/genhdr $(OBJDIR)/firmware.img SNSD $(CONFIG_FWVER)
elf: $(TARGET).elf
bin: $(TARGET).bin
@@ -216,6 +218,7 @@ sym: $(TARGET).sym
program: bin
utils/lpcchksum $(TARGET).bin
openocd -f openocd-usb.cfg -f lpc1754.cfg -f flash.cfg
make -C bootldr program
debug: bin
openocd -f openocd-usb.cfg -f lpc1754.cfg