You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "kasjer (via GitHub) via notifications" <no...@mynewt.apache.org> on 2026/10/31 16:07:09 UTC

[PR] hw/mcu/stm: Fix nvreg on MCUs with backup registers in TAMP [mynewt-core]

kasjer opened a new pull request, #3866:
URL: https://github.com/apache/mynewt-core/pull/3866

   On STM32G0 (and STM32L412/L422/L4P5/L4Q5) backup registers are located in TAMP peripheral. HAL_RTCEx_BKUPWrite/Read() find them using hrtc->TampOffset that is normally set by HAL_RTC_Init().
   
   hal_nvreg created RTC handle with Instance only so TampOffset was 0 and reads and writes went to RTC registers instead of backup registers. As a result values written by application (i.e. DFU request magic) were not visible to bootloader.
   
   TampOffset is now set for devices that have this field in RTC_HandleTypeDef.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] hw/mcu/stm: Fix nvreg on MCUs with backup registers in TAMP [mynewt-core]

Posted by "kasjer (via GitHub) via notifications" <no...@mynewt.apache.org>.
kasjer merged PR #3866:
URL: https://github.com/apache/mynewt-core/pull/3866


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org