Makeburn.avr-dude 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Programming support using avrdude. Settings and variables.
  2. # Programming hardware: alf avr910 avrisp bascom bsd
  3. # dt006 pavr picoweb pony-stk200 sp12 stk200 stk500
  4. #
  5. # Type: avrdude -c ?
  6. # to get a full listing.
  7. #
  8. BURN=avrdude
  9. BURNPORT=com2
  10. ifeq ($(MCU),atmega128)
  11. BURNTARGET=m128
  12. endif
  13. ifeq ($(MCU),atmega2561)
  14. BURNTARGET=m2561
  15. endif
  16. ifeq ($(BURNTARGET),)
  17. BURNTARGET=$(MCU)
  18. endif
  19. #BURNFLAGS=-dprog=stk500 -dserial=$(BURNPORT) -dspeed=115200 -dpart=$(BURNTARGET) --erase --upload if=$(TARG)
  20. AVRDUDE_PROGRAMMER = stk500v2
  21. AVRDUDE_WRITE_FLASH = -U flash:w:$(TARG)
  22. #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
  23. AVRDUDE_FLAGS = -p $(BURNTARGET) -P $(BURNPORT) -c $(AVRDUDE_PROGRAMMER)
  24. # Uncomment the following if you want avrdude's erase cycle counter.
  25. # Note that this counter needs to be initialized first using -Yn,
  26. # see avrdude manual.
  27. #AVRDUDE_ERASE += -y
  28. # Uncomment the following if you do /not/ wish a verification to be
  29. # performed after programming the device.
  30. AVRDUDE_FLAGS += -V
  31. # Increase verbosity level. Please use this when submitting bug
  32. # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
  33. # to submit bug reports.
  34. #AVRDUDE_FLAGS += -v -v
  35. BURNFLAGS = $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)