Author Topic: Struggling to flash let's split  (Read 5213 times)

0 Members and 1 Guest are viewing this topic.

Offline nativejibroney22

  • Thread Starter
  • Posts: 23
  • I enjoy keyboards as well as making artisans
Struggling to flash let's split
« on: Fri, 03 November 2017, 00:10:23 »
I have been trying to flash the pro micros for my let's split build but have encountered many problems. I finally decided to edit my rules.mk file to get rid of nkro and rgb to see if it was the file size that was throwing it. This time when run the make command it actually prompted me to reset my promicro but then I ended up getting my usual error anyway.
Here is the output I get after running the command.

Code: [Select]
QMK Firmware 0.5.150
WARNING:
 Some git sub-modules are out of date or modified, please consider runnning:
 make git-submodule
 You can ignore this warning if you are not compiling any ChibiOS keyboards,
 or if you have modified the ChibiOS libraries yourself.

Making lets_split/rev2 with keymap n8v and target avrdude

avr-gcc (GCC) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Size before:
   text    data     bss     dec     hex filename
      0   17546       0   17546    448a lets_split_rev2_n8v.hex

Compiling: ./tmk_core/common/command.c                                                              [OK]
Linking: .build/lets_split_rev2_n8v.elf                                                             [OK]
Creating load file for Flash: .build/lets_split_rev2_n8v.hex                                        [OK]
Detecting USB port, reset your controller now..........
Detected controller on USB port at /dev/ttyACM0

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = ""; type =
    Software Version = .; Hardware Version = .
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader

avrdude done.  Thank you.

tmk_core/avr.mk:148: recipe for target 'avrdude' failed
make[1]: *** [avrdude] Error 1
Makefile:518: recipe for target 'lets_split/rev2:n8v:avrdude' failed
make: *** [lets_split/rev2:n8v:avrdude] Error 1
ubuntu@ubuntu-xenial:~/qmk_firmware$ Make finished with errors
« Last Edit: Fri, 03 November 2017, 15:49:01 by nativejibroney22 »

Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: Struggling to flash let's split
« Reply #1 on: Fri, 03 November 2017, 05:17:58 »
What command have you used?
Pro Micro runs on the Caterina Bootloader. You need to short Reset and Ground pads twice to enter the flashing mode.

As for the command, try:
Code: [Select]
avrdude -c avr109
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline nativejibroney22

  • Thread Starter
  • Posts: 23
  • I enjoy keyboards as well as making artisans
Re: Struggling to flash let's split
« Reply #2 on: Fri, 03 November 2017, 15:47:53 »
What command have you used?
Pro Micro runs on the Caterina Bootloader. You need to short Reset and Ground pads twice to enter the flashing mode.

As for the command, try:
Code: [Select]
avrdude -c avr109

I have used
Code: [Select]
avrdude -p ATmega32U4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hexand I get the same error that I got here.

Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: Struggling to flash let's split
« Reply #3 on: Fri, 03 November 2017, 16:37:54 »
Try adding -v flags for a verbose output.
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline nativejibroney22

  • Thread Starter
  • Posts: 23
  • I enjoy keyboards as well as making artisans
Re: Struggling to flash let's split
« Reply #4 on: Fri, 03 November 2017, 16:49:31 »
Try adding -v flags for a verbose output.

A little longer but still getting the same error.
Code: [Select]
ubuntu@ubuntu-xenial:~/qmk_firmware$ avrdude -p ATmega32U4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex -v

avrdude: Version 6.2
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/ubuntu/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : avr109
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = ""; type =
    Software Version = ▒.▒; Hardware Version = .
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader

avrdude done.  Thank you.
I did notice this time that it isn't letting me run the code till the computer recognizes that the pro micro is plugged back in, which is 8 seconds later, so it may be missing the bootloader window.

Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: Struggling to flash let's split
« Reply #5 on: Fri, 03 November 2017, 16:57:10 »
I have used
Code: [Select]
avrdude -p ATmega32U4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex

Try:
Code: [Select]
avrdude -p m32u4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline nativejibroney22

  • Thread Starter
  • Posts: 23
  • I enjoy keyboards as well as making artisans
Re: Struggling to flash let's split
« Reply #6 on: Fri, 03 November 2017, 17:21:07 »
I have used
Code: [Select]
avrdude -p ATmega32U4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex

Try:
Code: [Select]
avrdude -p m32u4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex

Got the same thing, still doesnt recognize the pro micro till it exits bootloader

Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: Struggling to flash let's split
« Reply #7 on: Fri, 03 November 2017, 17:54:51 »
I'm running out of ideas but one thing you could try is to reduce the baud rate. For example -b 57600
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline nativejibroney22

  • Thread Starter
  • Posts: 23
  • I enjoy keyboards as well as making artisans
Re: Struggling to flash let's split
« Reply #8 on: Sat, 04 November 2017, 15:24:45 »
I'm running out of ideas but one thing you could try is to reduce the baud rate. For example -b 57600

Yeh.. :/
So, I ran ls /dev/tty* and it looks like the pro micro won't appear on the usb while in bootloader mode. The computer won't register it till it exits bootloader mode. So I have no idea what to do.

Offline Harmvdw

  • Posts: 10
  • Location: The Netherlands
Re: Struggling to flash let's split
« Reply #9 on: Mon, 06 November 2017, 00:24:39 »
I had a problem that looked like that. The pro micro appeared on COM8 in bootloader mode and  switched to COM7 for normal. I used xloader to up load the hex file. I did not get it working trough avrdude. Maybe it helps.