ElTangas / jtag2updi

UPDI programmer software for Arduino (targets Tiny AVR-0/1/2, Mega AVR-0 and AVR-DA/DB MCUs)
MIT License
318 stars 91 forks source link

Error in avrdude.conf file! #51

Open dev-ahmed-ibrahim opened 2 years ago

dev-ahmed-ibrahim commented 2 years ago

When I put the avrdude.conf file inside avrdude folder and try to program, it shows the following!

: avrdude -u -c jtag2updi -P COM6 -p m8 WARNING: Unable to detect MCU

avrdude.exe: error at C:\Program Files (x86)\AVRDUDESS\avrdude.conf:1115: programmer type jtagice3_updi not found avrdude.exe: error reading system wide configuration file "C:\Program Files (x86)\AVRDUDESS\avrdude.conf"

How to solve this?

Thanks!

ElTangas commented 2 years ago

Well, it seems you are using a version of avrdude that does not support the jtagice3_updi programmer type. However, this is not the main problem here.

The main problem is that you want to program an ATmega 8 (-p m8) which is not an UPDI chip and therefore cannot be programmed with jtag2updi.

If you want to program the mega 8, I suggest you use this tool instead: https://github.com/microtherion/ScratchMonkey

You will also need to restore the original version of avrdude.conf to remove the error.

Actually I wrote jtag2updi inspired by ScratchMonkey.