Will AVR-ISP MkII source current to target?

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

I'm developing an Arduino project based on the ATMega328P.  I'd like to eliminate the bootloader to speed startup, which means programming via some sort of ISP.  Since I have a couple of AVR-ISPs, and experience working with bare AVRs, the AVR-ISP would be the way to go.  

 

In my application, however, power is controlled via a soft-power circuit and a momentary pushbutton, so power wouldn't normally be on when programming.  I could bodge something together to insure that it is, but I was wondering, if I didn't, would the ISP be able to power the AVR during programming?  I don't think that would work since I know the ICE always checks for target power, but figured I'd check here first.  Thanks.

Last Edited: Wed. Sep 6, 2017 - 09:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There are several AVR ISP that can supply power; one :

Pololu Robotics and Electronics

Pololu

Support » Pololu USB AVR Programmer v2 User’s Guide »

8. Using VCC or VBUS to supply power

https://www.pololu.com/docs/0J67/8

 

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

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

Thanks, except I already have a couple of Atmel ones, so I'd like to use those if they'll work.  Will they?

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

No.

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

lautman wrote:
... I know the ICE always checks for target power ...
Atmel-ICE does not source current to the target but a Power Debugger can.

http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=ATPOWERDEBUGGER

 

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

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

Or a usbisp from china (via ebay) will!

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

Likewise, USBasp can supply USB VBUS (5V) to the target.

USBasp schematic

http://www.fischl.de/usbasp/

 

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

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

Or the "cheap solution" : cut a four track wide strip of Vero board and wedge it into a USB port. Outer two tracks are Gnd and 5V

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

gchapman wrote:

Atmel-ICE does not source current to the target but a Power Debugger can.

http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=ATPOWERDEBUGGER

 

DO you know if the Arduino IDE recognize Power Debugger and can program with it?

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

I do not know.

Power Debugger is EDBG like Atmel-ICE though its software would be different :

  • to interact with the XMEGA that controls the current sources, voltage measurement, and current measurement
  • adds USB CDC (virtual COM)
  • adds SDRAM

Atmel-ICE was added to AVRDUDE 6.3

 

http://ww1.microchip.com/downloads/en/DeviceDoc/Power-Debugger_UserGuide.pdf (page 84, Figure 6-2. Hardware Block Diagram)

via http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=ATPOWERDEBUGGER

AVRDUDE 6.3 released

http://savannah.nongnu.org/forum/forum.php?forum_id=8461

 

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