0
Offline
Newbie
Karma: 0
Posts: 30
Arduino rocks
|
 |
« on: December 30, 2012, 11:52:31 pm » |
Hi guys,
I'm considering doing my first surface mount project with an Atmel32U4. I'd like to use an assembly house and have the 32U4 come with the bootloader already installed. How is the Arduino bootloader burned on a small and large scale?
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2241
|
 |
« Reply #1 on: December 31, 2012, 04:05:38 am » |
I'm considering doing my first surface mount project with an Atmel32U4. I'd like to use an assembly house and have the 32U4 come with the bootloader already installed. How is the Arduino bootloader burned on a small and large scale?
Students/interns with ZIF sockets...?
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Full Member
Karma: 5
Posts: 249
New on the Arduino platform...
|
 |
« Reply #2 on: December 31, 2012, 05:39:27 am » |
Put on an 6-pin ISP header for programming the boards after production ?!
// Per.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2241
|
 |
« Reply #3 on: December 31, 2012, 05:57:08 am » |
Put on an 6-pin ISP header for programming the boards after production ?!
Yep. Using a bootloader on a production board seems silly to me, the chips are designed to be programmed with ISP signals. Plus a bootloader makes programming into a two-step process (bootloader then software) when it only needs one step. You could add an ISP header but it seems easier to add six bare pads on one edge of the board then stick the board into one of these to program it:  Edit: A six-pin version, obviously...
|
|
|
|
« Last Edit: December 31, 2012, 06:01:29 am by fungus »
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2241
|
 |
« Reply #4 on: December 31, 2012, 06:00:16 am » |
PS: How's this for a hack? I found this when I was searching for the pic of the PCB connector...  
|
|
|
|
« Last Edit: December 31, 2012, 06:02:43 am by fungus »
|
Logged
|
|
|
|
|
Denmark
Offline
Full Member
Karma: 5
Posts: 249
New on the Arduino platform...
|
 |
« Reply #5 on: December 31, 2012, 06:09:44 am » |
That connector is called an Edge-connector and i would not recommend that for ISP. You need to place 6 ISP pads and use a pogo-pin probe for programming. http://www.mkroll.mobi/?p=665// Per.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2241
|
 |
« Reply #6 on: December 31, 2012, 06:29:06 am » |
Those are cool, too...  (might have to get some...)
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 30
Arduino rocks
|
 |
« Reply #8 on: December 31, 2012, 02:25:31 pm » |
Hmmm looking at Sparkfun's Arduino-compatible lineup I don't see anything that looks like what you guys are talking about. Looking here: https://www.sparkfun.com/products/11098 I can't figure out how they burned the bootloader to it...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16485
Available for Design & Build services
|
 |
« Reply #9 on: December 31, 2012, 05:17:36 pm » |
The 32U4 comes with an atmel bootloader preinstalled.
"– Optional Boot Code Section with Independent Lock Bits In-System Programming by On-chip Boot Program True Read-While-Write Operation All supplied parts are preprogramed with a default USB bootloader"
To change it, connect the programmer to SCK, PDI (i.e. MOSI), PDO (i.e. MISO), Reset, Gnd, +5, and download away.
"28.7 Serial Downloading Both the Flash and EEPROM memory arrays can be programmed using a serial programming bus while RESET is pulled to GND. The serial programming interface consists of pins SCK, PDI (input) and PDO (output). After RESET is set low, the Programming Enable instruction needs to be executed first before program/erase operations can be executed. NOTE, in Table 28-14 on page 361, the pin mapping for serial programming is listed. Not all packages use the SPI pins dedicated for the internal Serial Peripheral Interface - SPI."
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 30
Arduino rocks
|
 |
« Reply #10 on: December 31, 2012, 07:21:34 pm » |
The 32U4 comes with an atmel bootloader preinstalled. The SFE page also says that its compatible with the Arduino IDE. So if I buy a 32U4 from Digikey will I still be able to program it via usb/Arduino IDE? Or will I need to replace the Atmel bootloader with an Arduino one first?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16485
Available for Design & Build services
|
 |
« Reply #11 on: December 31, 2012, 07:23:39 pm » |
I would figure you could download to it as is.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 30
Arduino rocks
|
 |
« Reply #12 on: December 31, 2012, 08:21:38 pm » |
From the SFE notes ( https://dlnmh9ip6v2uc.cloudfront.net/datasheets/Dev/Arduino/Boards/32U4Note.pdf) "Any Arduino-compatible product that we build using the ATMega32U4 is going to ship with a new version of the Caterina bootloader (developed by Arduino for the Leonardo)." So Sparkfun is burning bootloaders to the Pro Micros by the hundred, and I don't see an ISP header or the six pads mentioned earlier. How is SFE burning all these bootloaders?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16485
Available for Design & Build services
|
 |
« Reply #13 on: December 31, 2012, 10:27:54 pm » |
They connect to the ICSP pins - SCK, MISO, MOSI, Reset, +5, Gnd.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 242
Posts: 16485
Available for Design & Build services
|
 |
« Reply #14 on: December 31, 2012, 10:28:26 pm » |
Or, they preprogram the parts in a TQFP socket before assembly.
|
|
|
|
|
Logged
|
|
|
|
|
|