Closed samuelwhiskeyjohnson closed 6 months ago
In short, remove capacitor and RTC from RESET pin while programming.
Detailed explanation: When programming MCU, 1st step is reset MCU and thanks to its bootloader, connect it in programming mode. As you have a capacitor and the RTC connected to the MCU, they are interfering with typical process and fooling the MCU and the programmer. Disconnecting them to program the MCU you'll solve the problem.
P.S.: I don't know your MCU, but a lot of them can operate with wake-up pin interrupts. Using RESET to do so is the most compatible way, but if your MCU supports it maybe using a pin-interrupt is way more beneficial....
It worked! I used pin 2 as interrupt pin and attachInterrupt().
Do you still need capacitor between SQW pin on RTC and pin 2 (interrupt pin) on Arduino?
Perfect!
Using any other pin than RST does not need any capacitor.
Using arduino UNO I'm getting this error when I connect SQW pin on RTC (with capacitor in between like you instructed in https://raw.githubusercontent.com/Naguissa/uRTCLib_doc_and_extras/master/imgs/deepsleep_connection.png) with RESET pin on Arduino.
Basically the issue comes down to when RST pin is either held high or held low, it creates this error. The issue gets fixed when RST pin is not connected to anything.
Any idea on how to fix?