geekhack
geekhack Projects => Making Stuff Together! => Topic started by: nativejibroney22 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.
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
-
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:
avrdude -c avr109
-
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:
avrdude -c avr109
I have used
avrdude -p ATmega32U4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex
and I get the same error that I got here.
-
Try adding -v flags for a verbose output.
-
Try adding -v flags for a verbose output.
A little longer but still getting the same error.
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.
-
I have used
avrdude -p ATmega32U4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex
Try:
avrdude -p m32u4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex
-
I have used
avrdude -p ATmega32U4 -P /dev/ttyACM0 -c avr109 -U flash:w:lets_split_rev2_n8v.hex
Try:
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
-
I'm running out of ideas but one thing you could try is to reduce the baud rate. For example -b 57600
-
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.
-
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.