Pages: [1]   Go Down
Author Topic: How to program an arduino without host pc & using arduino as handheld programmer  (Read 1153 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I have an arduino 328 programmed and the project board deployed on site. There is some changes to be made to the arduino sketch, which is done on the host pc. My question is How do I upload the new sketch on to the project board?
1. I dont have access to carry a laptop to the site
2. I cannot disconnect the project board and get it to reflash.
3. target board does not have ethernet (it is a dumb sequencer controlling 8 relays, now needs change in sequencing)
4. one possibility is reprogram a new chip and replace it on the project board. If this is frequent then this solution is not ideal

Another example, if I had to update say 100 boards then replacing chips would not be a good idea, instead an arduino hand held diy kit  to update/reprogram the target arduinos would be a ideal choice.

I looked into arduino boot cloner but I do not know if this would work, need suggestions to move forward
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27089
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 could use a programmer like this
http://www.kanda.com/products/Kanda/HH0110.html
if you have access to the ICSP pins.
Plug on the ISCP cable, press the button, all done in a few seconds.

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: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Awesome CrossRoads,

Thank you for the link. It is exactly what I am looking for. I do have ISCP header on my project board. Any hints towards DIY.
Logged

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1072
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Nick Gammon has a description on uploading a hexfile from a SD card, and an Arduino.

Maybe this could be used with a LCD display and a buttun

http://www.gammon.com.au/forum/?id=11638
Logged

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

Or just a couple of LEDs to indicate status, and the SD card module.
Is a bootloader needed? Or just the sketch?
Creating a combined bootloader/sketch file for uploading was discussed in the forum quite recently.
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.

UK
Offline Offline
God Member
*****
Karma: 17
Posts: 568
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Couldn't you also just link the two via TX/RX and reset lines, reset the target and read and transfer a Hex file from an SD card, via the target bootloader?

That's an idea we had for allowing a user to perform a firmware update on our devices, although we've not tested it yet.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Couldn't you also just link the two via TX/RX and reset lines, reset the target and read and transfer a Hex file from an SD card, via the target bootloader?

That would require the equivelent code as the AVRDUDE PC based program that knows how to talk to the bootloader. Maybe not impossible but I haven't seen anything trying that method, ICSP is the normal method used.

That's an idea we had for allowing a user to perform a firmware update on our devices, although we've not tested it yet.
Logged

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

Hello,

Thank you for the link erni. Checked the link, looks simple. Will try out & update.

But as CrossRoads comment
 " Creating a combined bootloader/sketch file for uploading was discussed in the forum quite recently." also an easy solution.
Logged

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

Hello,

I also found this interesting, easy and opensource

video link :
1 : Intro : http://youtu.be/i4wJ4kRO80E
2 : Demo : http://youtu.be/w5jPm3thkWo

Blog : http://baldwisdom.com/bootdrive/

Git hub : https://github.com/osbock/Baldwisdom/tree/master/BootDrive

Logged

Pages: [1]   Go Up
Jump to: