Adafruit Industries, Essential service and business: NYC – Executive Order 202.6 - Read more.
0

Arduino for coding standard ATMega Chips
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Arduino for coding standard ATMega Chips

by dobbz on Wed Mar 12, 2008 11:16 am

Pardon my ignorance on this matter, but I'm having a difficult time locating information about this.

What I would like to do is perform my development using the Arduino environment, but once finished I would like to compile the source and load the hex file directly to an ATMega without the bootloader.

Provided that I use a USBtinyISP AVR Programmer to write directly to the ATMega with the hex file compiled by Arduino, is it not possible to burn chips with this code, wire it up directly, and go?

It sounds as if I would only need a power source, crystal (not mandatory for non-critical timing), the components of my project, and a properly wired ATMega chip.

Am I missing something here? What are the disadvantages or problems with this thought pattern?

Arduino is great for development, but expensive for creating many of the same projects. It would be nice just to have the chip itself in a pcb board without the bootloader, etc.
dobbz
 
Posts: 12
Joined: Wed Mar 12, 2008 11:06 am

by adafruit on Wed Mar 12, 2008 11:31 am

yes you can do that just fine. i do it all the time.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by darus67 on Wed Mar 12, 2008 12:07 pm

Any tips on how?

I found some information on the arduino site about it, but it says the capability
is not in arduino version 10, but will return in version 11
http://www.arduino.cc/en/Hacking/Programmer

I assume it could be done by working outside the Arduino programming
environment, starting with this: http://www.arduino.cc/en/Hacking/CommandLine
but I don't think that is the whole picture
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by adafruit on Wed Mar 12, 2008 12:28 pm

the hex file is in the sketch directory

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by darus67 on Wed Mar 12, 2008 5:07 pm

So, does that mean that the same hex file, that would normally get loaded
with the bootloader, can be burned into a blank chip using a standard programmer?
"He's just this guy. You know?"
darus67
 
Posts: 246
Joined: Wed Sep 26, 2007 10:25 pm
Location: Minnesota, USA

by adafruit on Wed Mar 12, 2008 7:22 pm

yes, thats the question you asked.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by mtbf0 on Wed Mar 12, 2008 8:53 pm

be careful about using timing functions or asynch communications if you build a board without a crystal. if you build for a diecimilla the ide assumes a 16MHz clock. if you build for the lilypad it assumes 8MHz. don't know what the other choices give you.
User avatar
mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am
Location: oakland ca

At mega 128

by skatun on Tue Apr 15, 2008 10:11 am

Hi
Is it possible to use it with at mega 128, At the moment I am using 168, but I am starting to run out of pins....
Kim Skåtun
NTNU
Norway
skatun ( at ) gmail.com

skatun
 
Posts: 3
Joined: Tue Apr 15, 2008 10:09 am

Re: At mega 128

by mtbf0 on Tue Apr 15, 2008 5:37 pm

skatun wrote:Hi
Is it possible to use it with at mega 128, At the moment I am using 168, but I am starting to run out of pins....


now you want wiring, the project from which the arduino is adapted. arduino will only build, as far as i know, for the atmega8/168. wiring uses a mega128 on a substantially larger board and the chip is only available in surface mount packages.
User avatar
mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am
Location: oakland ca

Please be positive and constructive with your questions and comments.