I found out if I delete the files below first before the subsequent upload, it
works.
rm atreus.sym atreus.map atreus.lss atreus.hex atreus.elf atreus.eep
Michael
On Dec 21, 2016, at 8:23 PM, Michael Wan <michaeltwan@xxxxxxxxxx> wrote:
Thanks guys, I was able to change to Jeremy's layout to experiment. Then I
was able to switch to the bootloader process in jeremy's layout by holding K
and pressing the third key on the last row. I verified that with ls /dev/cu*
and got this:
crw-rw-rw- 1 root wheel 17, 59 Dec 21 19:54 /dev/cu.usbmodem1411
However, when I tried to switch it back to default, it wouldn't work and
there no error message.
I ran this in terminal:
make upload KEYMAP=qwerty USB=/dev/cu.usbmodem1411
if [ -f /dev/cu.usbmodem1411 ] && [ ! -r /dev/cu.usbmodem1411 ]; then echo
"Warning: no read permission!"; fi; \
while [ ! -r /dev/cu.usbmodem1411 ]; do sleep 1; done; \
avrdude -p atmega32u4 -c avr109 -U flash:w:atreus.hex -P
/dev/cu.usbmodem1411
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
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: reading input file "atreus.hex"
avrdude: input file atreus.hex auto detected as Intel Hex
avrdude: writing flash (14950 bytes):
Writing | ################################################## | 100% 1.13s
avrdude: 14950 bytes of flash written
avrdude: verifying flash memory against atreus.hex:
avrdude: load data flash data from input file atreus.hex:
avrdude: input file atreus.hex auto detected as Intel Hex
avrdude: input file atreus.hex contains 14950 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.13s
avrdude: verifying ...
avrdude: 14950 bytes of flash verified
avrdude: safemode: Fuses OK (E:C8, H:D0, L:FF)
avrdude done. Thank you.
What did I miss? I tried it a few times with the same result. It seems
strange that I was able to use this (make upload KEYMAP=jeremy
USB=/dev/cu.usbmodem1411) to change to jeremy but not able to change it back.
The only line of code that I edited was to comment out this line:
#define SOFTWARE_COLEMAK in the file: keymap_jeremy.c
Thanks again.
Michael
On Dec 21, 2016, at 7:53 AM, Jeremy Cowgar <jeremy@xxxxxxxxxx> wrote:
Sorry for the confusion there, but to switch to the boot loader process on
the keyboard, first go to the cursor layer, then the boot menu.
To access the cursor layer, press and hold the K key. Then you can hit the
third key from the left on the lowest row. You can then load other firmware.
Take a peek at line 125 in the keymap_jeremy.c file you linked to.
Jeremy
From: atreus-bounce@xxxxxxxxxxxxx [mailto:atreus-bounce@xxxxxxxxxxxxx] On ;
Behalf Of Michael Wan
Sent: Tuesday, December 20, 2016 10:27 PM
To: atreus@xxxxxxxxxxxxx
Subject: [atreus] Jeremy layout - how to switch to bootloader mode
New Atreus user here, I'm experimenting with different layout of Atreus, if
I switch to this Jeremy layout:
https://github.com/technomancy/tmk_keyboard/blob/atreus/keyboard/atreus/keymap_jeremy.c
Is there anyway I can switch to the bootloader mode without shorting the
pins? I looked at the layout file here however didn't seem to see the
reset/bootloader option (I could be missing it as I’m still learning to
decipher some of the symbols shown).
http://www.keyboard-layout-editor.com/#/gists/cbed8979bba2df4419c738903a623546
http://www.keyboard-layout-editor.com/#/gists/8956a18b508a78e93b9c38ec3fcccaa5
http://www.keyboard-layout-editor.com/#/gists/6ed492b714a7f54eb1c5de09b87fd8c4
http://www.keyboard-layout-editor.com/#/gists/399ceb5624e8388e48a3a5eacac8e973
http://www.keyboard-layout-editor.com/#/gists/7fd7dc24c7048316f3724b1893c64e89
(above the links to the 5 layers on this layout)
Reading the code, it has a layer 0 for bootloader, however I’ve not figured
out how to expand on the BOOT layer, here are the snippets below:
// Each layer gets a name for readability, which is then used in the keymap
matrix below.
#define BOOT 0 // Bootloader (not to be confused with default layer)
#define ALPH 0 // Alphabet Layer
#define NUMS 1 // Number Layer
#define FKEY 2 // Function Key Layer
#define CURS 3 // Cursor Layer
#define SYMB 4 // Symbol Layer
Thanks for any pointer.
Michael