[atreus] Re: keyboard unresponsive after failed upload

  • From: Tyler Smith <tyler@xxxxxxxxxxxx>
  • To: atreus@xxxxxxxxxxxxx
  • Date: Fri, 23 Mar 2018 11:15:25 -0400

Following the directions here: https://www.pololu.com/docs/0J61/10.2 I managed ;
to clear the chip, but I still can't load anything new. Even the default atreus 
layout in qmk produces a similar list of errors as I originally reported.

Best,

Tyler

-- 
plantarum.ca

On Fri, Mar 23, 2018, at 10:32 AM, Tyler Smith wrote:

Hi,

After trying unsuccessfully to upload a new firmware, my keyboard is now 
completely unresponsive. Here's what I did:

1. Keyboard was working fine, using a modified qmk firmware. 
2. I made a few changes and recompiled the firmware
3. I tried to upload it, and got some errors (pasted below)
4. After this, the keyboard is completely unresponsive - 
- typing doesn't send anything to the computer. 
- Entering dmesg --follow and then plugging it in to the computer, 
there's no indication that the keyboard is detected. 
- Plugging it in, I can't see any LED lighting up (but I'm not sure 
exactly where it should be, even having opened up the case).

I suspect I may have bungled hitting the reset button during the upload 
process, if that's possible. I've used the same process without problem 
before, although I changed the key that activates the layer the reset 
button is on.

How can I reset the firmware? Can I manually trigger the reset somehow?

Thanks,

Tyler

Here's my shell log, with a lot of duplicate lines deleted:

while [ ! -r /dev/ttyACM0 ]; do sleep 1; done
avrdude -p atmega32u4 -c avr109 -U flash:w:atreus_tws2.hex -P /dev/ttyACM0

2018-03-22 16:37~/hacking/qmk_firmware 
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_tws2.hex"
avrdude: input file atreus_tws2.hex auto detected as Intel Hex
avrdude: writing flash (21932 bytes):

Writing | ########                                           | 15% 
0.50savrdude: error: programmer did not respond to command: write block
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 127 (addresses 0x0000 - 0x007f) failed to write
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 127 (addresses 0x0080 - 0x00ff) failed to write
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 127 (addresses 0x0100 - 0x017f) failed to write
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 127 (addresses 0x0180 - 0x01ff) failed to write
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 127 (addresses 0x5400 - 0x547f) failed to write
Writing | ################################################## | 99% 3.59s 
***failed;  
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 127 (addresses 0x5480 - 0x54ff) failed to write
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 127 (addresses 0x5500 - 0x557f) failed to write
avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 43 (addresses 0x552c - 0x55ab) failed to write

Writing | ################################################## | 100% 3.59s

avrdude: 21932 bytes of flash written
avrdude: verifying flash memory against atreus_tws2.hex:
avrdude: load data flash data from input file atreus_tws2.hex:
avrdude: input file atreus_tws2.hex auto detected as Intel Hex
avrdude: input file atreus_tws2.hex contains 21932 bytes
avrdude: reading on-chip flash data:

Reading |                                                    | 0% 
0.00savrdude: butterfly_recv(): programmer is not responding
Reading | ###                                                | 5% 
6.39savrdude: butterfly_recv(): programmer is not responding
Reading | ######                                             | 12% 
14.40savrdude: butterfly_recv(): programmer is not responding
Reading | ########                                           | 16% 
19.42savrdude: butterfly_recv(): programmer is not responding
Reading | ################################################## | 100% 
24.58s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0060
         0x0d != 0x0c
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK (E:C8, H:D0, L:FF)

avrdude done.  Thank you.


-- 
plantarum.ca


Other related posts: