Ways to program an Arduino

Hello!!!

Is there any other way to program an Arduino other than by using the Arduino software? and Can we program an Arduino by using another Arduino, like we connect one arduino to the computer and then program the other with the connected one.

Theres something wrong with my driver and i really want to find some other way to program my Arduino Mega 2560.

Goggle Arduino ICSP

I am new to Arduino and so i dont quite get you. can you please explain.

vishnur:
I am new to Arduino and so i dont quite get you. can you please explain.

Did you try what @LarryD suggested ? - his instruction seems very clear

What is it about the results that you don't understand ?

...R

when i google it, i get something about installing the bootloader. It dose not give me anything about uploading a program to the Arduino from another Arduino.

Hi,
If you are having IDE and driver problems, have you posted a thread in the Installation section of the forum, to see if your problem can be fixed?

Tom..... :slight_smile:

If you have not already done something to "damage" the bootloader on your Mega then it should be possible to upload programs using the Arduino IDE in the normal way.

If it is not working then fix that problem rather than trying a very complex work-around.

Tell us exactly what error messages you are getting.

If you have damaged the bootloader then the instructions to upload the bootloader are just what you need.

...R

Basically no, you can not compile a sketch on an other Arduino. If you have the hex file stored on one Arduino on say an SD card you could program that Arduino to down load to another Arduino but I can't see the point.

If your computer no longer works get a new one. You can program an Arduino using a Raspberry Pi if you don't mind how slow it is.

I have already discussed this problem in the installation section of the forum. i tried doing what the others said but unfortunately it didnt work.

This is the message i am getting.

Message displayed:

Sketch uses 1,518 bytes (0%) of program storage space. Maximum is 253,952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8,183 bytes for local variables. Maximum is 8,192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

Message displayed when i tried to upload with verbose output enabled:

Global variables use 9 bytes (0%) of dynamic memory, leaving 8,183 bytes for local variables. Maximum is 8,192 bytes.
avrdude: usbdev_open(): did not find any USB device "usb".

I have also tried the Arduino in another computer but it dosent work.

Hi,
So the IDE is okay, its the controller that is the problem, my misunderstanding.

Tom.... :slight_smile:

Is it possible to fix it???
if yes, please tell me how.

It could be doing this because the bootloader is corrupted if so you could try reblowing it. Otherwise get a new Arduino.

Does the Arduino show up as a serial device in the IDE?

What it ( the error message ) is saying is that the computer asked the Arduino if it was ready to upload a sketch but the Arduino never replied.

The computer is able to sense the device the problem occurs while uploading the sketch to the board. Is there any chance that the driver might be broken. That is the program gets through the USB port but dosent reach the ATMEGA2560 chip due to the faulty driver.....

Is there any chance that this might be the reason....

Is there any chance that this might be the reason.

No. It a boot loader problem in the Arduino processor chip.

but when i reset my board the led 13 blinks twice. Doesn't that show the bootloader is fine??? that is what i got from troubleshooting this problem in the Arduino website.

Doesn't that show the bootloader is fine?

No. It shows the boot loader can blink the LED nothing more.
If it is corrupted some way then it can still blink the LED without being able to respond to the information sent to it.

Have you tried the loop back test? That will show you if the data is going out as far as the Arduino input and back out again. If that works it can only be the Arduino that is at fault. The bootloader if you are lucky, the chip itself if you are not.

I tried the loop back test... it doesn't work. when i type and click send in the serial monitor the RX led blinks once but i dont get anything in return in the serial monitor. It stays blank.

Grumpy_Mike:
Basically no, you can not compile a sketch on an other Arduino. If you have the hex file stored on one Arduino on say an SD card you could program that Arduino to down load to another Arduino but I can't see the point.

If your computer no longer works get a new one. You can program an Arduino using a Raspberry Pi if you don't mind how slow it is.

You can program the second arduino like he mentioned unless I'm confused about what he's trying to say.

This is how I program my hackduino (homemade arduino on breadboard):

  1. Connect digital pins 0 and 1 of both arduinos.
  2. Connect a common ground.
  3. Supply 5v to both boards.
  4. Connect reset pins of both boards.
  5. Plug one board into a computer
  6. Upload sketch.

This is handy for boards that the USB part is blown.

Note: using this method both arduinos will have the same sketch on them

Details noted:

Arduino Mega 2560

Driver in computer is operational, is communicating with the USB to serial chip.

Details missing:

Did it ever work? Have you successfully programmed an Arduino?

Have you selected the COM port that the Arduino is actually connected to in the Tools => Serial port menu? Presumably so if the RX LED blinks.

Have you selected the correct board in the Tools => Board menu?

Have you tried holding the reset button as you perform the compile and releasing it as you see the "Done Compiling" message?

cbrunnem:
You can program the second arduino like he mentioned unless I'm confused about what he's trying to say.

  1. Plug one board into a computer

He is saying that there is something wrong with his computer and so that means he can not do that step.