I know it must be frustrating to have spent multiple hours of not watching T.V., or Facebook to program (assemble) for the Arduino only to mess up a line and it ends up bricking your board! Don’t worry I have the fix….well for my case.
I’ve done a nice little search online and found someone experimented like I did with the AnalogReadSerial code with the Ardunio Sketch 22 on Ubuntu 10.10 (32-bit if that matters).
Looking at: Reference Forum
These were the steps I followed:
- Unplug the UNO board from the USB cable or vice-versa
- Close Arduino (To release the device lock file)
- Press & Hold the reset button (KEEP IT PRESSED)
- Plug the USB cable back in
- Compile some code (Not the AnalogReadSerial one…or start at step 1 again)..Use Blink
- Slow down….this is very important Upload (With the button still pressed)
- As soon as the RX signal flashes release the RESET button and things should be back to normal
Another method is if you have avrdude, entering the following into a terminal. Please note that the /dev/ttyACM0 is what my UNO board is connected as.
avrdude -p m328p -c arduino -P /dev/ttyACM0 -e
- -p = chip model
- -c = board
- -P = the device that is connected via USB
- -e = ERASE…