Pages: [1]   Go Down
Author Topic: use Arduino sketch without bootloader?  (Read 6106 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to use the Arduino output (the .hex file, specifically) to program an ATmega without the bootloader?

I've got an application where it is critical that the bootloader not hang the system when it starts, and I will definitely have a serial device spewing characters at the arduino on powerup.

ideas?

-j
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can burn your sketch directly onto the board, replacing the bootloader.  There are some instructions at: http://www.arduino.cc/en/Hacking/Programmer, but post again if you have more questions - that's not the most comprehensive page.
Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks!

A couple of questions:  the instructions say to make three changes to preferences.txt, but they only mention 2.  What's the third?

I thought the hex file included the address of the program/data to be loaded to memory.  Is this true, and if so, how does it know to start at 0 instead of 0x1000 above the bootloader?

thanks again,
-j
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I was counting upload.erase and upload.verify as separate changes, making three total.  Your sketch always starts at location 0 - the bootloader's actually at the end of memory - so you don't need to change anything.
Logged

Pages: [1]   Go Up
Jump to: