Skip to main content
Visitor II
July 18, 2025
Question

NUCLEO-G071RB RTC alarm interrupt error

  • July 18, 2025
  • 2 replies
  • 238 views

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.

    2 replies

    Andy77Author
    Visitor II
    July 18, 2025

    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
    Visitor II
    July 18, 2025

    If program goes error, it stops here.

    Andy77_0-1752800678389.png

     

    Super User
    July 18, 2025

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