From e8c52da1c6d15b9862ab41387b3a1915abf6407d Mon Sep 17 00:00:00 2001 From: Joshua Dotto Date: Thu, 27 Nov 2025 11:56:11 -0600 Subject: [PATCH 1/2] fix stray comment terminator in HAL_TIM_MODULE_ENABLED macro --- .../mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbm_applications/1_thread_x_on_stm32_u5/mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h b/lbm_applications/1_thread_x_on_stm32_u5/mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h index af5ef271..80c40260 100644 --- a/lbm_applications/1_thread_x_on_stm32_u5/mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h +++ b/lbm_applications/1_thread_x_on_stm32_u5/mcu_drivers/core/STM32U5xx/stm32u5xx_hal_conf.h @@ -75,7 +75,7 @@ /*#define HAL_SMBUS_MODULE_ENABLED */ #define HAL_SPI_MODULE_ENABLED /*#define HAL_SRAM_MODULE_ENABLED */ -#define HAL_TIM_MODULE_ENABLED */ +#define HAL_TIM_MODULE_ENABLED /*#define HAL_TSC_MODULE_ENABLED */ /*#define HAL_RAMCFG_MODULE_ENABLED */ #define HAL_UART_MODULE_ENABLED From 90511d5239c75cb81cc0160416210c587240ad33 Mon Sep 17 00:00:00 2001 From: Joshua Dotto Date: Thu, 27 Nov 2025 11:57:30 -0600 Subject: [PATCH 2/2] fix swapped RTC time fields: DayLightSaving and StoreOperation --- .../1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbm_applications/1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c b/lbm_applications/1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c index 20ad0113..ac3ff41b 100644 --- a/lbm_applications/1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c +++ b/lbm_applications/1_thread_x_on_stm32_u5/smtc_hal_u5/smtc_hal_rtc.c @@ -201,8 +201,8 @@ void hal_rtc_init( void ) time.Seconds = 0; time.SubSeconds = 0; time.TimeFormat = 0; - time.StoreOperation = RTC_DAYLIGHTSAVING_NONE; - time.DayLightSaving = RTC_STOREOPERATION_RESET; + time.StoreOperation = RTC_STOREOPERATION_RESET; + time.DayLightSaving = RTC_DAYLIGHTSAVING_NONE; HAL_RTC_SetTime( &hal_rtc_handle, &time, RTC_FORMAT_BIN ); // Enable Direct Read of the calendar registers (not through Shadow