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.
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.
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.
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.
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....
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.
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):
Connect digital pins 0 and 1 of both arduinos.
Connect a common ground.
Supply 5v to both boards.
Connect reset pins of both boards.
Plug one board into a computer
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