daniel-p-carvalho opened a new pull request, #20992:
URL: https://github.com/apache/nuttx/pull/20992

   ## Summary
   Enabling CONFIG_STM32_RTC on an STM32G4 fails to build because stm32_rtc.h
   does not include hardware/stm32_rtcc.h for the G4, so STM32_RTC_BKR is
   undefined in stm32_rcc.c. This adds CONFIG_STM32_STM32G4XXX to the list.
   
   ## Impact
   Only builds with CONFIG_STM32_RTC=y on the G4, which did not compile before.
   
   ## Testing
   Host: Linux x86_64, arm-none-eabi-gcc 15.2.1.  Target: STM32G474 with the 
LSE,
   CONFIG_STM32_RTC and CONFIG_RTC_DRIVER:
   
     nsh> date -s "Oct 25 18:27:24 2026"
     nsh> date
     Sun, Oct 25 18:27:26 2026
   
   The time was kept after a reset and after a power cycle.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to