cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-G071RB RTC alarm interrupt error

Andy77
Visitor

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

 

 

3 REPLIES 3
Andy77
Visitor

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.

If program goes error, it stops here.

Andy77_0-1752800678389.png

 

TDK
Super User

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".