Trouble Flashing ATtiny3217 Xplained Pro board with MDB

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

Hi!

As the title says, I'm trying to flash a devboard (ATtiny3217 Xplained Pro) from MDB.

 

I can correctly program it from MPLAB X IDE, I can correctly generate the hex file via make or form MPLAB X itself, but I'm having a lot of trouble trying to flash the board from MDB.

 

What I've got so far:

- I can open MDB from the MPLAB X files

- I can set the device correctly with "device ATTINY3217"

- I can run "hwtool" with the debugger connected and I get: 

>hwtool

index Description

0 EDBG CMSIS-DAP(ATML2835031800001955)

- Next I should set the programming tool, I've tried "hwtool EDBG" but the program always returns "null"

- I've tried everything I can remember (hwtool "PICkit3", "ICD3", "RealICE", "SIM", "PM3", -p, -p 0) but nothing works

 

Then I do "program <path to hex>" and the program says "Programming failed".

 

Does anyone know how I should go about this? I should say again that I can correctly program the board from within MPLAB X.

 

Cheers!

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

Have you tried "atmelice" ?

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

help deviceandtool ?

MDB Reference: help - Developer Help

 

"Dare to be naïve." - Buckminster Fuller

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

mraardvark wrote:

Have you tried "atmelice" ?

 

I did and unfortunately, the script still answers "null" and fails to program the device.

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

gchapman wrote:

help deviceandtool ?

MDB Reference: help - Developer Help

 

 

That command didn't help. I've tried to run "hwtool supported" and the output is the following:

 

>hwtool supported

List of supported tooltype:

licensedprogrammer (for Licensed Debugger)

 

I've also tried "hwtool licensedprogrammer" and it still answers "null".

 

At this point I'm thinking it would be quicker and cheaper to just spin a new version of the board with an Atmega microcontroller... 

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

Try:

device ATtiny3217

set communication.interface UPDI

hwtool edbg

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

mraardvark wrote:

Try:

device ATtiny3217

set communication.interface UPDI

hwtool edbg

 

Awesome, that worked! Thanks!

 

Is this documented somewhere?