In Arduino Mega (ATMEGA2560), when I enabled the interrupts, the watchdog got overflown, so the chip restarted each time the program counter achieved the interrupt enabling line.
So I tried to disable the watchdog, setting WDTCSR_WDCE to 1 and WDTCSR_WDE to 1, and after setting all WDTCSR to 0.
But when I did this, I realized that my reset pin does not work anymore. Now when I click on it, simply does not happen anything, and I cannot load a new .hex to the chip.
I burnt the bootloader again using ICSP, but the problem still happens.
Thus, how can I fix it?