My Arduino got damaged by a short circuit so I tried my board with a simple code it gives me wrong results, so is there any way to reset or format it?
Try the following:
- Prepare the basic empty program (empty setup, loop, etc.)
- Compile it.
- Reset the Arduino using the hardware button on the chip
- Press Ctrl + U to upload your code.
- If unsuccessful - got to 3.
There is a delay before the boot loader starts the programs, just work on your timing. It worked for me when a bug in my Arduino's code was executing a soft reset every 500 ms.