{"id":4267,"date":"2020-03-04T20:00:16","date_gmt":"2020-03-04T19:00:16","guid":{"rendered":"https:\/\/msalamon.pl\/?p=4267"},"modified":"2025-12-27T17:33:33","modified_gmt":"2025-12-27T16:33:33","slug":"preserve-stm32f1-rtc-settings-using-a-battery-on-vbat-an-external-crystal-on-the-bluepill","status":"publish","type":"post","link":"https:\/\/msalamon.pl\/en\/preserve-stm32f1-rtc-settings-using-a-battery-on-vbat-an-external-crystal-on-the-bluepill\/","title":{"rendered":"Preserve STM32F1 RTC settings using a battery on VBAT + an external crystal on the BluePill"},"content":{"rendered":"\n<p>We made it through together how to work with the time and how to tame the date so that the default one doesn\u2019t come back. We\u2019ve also mastered restoring the date from the hardware RTC backup registers after a power loss. However, we do not have backup power, and in this post I\u2019d like to mention it. What\u2019s more, we will switch to an external crystal on the <a href=\"https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">BluePill<\/a> board, running into a problem\u2026 a hardware one.<\/p>\n\n\n\n<!--more-->\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"http:\/\/https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=banner&amp;utm_campaign=rtcf1&amp;utm_content=bluepill\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"400\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2018\/09\/BluePill_baner.jpg\" alt=\"\" class=\"wp-image-953\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2018\/09\/BluePill_baner.jpg 1200w, https:\/\/msalamon.pl\/wp-content\/uploads\/2018\/09\/BluePill_baner-300x100.jpg 300w, https:\/\/msalamon.pl\/wp-content\/uploads\/2018\/09\/BluePill_baner-1024x341.jpg 1024w, https:\/\/msalamon.pl\/wp-content\/uploads\/2018\/09\/BluePill_baner-768x256.jpg 768w, https:\/\/msalamon.pl\/wp-content\/uploads\/2018\/09\/BluePill_baner-24x8.jpg 24w, https:\/\/msalamon.pl\/wp-content\/uploads\/2018\/09\/BluePill_baner-36x12.jpg 36w, https:\/\/msalamon.pl\/wp-content\/uploads\/2018\/09\/BluePill_baner-160x53.jpg 160w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Battery on VBAT<\/h1>\n\n\n\n<p>STM32, unlike for example AVRs, have a special pin for battery power. It\u2019s called VBAT. With its help, the following can be powered:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>External LSE oscillator<\/li>\n\n\n\n<li>Backup registers<\/li>\n\n\n\n<li>BDCR register\u00a0<\/li>\n\n\n\n<li>RTC<\/li>\n<\/ul>\n\n\n\n<p>A complete overview of STM32F1 power supply can of course be found in the documentation. Both in the Datasheet and the Reference Manual.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"403\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply.png\" alt=\"\" class=\"wp-image-1417\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply.png 557w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply-300x217.png 300w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply-24x17.png 24w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply-36x26.png 36w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply-111x80.png 111w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"530\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply_ds.png\" alt=\"\" class=\"wp-image-1418\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply_ds.png 632w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply_ds-300x252.png 300w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply_ds-24x20.png 24w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply_ds-36x30.png 36w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_power_supply_ds-95x80.png 95w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>In the diagram you can see something called the Low Voltage Detector. Besides being what the name suggests, its job is to switch the Backup Domain supply exactly when the main VDD supply appears\/disappears.<\/p>\n\n\n\n<p>While VDD is present, the RTC and the rest of the crew are powered from the main supply. The moment it disappears, the switch changes the backup area to the supply provided on VBAT.<\/p>\n\n\n\n<p>On VBAT, the backup battery we connect is waiting. Of course, VBAT can also be fed from the main supply instead of a battery, and this is often done. It is even recommended to connect VDD and VBAT externally&nbsp; if we do not use a battery.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">I connect a battery to the BluePill<\/h2>\n\n\n\n<p>Since my test platform for STM32F1 is the <a href=\"https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">BluePill<\/a>, I\u2019ll connect a battery to it. I don\u2019t have a CR2032 coin-cell holder, so I assembled myself 2\/3 of an AAA battery holder. Two batteries in series give 3 V. In general, for our patient, the battery backup voltage should be 1.8 \u00f7 3.6 V, so such a battery set will be perfect.<\/p>\n\n\n\n<p>All you need to do is connect the holder to VBAT and it should work, right? That\u2019s what I thought too\u2026 Unfortunately, even though the batteries were connected to the <a href=\"https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">BluePill<\/a>, the RTC does not keep its settings after disconnecting the USB power cable. Why?<\/p>\n\n\n\n<p>According to the figure above, the battery alone is enough. In reality, it isn\u2019t.<\/p>\n\n\n\n<p>In the documentation titled \u201cGetting started with STM32F10xxx hardware development\u201d you can find the following note.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"546\" height=\"59\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_cap.png\" alt=\"\" class=\"wp-image-1419\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_cap.png 546w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_cap-300x32.png 300w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_cap-24x3.png 24w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_cap-36x4.png 36w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_cap-160x17.png 160w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>However, this is not the answer for our configuration. This is exactly how we have it connected, i.e., the battery directly.<\/p>\n\n\n\n<p>We can take a look at the schematic of the <a href=\"https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">BluePill<\/a> and at the <a href=\"https:\/\/sklep.msalamon.pl\/kategoria-produktu\/dev-boardy\/stm32-nucleo\/stm-nucleo-64\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">Nucleo<\/a>. Here is an excerpt from the <a href=\"https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">BluePill<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"158\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_bluepill.png\" alt=\"\" class=\"wp-image-1420\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_bluepill.png 291w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_bluepill-24x13.png 24w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_bluepill-36x20.png 36w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_bluepill-147x80.png 147w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>The VBAT pin is routed directly to the pin header. Let\u2019s see how it looks on the <a href=\"https:\/\/sklep.msalamon.pl\/kategoria-produktu\/dev-boardy\/stm32-nucleo\/stm-nucleo-64\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">Nucleo-64<\/a>, the most popular size of these boards.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"245\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_nucleo.png\" alt=\"\" class=\"wp-image-1421\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_nucleo.png 653w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_nucleo-300x113.png 300w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_nucleo-24x9.png 24w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_nucleo-36x14.png 36w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_vbat_nucleo-160x60.png 160w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>And there is a capacitor (C29). In the documentation they point to this capacitor, but only in the situation where we connect VCC to VBAT. There is no mention of such a one if it\u2019s a battery\u2026<\/p>\n\n\n\n<p>This is a decoupling capacitor for VBAT and VDD. ST placed a 1 uF filtering capacitor and this might be the solution to our problem with the <a href=\"https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">BluePill<\/a>.<\/p>\n\n\n\n<p>I happen to have 100 nF at hand, not 1 uF, but I think it will be enough. I connect it on the breadboard as close as possible to the VBAT pin and what\u2026 IT WORKS!<\/p>\n\n\n\n<p>The RTC also counts on the battery after removing the main power supply. Mystery solved. It\u2019s just a shame that the Chinese didn\u2019t think to add this capacitor\u2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">External RTC crystal<\/h2>\n\n\n\n<p>All that\u2019s left is to try switching to an external crystal, which is even mounted on the <a href=\"https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">BluePill<\/a> board. To do this, it\u2019s enough to enable and switch the crystal in Cube.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"518\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling.png\" alt=\"\" class=\"wp-image-1422\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling.png 1200w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling-300x130.png 300w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling-1024x442.png 1024w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling-768x332.png 768w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling-24x10.png 24w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling-36x16.png 36w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling-160x69.png 160w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Notice that the oscillator pins on the MCU have appeared as configured. You still need to actually switch the RTC clock to external.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1156\" height=\"580\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling2.png\" alt=\"\" class=\"wp-image-1423\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling2.png 1156w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling2-300x151.png 300w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling2-1024x514.png 1024w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling2-768x385.png 768w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling2-24x12.png 24w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling2-36x18.png 36w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/02\/rtcf1_lse_enabling2-160x80.png 160w\" sizes=\"auto, (max-width: 1156px) 100vw, 1156px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>And now the RTC should run on the external clock.<\/p>\n\n\n\n<p>I flash it happily, launch the terminal and what?! The seconds are going about 2 times faster than they should! Scandal!<\/p>\n\n\n\n<p>I dug around the web for a moment about what might be going on and quickly found the cause.<\/p>\n\n\n\n<p>Namely, the excellent Chinese engineers decided they would place an external oscillator for the RTC and connect it to the MCU, but at the same time they routed those same pins to the pin headers in case someone wanted to use them as regular GPIO. The idea sounds nice in principle\u2026 until you actually want to use that RTC, not GPIO.<\/p>\n\n\n\n<p>If you still don\u2019t know: oscillators should always be located as close as possible to the MCU pins. This is not without reason. It\u2019s about, among other things, the capacitances between traces.<\/p>\n\n\n\n<p>By adding pin headers, we introduce additional parasitic capacitance, which is not welcome. When plugging into a breadboard, those pin headers and the capacitance associated with them changes even more, as a result of which the resonant frequency of the oscillator\/generator shifts.<\/p>\n\n\n\n<p>These parasitic capacitances are on the order of picofarads. However, pay attention to the capacitors that are placed next to oscillators. It\u2019s the same order of magnitude, so such parasitic capacitances from the traces have a truly huge impact on the operation of oscillators.<\/p>\n\n\n\n<p>How to solve this? It would be useful to get rid of these \u201ccapacitors\u201d on the pins. Best to simply desolder them. That\u2019s what I did.<\/p>\n\n\n\n<p>The result? A second \u2013 by eye \u2013 again lasts about a second. We are all saved.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/sklep.msalamon.pl\/kategoria-produktu\/dev-boardy\/stm32-nucleo\/?utm_source=blog&amp;utm_medium=banner&amp;utm_campaign=rtcf1&amp;utm_content=nucleo\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"400\" src=\"http:\/\/msalamon.pl\/wp-content\/uploads\/2020\/07\/Nucleo-64-baner.jpg\" alt=\"\" class=\"wp-image-1593\" srcset=\"https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/07\/Nucleo-64-baner.jpg 1200w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/07\/Nucleo-64-baner-300x100.jpg 300w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/07\/Nucleo-64-baner-1024x341.jpg 1024w, https:\/\/msalamon.pl\/wp-content\/uploads\/2020\/07\/Nucleo-64-baner-768x256.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>For the correct use of a battery and an external crystal, a bit of purely electronic knowledge comes in handy. In both cases, capacitances near these elements played a huge role.<\/p>\n\n\n\n<p>Browsing English-language forums, I came across a huge number of threads devoted precisely to these \u201cbugs in STM32\u201d or in the <a href=\"https:\/\/sklep.msalamon.pl\/produkt\/stm32f103c8t6-dev-board-2\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=rtcf1&amp;utm_content=Text\">BluePill<\/a> itself. Unfortunately, things like this most often come with experience\u2026<\/p>\n\n\n\n<p>Luckily you have me and an article like this \ud83d\ude42 <strong>If I helped you, share this post with your friends. I\u2019ll be incredibly grateful!<\/strong><\/p>\n\n\n\n<p>The full project along with the library can be found, as usual, on my GitHub: <a href=\"https:\/\/github.com\/lamik\/RTC_F103\" target=\"_blank\" rel=\"noopener\"><span> LINK<\/span><\/a><\/p>\n\n\n\n<p><span>If you noticed an error, disagree with something, would like to add something important, or you simply feel like you\u2019d like to discuss this topic, write a comment. Remember that the discussion should be polite and in accordance with the rules of the Polish language.<\/span><\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;4267&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;0&quot;,&quot;greet&quot;:&quot;&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Preserve STM32F1 RTC settings using a battery on VBAT + an external crystal on the BluePill&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\"><\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>We made it through together how to work with the time and how to tame the date so that the default one doesn\u2019t come back. We\u2019ve also mastered restoring the date from the hardware RTC backup registers after a power loss. However, we do not have backup power, and in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3405,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[160],"tags":[175,174],"class_list":["post-4267","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-stm32","tag-electronics","tag-stm32"],"_links":{"self":[{"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/posts\/4267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/comments?post=4267"}],"version-history":[{"count":3,"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/posts\/4267\/revisions"}],"predecessor-version":[{"id":4376,"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/posts\/4267\/revisions\/4376"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/media\/3405"}],"wp:attachment":[{"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/media?parent=4267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/categories?post=4267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msalamon.pl\/en\/wp-json\/wp\/v2\/tags?post=4267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}