Hi Guys i was trying to add a software reset in my code to reset after a crash but after adding watch dog enable in my setup i cant reset my arduino any more nor i am able to program it nor it jumps into the program but just the led on pin 13 Blinks rapidly
i dont have any other programmer to burn bootloader as i use this to program other MCU so please help me relieve this back
as i am working on a project and i need it to work as normal again
You need the upload to catch the board before the program runs.
If you hold down the reset button and release it only when the IDE starts to attempt the program upload you ought to catch it before the program on the UNO has time to run ...........................................
This is also an issue on most Pro Minis you buy, but there is a solution.
srnet:
You need the upload to catch the board before the program runs.
If you hold down the reset button and release it only when the IDE starts to attempt the program upload you ought to catch it before the program on the UNO has time to run ...........................................
This is also an issue on most Pro Minis you buy, but there is a solution.
No it's not working it is like not running flash application nor bootloader is there any way to use the atmega16U2 to program the atmega328P using ISP not Serial
akash614:
No it's not working it is like not running flash application nor bootloader is there any way to use the atmega16U2 to program the atmega328P using ISP not Serial
The atmega16U2 is not connected to the pins required for ISP on the Atmega328.
srnet:
Do you have a HEX file that turns the ATmega16U2 into an ISP programmer ?
i have used the onboard Atmega16U2 as AVRASP MKII and program the ATMEGA328P with the bootloader once again and burned the fuses and the set Atmega16U2 as Usb to Serial converter as previous and everything is back to normal
Juraj: compiling "Arduino as ISP" sketch for Leonardo or Micro could work.
(and setting the correct pin to 328p reset)
akash614:
i have used the onboard Atmega16U2 as AVRASP MKII and program the ATMEGA328P with the bootloader once again and burned the fuses and the set Atmega16U2 as Usb to Serial converter as previous and everything is back to normal this did not require as there were few online hex files and the atmel flip was used to do it thanks by the way posting the link
is there any other way to reset the arduino in case of error from software side and what bootloader should i use now to prevent the issue like before
Please post the link for Correct bootloader with the fixed bug of watchdog reset
on your computer in IDE installation folder in
hardware/arduino/avr/bootloaders/optiboot
it is used if you use "Burn bootloader" in IDE and Uno is the selected board
@pert Per, did you read this thread? I think it is interresting