To your keymap add:
Code: Select all
2] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_PCB)
Code: Select all
2] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_PCB)
Code: Select all
avrdude -p m32u4 -c usbasp -U flash:w:ATMega32U4-usbdevice_dfu-1_0_0.hex -P usb
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file "ATMega32U4-usbdevice_dfu-1_0_0.hex"
avrdude: input file ATMega32U4-usbdevice_dfu-1_0_0.hex auto detected as Intel Hex
avrdude: writing flash (32768 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 32768 bytes of flash written
avrdude: verifying flash memory against ATMega32U4-usbdevice_dfu-1_0_0.hex:
avrdude: load data flash data from input file ATMega32U4-usbdevice_dfu-1_0_0.hex:
avrdude: input file ATMega32U4-usbdevice_dfu-1_0_0.hex auto detected as Intel Hex
avrdude: input file ATMega32U4-usbdevice_dfu-1_0_0.hex contains 32768 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 32768 bytes of flash verified
avrdude: safemode: Fuses OK (E:C3, H:D9, L:DF)
avrdude done. Thank you.
Code: Select all
avrdude -c usbasp -p m32u4 -U lfuse:w:0xdf:m -U hfuse:w:0xd9:m -U efuse:w:0xc3:m -P usb
avrdude: safemode: Fuses OK (E:C3, H:D9, L:DF)
Code: Select all
dfu-programmer atmega32u4 flash nerd_lufa.hex
Checking memory from 0x0 to 0x56FF... Empty.
0% 100% Programming 0x5700 bytes...
[Device is write protected.
X ERROR
Memory write error, use debug for more info.
Code: Select all
dfu-programmer atmega32u4 flash nerd_lufa.hex --debug 99
target: atmega32u4
chip_id: 0x2ff4
vendor_id: 0x03eb
command: flash
quiet: false
debug: 99
device_type: AVR
------ command specific below ------
validate: true
hex file: nerd_lufa.hex
atmel.c:1295: atmel_flash( 0x7fff5abc7180, 0x7fff5abc7048, false, false )
atmel.c:1158: atmel_flash_prep_buffer( 0x7fff5abc7048 )
atmel.c:1335: Flash available from 0x0 to 0x6FFF (64kB p. 0 to 0), 0x7000 bytes.
atmel.c:1339: Data start @ 0x0: 64kB p 0; 128B p 0x0 + 0x0 offset.
atmel.c:1343: Data end @ 0x56FF: 64kB p 0; 128B p 0xAD + 0x7F offset.
atmel.c:1348: Totals: 0x5700 bytes, 174 128B pages, 1 64kB byte pages.
atmel.c:934: atmel_blank_check( 0x7fff5abc7180, 0x00000000, 0x000056FF )
atmel.c:1041: atmel_select_memory_unit( 0x7fff5abc7180, 0 )
atmel.c:1055: Ignore Select Memory Unit for non GRP_AVR32 device.
Checking memory from 0x0 to 0x56FF...
atmel.c:1100: atmel_select_page( 0x7fff5abc7180, 0 )
atmel.c:1114: Selecting page 0, address 0x0.
atmel.c:867: __atmel_blank_page_check( 0x7fff5abc7180, 0x00000000, 0x000056ff )
atmel.c:899: Flash region from 0x0 to 0x56FF is blank.
atmel.c:977: Flash blank from 0x0 to 0x56FF.
Empty.
atmel.c:1041: atmel_select_memory_unit( 0x7fff5abc7180, 0 )
atmel.c:1055: Ignore Select Memory Unit for non GRP_AVR32 device.
Programming 0x5700 bytes...
atmel.c:1100: atmel_select_page( 0x7fff5abc7180, 0 )
atmel.c:1114: Selecting page 0, address 0x0.
atmel.c:1431: Program data block: 0x0 to 0x3FF (p. 0), 0x400 bytes.
atmel.c:1566: __atmel_flash_block( 0x7fff5abc7180, 0x7fff5abc7048, false )
atmel.c:1528: atmel_flash_populate_header( 0x7fff5abc6ae0, 0x0, 0x3FF, false )
atmel.c:1482: atmel_flash_populate_footer( 0x7fff5abc6ae0, 0x7fff5abc6f00, 65535, 65535, 65535 )
Device is write protected.
atmel.c:1434: Error flashing the block: err -2.
ERROR
Memory write error, use debug for more info.
commands.c:360: Error writing memory data. (err -4)
Code: Select all
dfu-programmer atmega32u4 erase --force
Erasing flash... Success
Checking memory from 0x0 to 0x6FFF... Empty.
Code: Select all
dfu-programmer atmega32u4 flash nerd_lufa.hex --debug 5
target: atmega32u4
chip_id: 0x2ff4
vendor_id: 0x03eb
command: flash
quiet: false
debug: 5
device_type: AVR
------ command specific below ------
validate: true
hex file: nerd_lufa.hex
Checking memory from 0x0 to 0x56FF... Empty.
0% 100% Programming 0x5700 bytes...
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
0% 100% Reading 0x7000 bytes...
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
Validating... Success
0x5700 bytes written into 0x7000 bytes memory (77.68%).
Code: Select all
#define KEYMAP_ISO125( \
K08, K01, K10, K11, K20, K21, K30, K31, K40, K41, K50, K51, K60, K61, K69 \
K02, K03, K12, K13, K22, K23, K32, K33, K42, K43, K52, K53, K62, K63, \
K04, K14, K15, K24, K25, K34, K35, K44, K45, K54, K55, K64, K65, \
K07, K79, K16, K17, K26, K27, K36, K37, K46, K47, K56, K57, K66, K67, \
K06, K05, K78, K70, K72, K73, K74, K75 \
) KEYMAP( \
K08, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \
NO, K01, K10, K11, K20, K21, K30, K31, K40, K41, K50, K51, K60, K61, K69, NO, NO, \
K02, K03, K12, K13, K22, K23, K32, K33, K42, K43, K52, K53, K62, K63, NO, NO, NO, \
K04, K14, K15, K24, K25, K34, K35, K44, K45, K54, K55, K64, NO, K65, \
K07, K79, K16, K17, K26, K27, K36, K37, K46, K47, K56, K57, K66, K67, NO, \
K06, K05, K78, K70, K72, K73, K74, K75, NO, NO, NO \
)
Code: Select all
KEYMAP_ISO125(
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, 1, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \
LSFT,NONUS_BSLASH,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT,FN0, \
LCTL, LGUI,LALT, SPC, RALT, RGUI,APP,RCTL),