Skip to content

Commit 3e4941f

Browse files
committed
preliminary commit for the following changes
a) added DAC support for certain xmega series' b) improved USB somewhat; still work in progress c) added support for xmega128a4u
1 parent 33271be commit 3e4941f

29 files changed

+8797
-9721
lines changed

bootloaders/xmega/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,21 +417,27 @@ flashboot: xmega fusesxmega
417417
# TODO: write a program to correctly manage this out of a combined file
418418
avrdude -C $(ISPCONF) -c $(ISPTOOL) -p $(MCU_TARGET) -P $(ISPPORT) $(ISPSPEED) \
419419
-Uboot:w:$(PROGRAM)_xmega0_$(BOOTLOADER_SUFFIX).hex:i \
420-
-Ulockbits:w:$(LOCKBITS_LOCK):m
420+
-Ulock:w:$(LOCKBITS_LOCK):m
421+
422+
# -Ulockbits:w:$(LOCKBITS_LOCK):m
421423

422424
flashboot_cmd:
423425
@echo avrdude -C $(ISPCONF) -c $(ISPTOOL) -p $(MCU_TARGET) -P $(ISPPORT) $(ISPSPEED) \
424426
-Uboot:w:$(PROGRAM)_xmega0_$(BOOTLOADER_SUFFIX).hex:i \
425-
-Ulockbits:w:$(LOCKBITS_LOCK):m
427+
-Ulock:w:$(LOCKBITS_LOCK):m
428+
429+
# -Ulockbits:w:$(LOCKBITS_LOCK):m
426430

427431

428432
# this next target programs the fuses and leaves lock bits 'unlocked' for flashing
429433
# it also performs a chip erase which normally includes the EEPROM as well
430434
fusesxmega:
431435
while ! avrdude -C $(ISPCONF) -c $(ISPTOOL) -p $(MCU_TARGET) -P $(ISPPORT) $(ISPSPEED) -e \
432-
-Ulockbits:w:${LOCKBITS_UNLOCK}:m -Ufuse1:w:${FUSE1}:m -Ufuse2:w:${FUSE2}:m \
436+
-Ulock:w:${LOCKBITS_UNLOCK}:m -Ufuse1:w:${FUSE1}:m -Ufuse2:w:${FUSE2}:m \
433437
-Ufuse4:w:${FUSE4}:m -Ufuse5:w:${FUSE5}:m ; do sleep 1 ; done
434438

439+
# -Ulockbits:w:${LOCKBITS_UNLOCK}:m -Ufuse1:w:${FUSE1}:m -Ufuse2:w:${FUSE2}:m \
440+
435441
%.elf: $(OBJ)
436442
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
437443

0 commit comments

Comments
 (0)