Skip to content

Commit 7cc8b78

Browse files
committed
Add missing openmv definitions
1 parent b414f82 commit 7cc8b78

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

ports/stm/boards/nucleo_f746zg/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ MCU_SERIES = F7
1010
MCU_VARIANT = STM32F746xx
1111
MCU_PACKAGE = LQFP144
1212

13-
LLD_COMMON = boards/common_tcm.ld
13+
LD_COMMON = boards/common_tcm.ld
1414
LD_FILE = boards/STM32F746xG_fs.ld

ports/stm/boards/openmv_h7/mpconfigboard.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,13 @@
3131

3232
#define FLASH_PAGE_SIZE (0x4000)
3333

34+
// H7 and F7 MPU definitions
35+
#define CPY_FLASH_REGION_SIZE ARM_MPU_REGION_SIZE_2MB
36+
#define CPY_ITCM_REGION_SIZE ARM_MPU_REGION_SIZE_64KB
37+
#define CPY_DTCM_REGION_SIZE ARM_MPU_REGION_SIZE_128KB
38+
#define CPY_SRAM_REGION_SIZE ARM_MPU_REGION_SIZE_512KB
39+
#define CPY_SRAM_SUBMASK 0x00
40+
#define CPY_SRAM_START_ADDR 0x24000000
41+
3442
#define HSE_VALUE ((uint32_t)12000000)
3543
#define BOARD_HAS_LOW_SPEED_CRYSTAL (0)

ports/stm/boards/stm32f746g_discovery/mpconfigboard.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
#define FLASH_SIZE (0x100000)
3535
#define FLASH_PAGE_SIZE (0x4000)
3636

37+
// H7 and F7 MPU definitions
38+
#define CPY_FLASH_REGION_SIZE ARM_MPU_REGION_SIZE_1MB
39+
#define CPY_ITCM_REGION_SIZE ARM_MPU_REGION_SIZE_16KB
40+
#define CPY_DTCM_REGION_SIZE ARM_MPU_REGION_SIZE_128KB
41+
#define CPY_SRAM_REGION_SIZE ARM_MPU_REGION_SIZE_256KB
42+
#define CPY_SRAM_SUBMASK 0x00
43+
#define CPY_SRAM_START_ADDR 0x20010000
44+
3745
// Lower frequency to allow external RAM use
3846
#define HSE_VALUE ((uint32_t)25000000)
3947
#define LSE_VALUE ((uint32_t)32768)

ports/stm/boards/stm32f746g_discovery/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ MCU_SERIES = F7
1010
MCU_VARIANT = STM32F746xx
1111
MCU_PACKAGE = TFBGA216
1212

13-
LD_COMMON = boards/common_default.ld
13+
LD_COMMON = boards/common_tcm.ld
1414
LD_FILE = boards/STM32F746xG_fs.ld

0 commit comments

Comments
 (0)