Skip to content

Commit 5cb8d58

Browse files
facchinmpennam
authored andcommitted
stm32h7: restore 1200bps functionality by enabling Backup area access
1 parent 1821cb9 commit 5cb8d58

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

loader/fixups.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ SYS_INIT(disable_bootloader_mpu, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAU
3939
SYS_INIT(disable_mpu_rasr_xn, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
4040
#endif
4141

42+
#if defined(CONFIG_SOC_STM32H747XX_M7)
43+
void enable_bkp_access(void)
44+
{
45+
/* Enable access to the backup domain */
46+
// HAL_PWR_EnableBkUpAccess();
47+
SET_BIT(PWR->CR1, PWR_CR1_DBP);
48+
}
49+
SYS_INIT(enable_bkp_access, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
50+
#endif
51+
4252
#if defined(CONFIG_BOARD_ARDUINO_GIGA_R1) && defined(CONFIG_VIDEO)
4353
#include <zephyr/kernel.h>
4454
#include <zephyr/device.h>

0 commit comments

Comments
 (0)