Skip to main content
Associate
Jul 18, 2025 12:55 AM UTC
Question

NUCLEO-G071RB RTC alarm interrupt error

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.

Andy77_0-1752799978252.png

Andy77_1-1752800054568.png

Andy77_2-1752800072718.png

Andy77_3-1752800083670.png

 

 

This topic has been closed for replies.

3 replies

Andy77Author
Associate
Jul 18, 2025 12:58 AM UTC

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.

Andy77Author
Associate
Jul 18, 2025 1:04 AM UTC

If program goes error, it stops here.

Andy77_0-1752800678389.png

 

TDK
Jul 18, 2025 2:52 AM UTC

Looks like it’s in the bootloader. Might need to power cycle after programming to reset the empty flash check.

"If you feel a post has answered your question, please click ""Accept as Solution""."