Skip to content

Commit 9a063ae

Browse files
authored
Merge pull request #179 from pennam/stm32-upload-fix
Fix Sektch upload on OPTA and GIGA R1 WiFi
2 parents a612970 + 47df7e5 commit 9a063ae

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

loader/fixups.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ 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+
int 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+
return 0;
49+
}
50+
SYS_INIT(enable_bkp_access, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
51+
#endif
52+
4253
#if defined(CONFIG_BOARD_ARDUINO_GIGA_R1) && defined(CONFIG_VIDEO)
4354
#include <zephyr/kernel.h>
4455
#include <zephyr/device.h>

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ CONFIG_CYW4343W_MURATA_1DX=y
6464
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
6565
CONFIG_BT_RX_STACK_SIZE=4096
6666
CONFIG_BT_HCI_TX_STACK_SIZE=4096
67+
68+
CONFIG_STM32H7_BOOT_M4_AT_INIT=n

variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@ CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=7168
9090
CONFIG_MBEDTLS_HASH_ALL_ENABLED=y
9191
CONFIG_MBEDTLS_CMAC=y
9292

93+
CONFIG_STM32H7_BOOT_M4_AT_INIT=n

0 commit comments

Comments
 (0)