Changeset 3fde1f7 in avrstuff
- Timestamp:
- Jan 3, 2024, 9:42:22 PM (4 months ago)
- Branches:
- main
- Children:
- 02817db
- Parents:
- 029735c
- git-author:
- PulkoMandy <pulkomandy@…> (06/08/2023 17:14:23)
- git-committer:
- PulkoMandy <pulkomandy@…> (03/01/2024 21:42:22)
- Location:
- kbd/pcw2hid
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kbd/pcw2hid/README.md
r029735c r3fde1f7 15 15 16 16 - Finalize keymap 17 18 Programming the device 19 ====================== 20 21 Connect the board to the STK500 programmer ISP6 connector, make sure the clock is running, if not, 22 connect the crystal from the STK500 to the board crystal outermost pin. 23 24 pushd code ; make fuse ; popd 25 pushd bootloader ; make avrdude ; popd 26 27 Then connect the board by USB. It should be in DFU mode 28 29 pushd code ; make flash ; popd 30 31 Disconnect and reconnect the board, it should still be in DFU mode 32 33 Finally connect the keyboard to the board and reconnect it, this time it should show up as keyboard. -
kbd/pcw2hid/bootloader/makefile
r029735c r3fde1f7 20 20 TARGET = BootloaderDFU 21 21 SRC = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S $(LUFA_SRC_USB) 22 LUFA_PATH = ../../LUFA22 LUFA_PATH = ../code/lufa-LUFA-210130/LUFA 23 23 CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET) 24 24 LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS) 25 25 LTO = Y 26 26 27 AVRDUDE_PROGRAMMER=stk500 27 AVRDUDE_PROGRAMMER=stk500 -B20 28 28 AVRDUDE_PORT=/dev/ports/usb0 29 29 -
kbd/pcw2hid/code/makefile
r029735c r3fde1f7 53 53 avrdude -u -c $(PROG) -p $(MCU) -Uflash:w:$^ 54 54 55 flip: $(TARGET).hex 56 avrdude -u -c flip1 -p $(MCU) -Uflash:w:$^ 57 55 58 fuse: 56 avrdude -u -c $(PROG) - p $(MCU) -U efuse:w:0xf4:m -U hfuse:w:0xd9:m -U lfuse:w:0x5e:m59 avrdude -u -c $(PROG) -B 2000 -p $(MCU) -U efuse:w:0xf7:m -U hfuse:w:0xd8:m -U lfuse:w:0xef:m
Note:
See TracChangeset
for help on using the changeset viewer.