I'm having a problem where my board will program without a problem, but the sketch won't start... I'm guessing it's the known problem that the troubleshooting page suggests fixing as such:
You'll either need to find a way to stop serial data from arriving for the first few seconds when the board powers (e.g. by enabling the chip that sends the data from within your setup() function) or burn your sketch onto the board with an external programmer, replacing the bootloader.
Since I don't have an external programmer, how would I enable the chip that sends the data from within setup() function?
Sorry if this has been asnwered already elsewhere, but I couldn't find anything.
The quote means DON'T start sending data to the Arduino until you get to thesetup function. This is obviously only relevant if you have another device(chip) connected to the arduino on pins 0 and 1.
More likely you have the "noise on the RX pin" problem, try connecting a 1K resistor from ground to pin 0. Search the forums for more information
Programmer not responding, RESET the board right before exporting
.
When I remove the resistor it programs fine once more.
I think I might have done something unholy to the chip when I tried communicating with it using a custom C++ app I've been working on.
So, from what I've found, the way I see it right now, is that I will need to reinstall the bootloader which involves buying an ISP? Is there anywhere that sells Atmel chips with the bootloader already loaded?
So, from what I've found, the way I see it right now, is that I will need to reinstall the bootloader which involves buying an ISP? Is there anywhere that sells Atmel chips with the bootloader already loaded?
Yep, heaps of places. NCKelectronics, ladyada,... forums/google them.
Although ladyada's USBtinyISP is the cost of 4 chips, it's definately worthwhile if you are playing around with things you think might corrupt the bootloader.
Programmer not responding, RESET the board right before exporting
.
When I remove the resistor it programs fine once more.
I think I might have done something unholy to the chip when I tried communicating with it using a custom C++ app I've been working on.
So, from what I've found, the way I see it right now, is that I will need to reinstall the bootloader which involves buying an ISP? Is there anywhere that sells Atmel chips with the bootloader already loaded?
Try programming it without the resistor, then add the resistor only to run the sketch. What does the sketch do to verify if it is running or not? Please, post the sketch.