Suggested production programmer for AVRDUDE/ATmega328(p,b)?

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

We've been doing production programming for years with the MKII and custom scripts with AVRDUDE (mostly to burn a serial number automatically).  It worked great for a long time, but these MKii's are starting to flake out, and are no longer being manufactured.  I'm uncertain if the clones will work reliably.

 

What's the go-to programmer these days that's reliable, and plays well with avrdude?  We'll be using atmega328, sometimes the -p and/or -pb variants.  6 pin ISP header on-board for in-system programming, 3.3V. Cost really isn't an issue.  Probably windows XP if that matters, but we can get a new PC for Win10 if it helps.  Thanks!

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

Win10 + Atmel ICE

 

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

jrs454 wrote:
Probably windows XP if that matters, but we can get a new PC for Win10 if it helps.
Ditch the MKIIs and Windows XP!

ki0bk wrote:
Win10 + Atmel ICE
+1

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

"Make XMEGA Great Again!"  - Greg Muth

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

Excellent, thanks, already on order.  I wasn't sure if avrdude worked well with Win10 but I'm glad it does.

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

For production I use a number of Kanda keyfob units.

"This forum helps those that help themselves."

"If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."

 

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

jrs454 wrote:

We've been doing production programming...

Brian Fairchild wrote:

For production...

blush​Don't know how I missed "production" when it was in so many places including the thread title.  I'll blame it on not having had enough coffee.

 

Now I do have some reservations about the recommendation of the Atmel-ICE for use in production but only in regard with the delicate connectors and jumpers (squibs) that it comes with.  I have seen adapters that can make the Atmel-ICE more rugged and those may be necessary for your production use case.  The Atmel-ICE does work very well for the programming task.

 

EDIT: Link to an adapter https://atoomnet.net/atmel-ice-header-adapter/ Eagle schematic and board layout is there.  The designer may have some bare boards left and will ship worldwide.

 

Atmel ICE with header adapter

 

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

"Make XMEGA Great Again!"  - Greg Muth

Last Edited: Wed. Jan 31, 2018 - 06:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jrs454 wrote:
I'm uncertain if the clones will work reliably.
Can answer that by trying the clone, one of the function-likes (LUFA AVRISP2), or revert to STK500.

jrs454 wrote:
We'll be using atmega328, sometimes the -p and/or -pb variants.
ATmega328PB is one of the AVR that can be programmed by Microchip.

Once the bootloader or monitor or application is programmed then can burn the serial number via those.

This method will be unwieldy if there's a significant number of combinations (multiple bootloaders, multiple monitors, multiple applications) as each is on its own reel.

 


https://www.waveshare.com/wiki/USB_AVRISP_XPII

http://www.fourwalledcubicle.com/AVRISP.php

https://www.pololu.com/product/3170

http://www.microchipdirect.com/AVR-SAM-Programming.html

 

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

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

AvrDUDE also runs wel  on Linux.

Linux prevents a lot of licence and update headaches.

Small linux boxes also support nice small LCD's.

For example Combination of the Hardkernel Odroid C3 with a 3.2" LCD (Picture below) costs < USD100

It also has extra I/O pins which can be used in a shell script to start avrdude with a foot pedal  proximity switch or whatever.

C1-3.2inchTouchscreenDisplayShield.jpg

http://www.hardkernel.com/main/p...

 

The above is just an example.

Similar combinations are possible with Raspaberry Pi, Beaglebone or other small Linux Boxes.

Hardkernal also has battery packs, which would turn it in a stand alone mobile unit.

 

Paul van der Hoeven.
Bunch of old projects with AVR's:
http://www.hoevendesign.com

Last Edited: Wed. Jan 31, 2018 - 06:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks!  The 6-pin connector actually goes to pogo-pins on a fixture that program the main board, so there's no worry about robustness of the ICE.

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

Paulvdh wrote:

AvrDUDE also runs wel  on Linux.

Linux prevents a lot of licence and update headaches.

Small linux boxes also support nice small LCD's.

 

 

 

Also a nice solution.  I think that using Windows 10 and disconnecting it from the internet entirely will probably be fine.  Then there's no update problems.

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

The last time I had anything to do with Widows it was on the PC connected to a big CNC router.

It was running a 6 hour job and you had to press cancel every half hour or windows would reboot the thing and ruin the CNC job.

The Widows 10 rant is the longest running thread here on AVR freaks I believe:

http://www.avrfreaks.net/forum/a...

Paul van der Hoeven.
Bunch of old projects with AVR's:
http://www.hoevendesign.com

Last Edited: Wed. Jan 31, 2018 - 07:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Alan's simple Atmel-ICE target pitch adaptor :

http://www.avrfreaks.net/forum/atmelice-rats#comment-2026396

who also has a ISP & PDI programmer :

http://www.avrfreaks.net/forum/wts-standalone-pdiisp-auto-programmers

 

One could create a pogo pin adaptor for production such that don't have to replace the 23USD Atmel-ICE target cable as it wears out (IDC flexes)

The Tag-Connect pogo has stainless steel pins (IDC has strain relief)

If can move to edge connectors then Tag-Connect Edge-ConnectTM is an alternate to automated pogo.

 


http://new.microchipdirect.com/product/search/all/ATATMEL-ICE-CABLE

http://www.tag-connect.com/what-is-tag-connect

http://www.tag-connect.com/EdgeConnectIntro

 

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

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

Just remembered:

AvrDUDE can bitbang on almost any Linux computer with readily accessible I/O pins.

Just like the very old LPT programmers.

But those pins would need extra protection, maybe a level converter.

Bit of a DIY mess, doe not seem "professional".

Paul van der Hoeven.
Bunch of old projects with AVR's:
http://www.hoevendesign.com

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

gchapman wrote:
Alan's simple Atmel-ICE target pitch adaptor : http://www.avrfreaks.net/forum/a... who also has a ISP & PDI programmer : http://www.avrfreaks.net/forum/w...

If the target is powered during programming, I also would highly recommend Alan's Autoprogrammer.yes

David (aka frog_jr)

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

If the target is powered during programming, I also would highly recommend Alan's Autoprogrammer.yes

Absolutely!  This tool can also be configured to automatically program 'variants' of a device (i.e. m324p, m324pa, etc.)

 

Tom Pappano
Tulsa, Oklahoma

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

Autoprogrammer is pretty cool but I don't think it will support our scripts (serial number burning and recording with software version, etc.)

 

ATMEL-ICE is working well though.