Pages: [1] 2   Go Down
Author Topic: programming without bootloader  (Read 1303 times)
0 Members and 1 Guest are viewing this topic.
kerala
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hai all,
   I wish to programing  arduino without bootloader..because when power is up the system must start, no need of delay time...
I am using AVR mkII.  anybody  answer me...
with thanks
Logged

Portugal
Offline Offline
Edison Member
*
Karma: 27
Posts: 1414
Tomorrow I will know a BIT more than yesterday
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can do that in Arduino IDE.Just go to file and them use Upload Using Programmer.

 
Logged

Debian,Mint,Ubuntu
Arduino Mega 2560
Arduino Nano
Arduino Duemilanove
MAC OS Montain Lion
Raspberry PI Model B


kerala
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hai
   sir actualy fine working that way , but my need is that I want to avoid initial booting time  and when controller power on, code work firstly  not bootloader


thanks
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 118
Posts: 4552
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hai
   sir actualy fine working that way , but my need is that I want to avoid initial booting time  and when controller power on, code work firstly  not bootloader

If you use a programmer the bootloader should be erased. It cannot run.

Check that you have selected a programer in the "Tools->Programmer" menu.
Logged

No, I don't answer questions sent in private messages...

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 438
Posts: 23718
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

When you use File: Upload Using Programmer to load the sketch, the bootloader is skipped and the program starts immediately after reset.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Portugal
Offline Offline
Edison Member
*
Karma: 27
Posts: 1414
Tomorrow I will know a BIT more than yesterday
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you use the external programmer the bootloader will be deleted.
Quote
    Does it upload just your program or does it include the bootloader too?

Just your program - bootloader will be overwritten unless someone made an effort to relocate where the image will be programmed in flash. The Arduino IDE may do this but if you find that after you used the 'upload with programmer' option you can't talk to the board any other way, then the programer may have wiped out the bootloader.
Logged

Debian,Mint,Ubuntu
Arduino Mega 2560
Arduino Nano
Arduino Duemilanove
MAC OS Montain Lion
Raspberry PI Model B


kerala
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hai
   Can I upload program through ICSP?

with thanks
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

All you have to do is set the fuse so that reset starts at address 0 and not the bootloader.

Quote
   Can I upload program through ICSP?

Yes, that's what it is there for.
Logged

kerala
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

     To upload  bootloader , Iam using "AVRISP mkII IN-System Programmer". I didnot find any option to upload sketch,  in arduino IDE with ICSP.
 Here Iam trying to upload .pde file , is it ok ? or HEX like format? If like that how to convert to that format.


thank u
Logged

UK
Offline Offline
God Member
*****
Karma: 1
Posts: 530
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To upload a sketch to the Arduino using an AVR ISP Mk II, simply connect the ISP to the ICSP pins on the Arduino - and then in the Arduino IDE, select File > Upload using Programmer.

You must have AVR ISP Mk II selected under Tools > Programmer in the IDE.

Uploading in this way overwrites the bootloader, thus there is no bootloader on the chip, just the hex file that the IDE has compiled
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 438
Posts: 23718
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You may have to install drivers for the MKii. Search your Arduino directory for a folder called "lib usb" I think is the name.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

London, UK
Offline Offline
Full Member
***
Karma: 4
Posts: 188
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
How can I burn code directly to an arduinomwithout a boot loader. I have an AVR ISP mk2 to program with. Is there anything I need to add to my code??
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there anything I need to add to my code??

No, the code is stand-alone. All the bootloader does is put it there.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 438
Posts: 23718
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just use File:Upload Using Programmer.
You have the MKii drivers installed?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

kerala
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


To upload a sketch to the Arduino using an AVR ISP Mk II, simply connect the ISP to the ICSP pins on the Arduino - and then in the Arduino IDE, select File > Upload using Programmer.

You must have AVR ISP Mk II selected under Tools > Programmer in the IDE.


* mk2.docx (31.37 KB - downloaded 14 times.)
* mk2.docx (31.37 KB - downloaded 8 times.)
Logged

Pages: [1] 2   Go Up
Jump to: