Uploading the final code to 500 mcus

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

Dear all

 

The code is done, the prototype works perfectly on one mcu 'at tiny 45'! Now wish to learn how to organise the upload process. It should be smooth and stupid simple to tackle 500 pieces... For example, I have been reading about the makefile etc. but I am not really sure how to organise the process.

 

The main idea is to make it as simple as possible, ideally one button process :) Anyway, how is uploading actually done or approached for more than 500 pieces?

 

At the moment, I am looking at this steps ( http://blog.podkalicki.com/how-t... ). I am developing this "upload" for the win platform... I would like to use a simple usb to mosi, miso, etc and upload the hex file with the avrdude, btw can this be simplified and will I be able to set the bootloader, namely BOD? Btw what ISP should I aim for, is the tinyAVR ok to upload the hex file and bootloeader via avrdude, and can this eventually be simplified as a one button routine ???

 

Anyway, what would you suggest I should (try to) do?

 

Any ideas, comments, etc. are more than welcome!

 

Best.

Bravo!!!

Last Edited: Thu. Feb 22, 2018 - 10:59 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your board manufacturer should be able to do this for you - as part of the assembly process.

 

Services are available to program the chips before they get mounted on the board.

 

Google "production programmer" ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, I wish, but at the moment I have to work with what I have, namely the chip is programmed via a "clamp", yeah dubious... anyway, will have a look at the "production programmer"...

Bravo!!!

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

BTW I have managed to obtain the HEX file from the code... 

Bravo!!!

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

I have used programmers from here :

https://www.kanda.com/products/K...

The benefit is that no computer is needed. 

Last Edited: Thu. Feb 22, 2018 - 01:44 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

If you have not ordered and soldered teh Tiny's yet, microchip offers a programming service where they will load the AVR's for you with your code for a nominal cost.  The cost for doing this might outweigh the time you spend doing this yourself with whatever gizmo you are going to use.

 

mu234 wrote:

BTW I have managed to obtain the HEX file from the code... 

If you wrote the code, I would hope you were able to compile it and obtain the resulting hex file.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

mu234 wrote:
Anyway, how is uploading actually done or approached for more than 500 pieces?

Is the target 500, or more than 500?  If more than 500, then how many more?

 

Others have mentioned pre-programmed MCUs.  For genuine high-volume production work, that is a great alternative.

 

But for firmware that might change with different versions, and e.g. different end product options, then consider how much time and effort and cost you are going to expend on this automated system versus the "brute force" one-at-a-time...

 

Generally, in our experience, that commisioning process that includes ISP may well involve other steps anyway, such as calibrating to a fixed voltage or time source.  Maybe a test routine as well..  Summary:  More steps to commisioning than just programming.

 

Also in our experience -- it takes as long (or longer) to grab the raw board from the input bin and attach the programmer and take the previous and put into the output packaging than the ISP sequence takes.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

theusch wrote:
Generally, in our experience, that commisioning process that includes ISP may well involve other steps anyway, such as calibrating

 

Agree!  Having done more then 100k units, the steps involved programming with calibration routines, pressing a button to calibrate saving data to eeprom, then reprogramming without cal functions, performing an acceptance test.  Programming used DOS batch files to run the command line programming script (atprogram, stk500, or avrdude .exe) depending on programmer used (stk500, avrisp-mkii, dragon, usbasp... etc.) 

 

Jim

 

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

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

fyi, tiny45 is at microchipDIRECT AVR programming.

via https://www.avrfreaks.net/forum/avr8-microchip-direct#comment-2261371

 

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

Last Edited: Thu. Feb 22, 2018 - 03:16 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You might take a look at https://github.com/WestfW/OptiLoader
It's an arduino sketch designed to painlessly program a new bootloader on a bunch of other Arduinos. Connect the target, push the reset button, wait for the lights to stop flashing. It could be pretty easily adapted for different target chips and different programs....
See the video... https://m.youtube.com/watch?v=YBFUGre0hY4

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

westfw wrote:
You might take a look at https://github.com/WestfW/OptiLo... It's an arduino sketch designed to painlessly program a new bootloader on a bunch of other Arduinos. Connect the target, push the reset button, wait for the lights to stop flashing. It could be pretty easily adapted for different target chips and different programs.... See the video... https://m.youtube.com/watch?v=YB...

 

I wish I would have the version to upload the code to at-tiny, it really looks very useful!

 

Best.

Bravo!!!

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

gchapman wrote:

fyi, tiny45 is at microchipDIRECT AVR programming.

via https://www.avrfreaks.net/forum/avr8-microchip-direct#comment-2261371

 

 

Thank you! This is very valuable information. At the moment, I am in a phase of having to change the software-ver. ad-hoc, however, when the production will increase to more pieces, this will definitely be a solution!

 

Best.

 

 

Bravo!!!

Last Edited: Sat. Feb 24, 2018 - 12:10 PM