programming an xmega with avrdude using PDI interface

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am trying to program an xmega with avrisp mkII using PDI interface by avrdude. I am getting an error.

-------------------------
avrdude -p x128a1 -P usb -B5 -c avrisp2 -U flash:w:AES_example_interrupt.hex:i

avrdude: stk500v2_command(): error in CMD_XPROG_SETMODE: Unknown
avrdude: stk600_xprog_program_enable(): CMD_XPROG_SETMODE(XPRG_MODE_PDI) failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: stk500v2_command(): error in CMD_XPROG: Unknown
avrdude: stk600_xprog_program_disable(): XPRG_CMD_LEAVE_PROGMODE failed

avrdude done. Thank you.

make: *** [flash] Error 1
----------------------------------
Can anyone help me please to solve this issue? I am a beginner in this field.

Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please check your connections. What board are you using? Are you using an Atmel AVRISPmkII or a clone?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also check that your AVRISPmkII is fully up to date, as PDI was only added to later firmware versions. Unfortunately the only way to upgrade the firmware I know of is to use AVRStudio.