I was checking on some functions by uploading the code onto arduino mega2560. I dumped the code which was of infinite loop. Now, whenever I plug the card it starts running and I can’t reset board or dump any other code.
Button on the board for reset doesn’t work either.
I tried ctrl+break but doesnt work either.
1
You can try flashing the bootloader to reset the Arduino board. Reference: https://support.arduino.cc/hc/en-us/articles/4841602539164-Burn-the-bootloader-on-UNO-Mega-and-classic-Nano-using-another-Arduino
1
Thank you so much Akhil Suthapalli and Juraj for your replies.
My issue got sorted.
Juraj, I checked the reset button connections, wasn’t working cause at soon as I plug the arduino it starts generating results so the Reset routine wasn’t getting priority.
Solution:
The issue was at software end, how did I understood?
Actually, I was using the same script file that I last dumped into arduino and it got stuck into infinite loop.
I unplugged arduino tried compiling some other file it compiled successfully.
It was then when I realized that the file has been corrupted somehow.
I plugged the board again and tried uploading some other program on the board and it worked successfully.