abcminiuser / lufa

LUFA - the Lightweight USB Framework for AVRs.
http://www.lufa-lib.org
1.04k stars 325 forks source link

make avrdude does not work with flip! #68

Closed abferm closed 8 years ago

abferm commented 8 years ago

avrdude does not allow programming of "flash" via flip. I had to modify LUFA/Build/lufa_avrdude.mk to allow me to select the "application" memory. I suggest either adding a variable as I did, or adding a separate target, ie: avrdude-application.

...
# Default values of optionally user-supplied variables
AVRDUDE_PROGRAMMER ?= jtagicemkii
AVRDUDE_PORT       ?= usb
AVRDUDE_FLAGS      ?=
AVRDUDE_MEMORY     ?= flash
...
# Programs in the target FLASH memory using AVRDUDE
avrdude: $(TARGET).hex $(MAKEFILE_LIST)
    @echo $(MSG_AVRDUDE_CMD) Programming device \"$(MCU)\" FLASH using \"$(AVRDUDE_PROGRAMMER)\" on port \"$(AVRDUDE_PORT)\"
    avrdude $(BASE_AVRDUDE_FLAGS) -U $(AVRDUDE_MEMORY):w:$< $(AVRDUDE_FLAGS)
...
abcminiuser commented 8 years ago

Good suggestion Alex! Fixed in f7cdc8236988eca7f5b22a87c648f989414be1e8.