2025-07-17 5:55 PM
Hi ,
I 'm using NUCLEO-G071RB to test RTC using LSE 32.768k.
I using RTC to generate a second alarm and in the interrupt to toggle the pin output(PC6).
But i find a issue if follow below steps the interrupt not enter, and the program goes wrong.
1. erase the chip.
2.Debug the code using IAR+onboard stlink.
3.Run the program, the interrupt will not enter,and the program goes wrong.
But if i follow below steps, the interrupt runs OK ,and the program goes right.
1.Program the mcu g071.
2.Power cycle the nucleo board by disconnect /connect the USB.
3. After power on the program goes right.
2025-07-17 5:58 PM
Sorry to miss 1 key steps.
I 'm using NUCLEO-G071RB to test RTC using LSE 32.768k.
I using RTC to generate a second alarm and in the interrupt to toggle the pin output(PC6).
But i find a issue if follow below steps the interrupt not enter, and the program goes wrong.
1. erase the chip. Disconnect the nucleo board usb,wait at least 3second.
2.Debug the code using IAR+onboard stlink.
3.Run the program, the interrupt will not enter,and the program goes wrong.
But if i follow below steps, the interrupt runs OK ,and the program goes right.
1.Program the mcu g071.
2.Power cycle the nucleo board by disconnect /connect the USB.
3. After power on the program goes right.
2025-07-17 6:04 PM
If program goes error, it stops here.
2025-07-17 7:52 PM
Looks like it’s in the bootloader. Might need to power cycle after programming to reset the empty flash check.