Skip to main content
Seth1er
Associate III
November 29, 2022
Question

Issue to use PC13 as output on RTC wakeup timer

  • November 29, 2022
  • 5 replies
  • 1875 views

hello all,

I want to write a code to test the possibility to use PC13 as output to activate a regulator when the micro is in Vbat mode.. I'm using a STM32F476.

in the manual, in Vbat mode, RTC_OUT still available for Alarm ou wakeup output.

so, in cube Mx I configure RTC in wakeup mode Routed to out. it active PC13 Pin.

I also enable NVIC interrupt.

I use a callback with a toogle on another GPIO to try my code, and it work with this IO.

I enter in the callback every 10sec but nothing append on PC13.

it seem that pc13, RTC and HAL lib have issue together.

if anyone can help me on this please.

I also try to use the PC13 as simple GPIO and it doesnt work until I change some RTC register manualy...

This topic has been closed for replies.

5 replies

Piranha
Principal III
November 30, 2022

> STM32F476

Start with getting a part number right...

Seth1er
Seth1erAuthor
Associate III
November 30, 2022

hello,

I try to test it on a nucleo L476RG where I remove SB17 to disconnect PC13 from user Button and SB45 to disconnect Vbat from VDD.

This is just for test, the target is for a device home made with a STM32L476RGT.

I need to test before finish the pcb.

Seth1er
Seth1erAuthor
Associate III
December 1, 2022

hello @Piranha​ nothing more about the issue please?

ST Technical Moderator
December 1, 2022

Hello @Seth1er​ ,

Check that timestamp and tamper are disabled.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Piranha
Principal III
December 3, 2022