2026-05-14 7:25 AM - edited 2026-05-14 7:32 AM
Hi,
I wanted to set up time keeping on my Discovery board for testing something.
I see the following in the documentation for the larger STM32F769-EVAL:
- This example runs on STM32F779xx/STM32F777xx/STM32F767xx/STM32F769xx Devices.
- This example has been tested with STMicroelectronics STM32F769I-EVAL
board and can be easily tailored to any other supported device and
development board.
- STM32F769I-EVAL Set-up
- Make sure that JP15 is in position 2-3 to connect 3V battery to VBAT pin.
At first I didn't know -EVAL and -DISCO are two different things and kept searching through the manual for the -DISCO where JP15 seems to have a different role.
But the first line from the docs makes me think there has to be an RTC on the -DISCO board. I take it I need to put a 3.3V battery somewhere. In the diagram I see a number of 3.3V connected things, but most are related to ST-Link. It's totally unclear to me where I would need to connect a battery, and how to know that it'll only power the RTC (if there is one)
The diagram I'm looking at is at page 40 in the manual, here:
https://docs.rs-online.com/9ce5/0900766b81693555.pdf
I'll take off the LCD later and search the board for anything that looks like an oscillator or clock chip, but I also searched the manual for "RTC" and found nothing. If there's none I also don't know how to best add it - there's a header for WiFi (ESP8266) or I2C. I got an ESP8266 around so I was gonna use it. I don't know if an RTC could be added to the same I2C interface?!!!
Still, as the ethernet chip has hw timestamping, I think there must ought to be an RTC onboard so it all works together when people tested.
Do you know if there's an actual RTC on this board? Any other advice?
2026-05-14 7:43 AM - edited 2026-05-14 7:46 AM
@darkfader wrote:The diagram I'm looking at is at page 40 in the manual, here:
https://docs.rs-online.com/9ce5/0900766b81693555.pdf ?
That's on a 3rd-party site - note that it is Rev 3
Always best to go direct to the manufactures own site:
via: https://www.st.com/en/evaluation-tools/32f769idiscovery.html#documentation
Note that this one is at Rev 5 - so the one on the RS site is two revisions out of date!
Schematics for the DISCO board are here:
https://www.st.com/en/evaluation-tools/32f769idiscovery.html#cad-resources
@darkfader wrote:Do you know if there's an actual RTC on this board?
The RTC is part of the STM32F769I chip - so it is always present inside the chip, irrespective of what board you use.
RTC details are in the chip documentation - Reference Manual & Datasheet:
https://www.st.com/en/microcontrollers-microprocessors/stm32f769ni.html#documentation
2026-05-14 7:45 AM - edited 2026-05-14 7:47 AM
Hello @darkfader and welcome to the ST community,
The MCU itself (STM32F769) has an RTC but unfortunately the VBAT pin is tied to VDD in the PCB on STM32F769I-DISCO as shown in the board schematic:
Contrarily to the EVAL board that has a battery socket.
I know this is a limitation I've already faced on one of my projects and asked to make VBAT accessible over jumpers or at least a solder bridge for future STM32 boards.
So in your case you need to use an external RTC chip over I2C, with a time saving with a battery.
2026-05-14 7:53 AM
@mƎALLEm wrote:I know this is a limitation I've already faced on one of my projects and asked to make VBAT accessible over jumpers or at least a solder bridge for future STM32 boards..
Indeed, this is often a limitation of the DISCO boards: they tend to be very tightly focussed on just one particular application/demo - which makes them very inflexible for use in other applications.
@darkfader due you actually need battery backup?
If you do, it might be better to look for a different board - the Nucleo boards are a lot more flexible:
https://www.st.com/en/evaluation-tools/stm32-nucleo-boards.html
2026-05-14 8:16 AM
Wow, so many so helpful and insightful replies.
I'm not gonna die from not having battery backup, I just wanted it to work with things like hwclock --systohc. But I think as long as I fetch the current time before enabling PTPv2 it should work as well. Still learning.
I don't want to get another board at the moment - the original HW I want to make new firmware for was built off this one. (a Ubiquiti firewall that uses it as a very pretty display. It stops working if you replace the original OS with something more modern, so I want to re-implement that functionality). An RTC battery is _not_ needed for that purpose. But since I bought the board to play with, I wanna see what I can do with it. Is it understandable like that.
I'll assume I'm gonna postpone the RTC a bit. I can get a cheap external RTC circuit, and maybe I find someone more awake than me and we cut the VDD line there and use the builtin one.
I'll think it through, thank you!
Also thanks for the proper links. I'm very forgetful and so even if I might have found them on the ST website a week ago I might pick a different the next day. I'll save these and now I know I can look for the thread :)