-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firmware upload fails #17
Comments
I tried using a Uno as ISP with SPI and gnd pins connected to the pro micro, with both devices powered, in order to burn a bootoader for the pro micro. It didn't work, so I also used avrdude from a windows command line with -F as below, but no success, just get 'invalid device signature' when burning the bootloader. Any thoughts much appreciated. C:\Users\Paul\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Paul\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -F -patmega32u4 -cstk500v1 -PCOM24 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xCB:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m |
ok so I got the sparkfun bootlaoder loaded (I missed out pin 10 of the arduino programmer which resets the pro micro), but the pro micro does not present a COM port in the arduino IDE. So I have tried : |
looks like it was a faulty USB cable...:( I now have a port assigned to the pro micro using the reset immediately before upload technique. |
ok, now finally got mEDBG virtual com port in windows device manager. The board has to be reset manually (two wires and a pushbutton switch temporarily installed onto pro micro rst and gnd) before upload even when the pro micro port is selected. |
Ok so I made good progress, but the code upload just hangs. Using Arduino ide, the tools menu has these items in it when the microUPDI is connected: The IDE just contains empty setup() and Loop() functions When I click the upload icon in the ide, the message window shows the following and the process just hangs indefinitely. Any help much appreciated Sketch uses 510 bytes (1%) of program storage space. Maximum is 49152 bytes. avrdude: Version 6.3-20201216
when I unplug the USB cable, the message window shows: avrdude: usbhid_open(): No response from device avrdude done. Thank you. An error occurred while uploading the sketch |
Hi Paul!
Please download the latest MegaCoreX version. Avrdude 6.3 has been replaced with Avrdude 7.1, which should work much better with the microUPDI |
Hi, I have installed avrdude 7.1 and its .conf file I tried to reinsall the firmware, but I now get the output below from Arduino IDE, any help much appreciated. Arduino: 1.8.13 (Windows 10), Board: "microUPDI Firmware Uploader" Sketch uses 0 bytes (0%) of program storage space. Maximum is 28672 bytes. Global variables use 0 bytes (0%) of dynamic memory, leaving 2560 bytes for local variables. Maximum is 2560 bytes. Forcing reset using 1200bps open/close on port COM10 PORTS {COM1, COM10, } / {COM1, COM10, } => {} PORTS {COM1, COM10, } / {COM1, COM10, } => {} PORTS {COM1, COM10, } / {COM1, COM10, } => {} PORTS {COM1, COM10, } / {COM1, COM10, } => {} PORTS {COM1, COM10, } / {COM1, } => {} PORTS {COM1, } / {COM1, } => {} PORTS {COM1, } / {COM1, } => {} PORTS {COM1, } / {COM1, } => {} PORTS {COM1, } / {COM1, } => {} PORTS {COM1, } / {COM1, COM10, } => {COM10, } Found upload port: COM10 C:\Users\Paul\AppData\Local\Arduino15\packages\microUPDIcore\hardware\avr\1.0.2/scripts/avrdude-wrapper.bat C:\Users\Paul\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude C:\Users\Paul\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf atmega32u4 avr109 COM10 57600 C:\Users\Paul\AppData\Local\Arduino15\packages\microUPDIcore\hardware\avr\1.0.2 C:\Users\Paul\AppData\Local\Temp\arduino_build_456569 avrdude: Version 7.1
connecting to programmer: .avrdude butterfly_recv() error: programmer is not responding avrdude butterfly_recv() error: programmer is not responding avrdude butterfly_recv() error: programmer is not responding avrdude butterfly_recv() error: programmer is not responding avrdude butterfly_recv() error: programmer is not responding avrdude butterfly_recv() error: programmer is not responding Programmer id = 0�����; type = $ Software version = |
In windows device manager the baord presents itself as expected: but when I look in the tools > programmer menu, the only atmel option is Atmel ICE. The Atmel mEDBG (microUPDI) does not appear. Not much hair left now :) :) Would it be useful perhaps to erase the Pro Micro and start again from scratch? |
Why would you want to reinstall the firmware? The firmware that's currently on the AVR is not designed to play nicely with the built-in bootloader, so I've not been able to flash it one more time using the bootloader. You can flash the firmware directly using Avrdude. Here's the command if you're using an Atmel ICE. I think this command should work. If not, manke sure the path to avrdude.exe, avrdude.conf and mEDBG_UPDI_1.13_no_bootloader.hex is correct.
|
HI thanks for reply. I don't have an Atmel ICE. I have been through process as described for flashing the mEDBG firmware to the Pro Micro, but as I've posted, when I try to program my AVR4809 chip, the Atmel mEDBG (microUPDI) does not appear in the IDE's programmer menu. So where to go from here ? Any ideas much appreciated. |
Also tried the programmer in Microchip studio and although it appears in the device programming tool dropdown, and is selectable, when 'Apply' is selected a 'failed to connect' error appears. |
Hi, I'm using the arduino IDE 1.8.13 and can't get the firmware to upload.
My arduino pro micro has a reset pin and I tried grounding that as the upload started, but it has no effect. Anything else I can try please?
Edit:
Part of the problem is that when I connect the pro micro, although the board shows a continuous red led, device manager does not show a port for it. So I think the upload is using COM1 which just fails.
end edit
error msg from IDE:
Arduino: 1.8.13 (Windows 10), Board: "microUPDI Firmware Uploader"
Sketch uses 0 bytes (0%) of program storage space. Maximum is 28672 bytes.
Global variables use 0 bytes (0%) of dynamic memory, leaving 2560 bytes for local variables. Maximum is 2560 bytes.
Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered: