Skip to content
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

Error: DFU_Upload #88

Open
MrBuushy opened this issue Apr 2, 2022 · 1 comment
Open

Error: DFU_Upload #88

MrBuushy opened this issue Apr 2, 2022 · 1 comment

Comments

@MrBuushy
Copy link

MrBuushy commented Apr 2, 2022

Ubuntu Terminal:

finnley@finnley-laptop:~/ChameleonMini/Firmware/Chameleon-Mini$ avrdude -c flip2 -p ATXMega128A4U -B 60 -P usb -U application:w:Chameleon-RevG.hex:i -U eeprom:w:Chameleon-RevG.eep:i

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9746 (probably x128a4u)
avrdude: NOTE: "application" 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 "Chameleon-RevG.hex"
avrdude: writing application (123898 bytes):

Writing | ################################################## | 100% 2.34s

avrdude: 123898 bytes of application written
avrdude: verifying application memory against Chameleon-RevG.hex:
avrdude: load data application data from input file Chameleon-RevG.hex:
avrdude: input file Chameleon-RevG.hex contains 123898 bytes
avrdude: reading on-chip application data:

Reading | #####################                              | 42% 0.30savrdude: Error: DFU_UPLOAD failed: error sending control message: Broken pipe
avrdude: Error: DFU status STALL
avrdude: Error: Failed to read 0x0100 bytes at 0xD700
Reading | ######################                             | 43% 0.31savrdude: Error: DFU_UPLOAD failed: error sending control message: Broken pipe
avrdude: Error: DFU status STALL
avrdude: Error: Failed to read 0x0001 bytes at 0x003B
avr_read(): error reading address 0x003b
    read operation not supported for memory "application"
avrdude: failed to read all of application memory, rc=-2

avrdude done.  Thank you.

finnley@finnley-laptop:~/ChameleonMini/Firmware/Chameleon-Mini$ 

I am currently on Ubuntu and I am trying to install the latest firmware on this Chameleon Tiny I have.
The error occurring keeps happening and each time the % changes. I have tried different cables and also different ports yet the same error occurs. I am pretty sure that I am putting it into bootloader mode each time I plug it in (I have it unplugged, hold "B" button, plug it in and then let go off "B". The CHG light glows and then un-glows (I think it used to stay glowing until I ran the command but I don't know if it did)). Using python3 ./chamtool.py in the Software folder doesnt seem to recognize that there is any Chameleon plugged in:

finnley@finnley-laptop:~/ChameleonMini/Software$ python3 ./chamtool.py
Use -p COMPORT to specify the communication port (see help).
List of potential Chameleons connected to the system:
finnley@finnley-laptop:~/ChameleonMini/Software$ 

I have even tried reinstalling avrdude as well but still nothing works. I tried using the "RFID Hacking By Iceman" "chameleon-mini" channel but I did not get many responses so I thought I should ask here

@cyber-vi-king
Copy link

It looks like you tried everything already.

From my experience, different ports/cables are an easy fix (obviously not the case here)
I always use make program to flash it - depending on how I set up my machine this might be neccesary to be run as root

Regarding the communication to the chameleon itself: I look at ls /dev/ttyA* before I connect the Chameleon and again after I connected it to find the tty device (usually ttyACM0 or ttyACM1, depending on how many other devices might be attached) and then use minicom -d /dev/ttyACM0 or whatever devicename you found out to connect.

From there at least version? should give you an answer - which would suggest, that the chameleon is indeed working and connected properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants