bsps/stm32h7: add configuration and enable build of stm32h757i-eval BSP

This is minimalist configuration for the stm32h757i-eval BSP provided
here. The only general enhancement worth mention is boot core
configuration which is needed here as this is the first dual-core board
supported by stm32h7 BSP family and we need to choose boot core in order
to get C files compiling well.

Sponsored-By:	Precidata
This commit is contained in:
Karel Gardas
2022-05-16 13:01:39 +02:00
parent 2fded8138d
commit 124912445c
7 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
arch: arm
bsp: stm32h757i-eval
build-type: bsp
cflags: []
copyrights:
- Copyright (C) 2022 Karel Gardas <karel@functional.vision>
cppflags: []
enabled-by: true
family: stm32h7
includes: []
install: []
links:
- role: build-dependency
uid: grp
source:
- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-config-clk.c
- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-config-osc.c
- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-config-per.c
- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/system_stm32h7xx.c
type: build

View File

@@ -83,6 +83,8 @@ links:
uid: optprintkinstance
- role: build-dependency
uid: optpwrsupply
- role: build-dependency
uid: optbootcore
- role: build-dependency
uid: optusart1gpiopins
- role: build-dependency

View File

@@ -0,0 +1,23 @@
actions:
- get-string: null
- script: |
cores = ["CORE_CM7", "CORE_CM4", "BOOT_CORE_DEFINE_NOT_NEEDED"]
if value not in cores:
conf.fatal("STM32H7 boot core '{}' is not one of {}".format(value, cores))
conf.define_cond(value, True)
build-type: option
default: BOOT_CORE_DEFINE_NOT_NEEDED
default-by-variant:
- value: CORE_CM7
variants:
- arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []
name: STM32H7_BOOT_CORE
description: |
Select the boot core. Possible values are CORE_CM7 and CORE_CM4
type: build
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2022 Karel Gardas <karel@functional.vision>

View File

@@ -7,6 +7,7 @@ default-by-variant:
- value: linkcmds.flash
variants:
- arm/stm32h7b3i-dk
- arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []

View File

@@ -7,6 +7,7 @@ default-by-variant:
- value: PWR_DIRECT_SMPS_SUPPLY
variants:
- arm/stm32h7b3i-dk
- arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []

View File

@@ -7,6 +7,9 @@ default-by-variant:
- value: GPIOA
variants:
- arm/stm32h7b3i-dk
- value: GPIOB
variants:
- arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []

View File

@@ -17,6 +17,9 @@ default-by-variant:
- value: STM32H7B3xxQ
variants:
- arm/stm32h7b3i-dk
- value: STM32H757xx
variants:
- arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []