MiniCore icon indicating copy to clipboard operation
MiniCore copied to clipboard

atmega328 wont RESET

Open plusmartin opened this issue 3 years ago • 6 comments

image

I cannot understand how is it possible to NOT beingg able to RESET the atmega328 when pulling the RESET pin LOW. After burning the code using the above settings it runs once and then it crashes and I cannot RESET the board unless I cycle power.

Isnt the RESET pin supposed to work always? Can it be somehow bypassed or ignored?

plusmartin avatar Aug 02 '22 23:08 plusmartin

If i press the RESET button while the code is still running then it does reset the sketch, but when it crashes it wont do anything. I dont know if LTO should be enabled or disabled but it does the same issue on both cases.

plusmartin avatar Aug 02 '22 23:08 plusmartin

In other words, how can I enable the RESET pin so that it works again? thanks

plusmartin avatar Aug 02 '22 23:08 plusmartin

Are you able to burn the bootloader (set fuses) using an ISP programmer?

The Reset pin can be configured as a GPIO, by clearing a bit in the low fuse memory. However, MiniCore does not disable the reset pin, but I don't know if you've been experimenting with the fuse bits or not...

You need a high-voltage programmer to recover a chip where the reset pin has been disabled, for instance an STK500 board.

MCUdude avatar Aug 19 '22 19:08 MCUdude

I have the STK500. Do I need atmel studio to program this fuse? do you know what value it requires?

Does this mean that every time I burn de MiniCore bootloader I am effectively bypassing the RESET pin and cannot set it back unless I burn the fuse manually again with atmel studio? This would require two programming steps, which is very unfortunate.

plusmartin avatar Sep 05 '22 22:09 plusmartin

Im sorry I misread your post. You state that MiniCore does NOT disable de reset pin, but for some reason my boards are not working using your bootloader. Any suggestions on how to debug this? thanks

plusmartin avatar Sep 05 '22 22:09 plusmartin

I cannot understand how is it possible to NOT being able to RESET the atmega328 when pulling the RESET pin LOW.

Are you able to set the fuses/burn the bootloader using Arduino IDE? If yes, then your reset pin is working. An ISP programmer uses the RESET pin to enter programming mode. Please post the output you're getting when you clock "Burn Bootloader" in Arduino IDE

MCUdude avatar Sep 06 '22 11:09 MCUdude

No response from OP. Highly likely it's a hardware issue.

MCUdude avatar Oct 15 '22 17:10 MCUdude