RfidResearchGroup / ChameleonMini

The ChameleonMini is a versatile contactless smartcard emulator compliant to NFC. The ChameleonMini was first developed by KAOS. This is NOT the official repo for KAOS's ChameleonMini. For further information see the Getting Started Page
http://chameleontiny.com/help/
Other
411 stars 76 forks source link

Error: DFU_Upload #88

Open MrBuushy opened 2 years ago

MrBuushy commented 2 years ago

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 commented 2 years ago

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.