Pages: [1]   Go Down
Author Topic: Hello- Newbie and got a few questions about loading firmware into uno board  (Read 590 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, all.
I just ordered one of these for a project that I am working on.  It is way over kill for this project but it looks like a fun little board to play with for future stuff also,  Might as well learn this rather then something to simple for the future.  Now for a few quick questions

I have already installed and even written a small learning app.  I see how the IDE has a compile and upload capability.  But when I am done with this project and want to use it,  There is obviously a way or 2 to load a project into the uno and run it.  My first choice would be to have it run on powerup.  My second choice would be to have the PC (windows 7) upload and run the project via usb on boot.  Which is recommened and how to do you do it.    I did not see anytools to load a firmware image on boot.  it appeared that there was a way to program it with a separate device or something but it almost seemed like that was not recommended because of the complexity if you need to update it at a later date.

If there is a way to loda my program into the EEprom and have it run from there automatically on powerup- until the next codeset updates the EEprom that would be ideal.

Highflier
UNO


PS.  Sorry if these are stupic questions,  I looked around and did not see or understand if I did see answers to this.
Logged

California
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3435
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I assume you mean "sketch" when you say "app" or "firmware."

A sketch is what you write in the provided IDE and upload to the Arduino through USB. When you upload a sketch, the Arduino stores the program data and it is started again when you power it up, even from external sources; you don't need a computer to run it, just to upload it.
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The loaded sketch you wrote and uploaded stays there and it runs when the board is powered up.  It is only changed when you overwrite it.  It need never see a computer again once you've uploaded it.
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
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

If you download your program via the USB/Serial port, there is a slight delay after power up while the bootloader checks to see if another program will be downloaded, and if not, your program is started.

If you acquire another tool, such as this
http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415
than you can download your program via the ICSP header and it will start immediately on power up.
You will have to download the bootloader again if you then want to go back to using the serial port.

The code will not run from EEPROM, that is there for the running program to store things, that the running program can access again after a reset/powerloss or some other time in the future.

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.

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

Thanks.
So I upload my program (sketch),  It is stored in the EEprom obviously.  Then I can forget about it smiley  that is awesome.

I planned on doing some Real time stuff.  Thus I was going to use the MsTimer.  I saw something that made it look like it may not work unless there is AVR( what is that) arcitecture.  I guess to simplyfy the queston.  Is that going to work on a stock UNO unit with out anything else being done?


I will have use for PC <-> Uno communiations but that looks simple with the serial.print features


Highflier

PS. this thing looks so cool thinking of other uses for it already.  Hobbies include RC vehicles of all types....
Maybe somehow implement a good home security system smiley
« Last Edit: May 21, 2012, 03:07:12 pm by highflier » Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It is stored in the EEprom obviously
No, it's stored in the Flash memory. Code can't run from the eeprom.
Logged

Pages: [1]   Go Up
Jump to: