View previous topic :: View next topic |
Author |
Message |
krolikbest
Joined: 02 Jan 2017 Posts: 112
|
Posted: Thu Apr 28, 2022 9:27 am Post subject: xmega32E5 and programmer issue |
|
|
Hello,
I recently purchased an xmega32e5. I have a programmer based on LUFA project (AVRISP mkII) supporting isp, pdi and tpi. However, on the seller's website this microcontroller is not listed as a supported chip. The last update of the LUFA project I have is LUFA151115.hex. My question, maybe there is (I can't find via google) a newer update that supports this chip? I will add that in Bascom using this programmer in ISP mode I have no problem detecting and programming atmegas while trying to detect a board with xmega32e5 (http://store.modulowo.com/pl/p/Xmega-eXploreE5-z-ATXmega32E5/358) I get
"stk500v2_disable(): failed to leave programming mode, got 0x01
Chip Device ID : 000006
:stk500v2_cmd(): failed to read signature
AVRISP MK2 detecteg
.
.
.
"
Some hints, ideas according to this programmer (https://www.sibit.pl/sklep/avr-prog-mkii.html).
Regards,
Martin |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Thu Apr 28, 2022 1:53 pm Post subject: |
|
|
in bascom , when using xmega, the PDI protocol is automatic used.
But of course the programmer must be able to support this.
stk500/600 protocol is used.
you could try using avrdude to see if it works. _________________ Mark |
|
Back to top |
|
|
krolikbest
Joined: 02 Jan 2017 Posts: 112
|
Posted: Fri Apr 29, 2022 1:53 pm Post subject: |
|
|
First to be sure that this programmer works with avrdude I decided to connect it to the Arduino Uno via ISP interface, knowing that in Bascom I can use this programmer as a USBProg Programmer/AVR ISP mkII and there it works and can upload programs to the Uno, so I gave a try to communicate using avrdude 6.3 and I've written:
avrdude -p m328p -c avrisp2 -P usb
but I got as a respone:
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_getsync(): timeout communicating with programmer
but using avrdude 5.11 I successfully read a signature. It seems that my programmer with LUFA project has a serious problem with avrdude >=6.01. I can't use downgraded version because I doesn't support xmega32e5. Abandon this programmer and buy something newer or there is some workaround according LUFA project. Maybe someone had similar problem?
Regards,
Martin |
|
Back to top |
|
|
krolikbest
Joined: 02 Jan 2017 Posts: 112
|
|
Back to top |
|
|
|