I am trying to use the RTC functions on the blue pill using backup vbat, but the LSE crystal doesn’t seem want to start at all.
Any recommendations of crystals that could be used to replace it? Must I use another MC-306 or can I use a tuning fork crystal?
Try Googling this site for terms like RTC crystal, or 32khz crystal.
[flodejr – Sat Oct 21, 2017 8:57 pm] –
Hi,I am trying to use the RTC functions on the blue pill using backup vbat, but the LSE crystal doesn’t seem want to start at all.
How did you check the problem is in the LSE?
Anyway base on my experience, problems in the crystal startup can be due to shortcuts between the crystal pins.
[flodejr – Sat Oct 21, 2017 8:57 pm] –
Hi,I am trying to use the RTC functions on the blue pill using backup vbat, but the LSE crystal doesn’t seem want to start at all.
Any recommendations of crystals that could be used to replace it? Must I use another MC-306 or can I use a tuning fork crystal?
Are the load capacitors fitted to your board? I have used a bunch of different 32768 Hz cheap watch crystals some from ebay, some recovered from my junk bin, and they all just worked. Others on this forum have not been so lucky.
Which board are you using?
The supplier I bought from in 2015 is still listing them (first item on the list)… https://www.ebay.co.uk/sch/sis.html?_nk … 2749.l2658
… and that ebay link will get you lots of similar options.
[edogaldo – Sun Oct 22, 2017 1:05 pm] –[flodejr – Sat Oct 21, 2017 8:57 pm] –
Hi,I am trying to use the RTC functions on the blue pill using backup vbat, but the LSE crystal doesn’t seem want to start at all.
How did you check the problem is in the LSE?
Anyway base on my experience, problems in the crystal startup can be due to shortcuts between the crystal pins.
I did a code debug and the code was waiting on settings on the RTC register, that means the clock signal is not running.
[ahull – Mon Oct 23, 2017 9:18 am] –[flodejr – Sat Oct 21, 2017 8:57 pm] –
Hi,I am trying to use the RTC functions on the blue pill using backup vbat, but the LSE crystal doesn’t seem want to start at all.
Any recommendations of crystals that could be used to replace it? Must I use another MC-306 or can I use a tuning fork crystal?Are the load capacitors fitted to your board? I have used a bunch of different 32768 Hz cheap watch crystals some from ebay, some recovered from my junk bin, and they all just worked. Others on this forum have not been so lucky.
Which board are you using?
The supplier I bought from in 2015 is still listing them (first item on the list)… https://www.ebay.co.uk/sch/sis.html?_nk … 2749.l2658
… and that ebay link will get you lots of similar options.
I have ordered some crystals and waiting for delivery. Anyway right now I have some other problems on the RTC. I may have to rely on an external RTC and if thats the case, I would rather go on the Amtel platform.
[flodejr – Wed Oct 25, 2017 1:53 am] –
I have ordered some crystals and waiting for delivery. Anyway right now I have some other problems on the RTC. I may have to rely on an external RTC and if thats the case, I would rather go on the Amtel platform.
What problems are you having? In my opinion, I found the RTC pretty easy to use, and very flexible, (once I had figured out how it worked
).
Any issues I encountered were related to the type of STM32 board I was using. Some boards implement the RTC circuitry correctly. Others take a few liberties.
http://www.st.com/content/ccc/resource/ … 221665.pdf
I touched on this briefly in this thread -> viewtopic.php?t=79&start=40#p2844
.. and here … -> viewtopic.php?t=658
If you have access to an oscilloscope, you can verify if the oscillator is working.
[ahull – Wed Oct 25, 2017 9:47 am] –[flodejr – Wed Oct 25, 2017 1:53 am] –
I have ordered some crystals and waiting for delivery. Anyway right now I have some other problems on the RTC. I may have to rely on an external RTC and if thats the case, I would rather go on the Amtel platform.What problems are you having? In my opinion, I found the RTC pretty easy to use, and very flexible, (once I had figured out how it worked
).
Any issues I encountered were related to the type of STM32 board I was using. Some boards implement the RTC circuitry correctly. Others take a few liberties.
I am not sure if I have implement the alarm function correctly. It seems that the RTC clock will stop when the alarm interrupt is triggered and you have to re-engage it, losing a few ticks or more depending on how your ISR works. Anyway, I have reverted to polling and RTC with Alarm is working now off LSI, waiting for the crystals to arrive, hopely I can resolve the LSE problem.
It potentially sounds like a software issue related to waking and sleeping
viewtopic.php?f=3&t=2602&p=38423#p38423
oh yes, on another note, i keep vbat powered on a coin cell battery (cr2032), rather often i simply unplug usb, cutting off power, leaving rtc running on the coin cell. reconnect, and time is kept, no issues, i didn’t meddle with alarm or sleep though. i’m not too sure if on MM, BP if 3v3 is connected to VBAT
i think i read somewhere it is recommended if you do not power vbat separately

