board: Add support of STM32F143xG SOC
The only difference between the F413xH and F413xG is flash memory size. STMF413xH: 1536 Kbytes STMF413xG: 1024 Kbytes Signed-off-by: Benoit Leforestier <benoit.leforestier@gmail.com>
This commit is contained in:
parent
602e08c69a
commit
270ec15482
6 changed files with 30 additions and 8 deletions
|
@ -7,4 +7,4 @@
|
||||||
|
|
||||||
config BOARD_NUCLEO_F413ZH
|
config BOARD_NUCLEO_F413ZH
|
||||||
bool "NUCLEO-144 F413ZH Development Board"
|
bool "NUCLEO-144 F413ZH Development Board"
|
||||||
depends on SOC_STM32F413XH
|
depends on SOC_STM32F413XX
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_BOARD_NUCLEO_F413ZH=y
|
CONFIG_BOARD_NUCLEO_F413ZH=y
|
||||||
CONFIG_SOC_SERIES_STM32F4X=y
|
CONFIG_SOC_SERIES_STM32F4X=y
|
||||||
CONFIG_SOC_STM32F413XH=y
|
CONFIG_SOC_STM32F413XX=y
|
||||||
# 96MHz system clock (highest value to get a precise USB clock)
|
# 96MHz system clock (highest value to get a precise USB clock)
|
||||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
|
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
|
||||||
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
|
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
|
||||||
|
|
22
dts/arm/st/f4/stm32f413Xg.dtsi
Normal file
22
dts/arm/st/f4/stm32f413Xg.dtsi
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Linaro Limited
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <mem.h>
|
||||||
|
#include <st/f4/stm32f413.dtsi>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
sram0: memory@20000000 {
|
||||||
|
reg = <0x20000000 DT_SIZE_K(320)>;
|
||||||
|
};
|
||||||
|
|
||||||
|
soc {
|
||||||
|
flash-controller@40023c00 {
|
||||||
|
flash0: flash@8000000 {
|
||||||
|
reg = <0x08000000 DT_SIZE_K(1024)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -16,7 +16,7 @@
|
||||||
#include <pwm.h>
|
#include <pwm.h>
|
||||||
|
|
||||||
#if defined(CONFIG_SOC_STM32F401XE) || defined(CONFIG_SOC_STM32F412ZG) || \
|
#if defined(CONFIG_SOC_STM32F401XE) || defined(CONFIG_SOC_STM32F412ZG) || \
|
||||||
defined(CONFIG_SOC_STM32F413XH) || defined(CONFIG_SOC_STM32L476XG) || \
|
defined(CONFIG_SOC_STM32F413XX) || defined(CONFIG_SOC_STM32L476XG) || \
|
||||||
defined(CONFIG_SOC_STM32F407XG) || defined(CONFIG_SOC_STM32F302X8)
|
defined(CONFIG_SOC_STM32F407XG) || defined(CONFIG_SOC_STM32F302X8)
|
||||||
#define PWM_DRIVER CONFIG_PWM_STM32_2_DEV_NAME
|
#define PWM_DRIVER CONFIG_PWM_STM32_2_DEV_NAME
|
||||||
#define PWM_CHANNEL 1
|
#define PWM_CHANNEL 1
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# Kconfig - ST STM32F413XH MCU configuration options
|
# Kconfig - ST STM32F413XX MCU configuration options
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 Florian Vaussard, HEIG-VD
|
# Copyright (c) 2017 Florian Vaussard, HEIG-VD
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
if SOC_STM32F413XH
|
if SOC_STM32F413XX
|
||||||
|
|
||||||
config SOC
|
config SOC
|
||||||
string
|
string
|
||||||
|
@ -32,4 +32,4 @@ config ENTROPY_STM32_RNG
|
||||||
|
|
||||||
endif # ENTROPY_GENERATOR
|
endif # ENTROPY_GENERATOR
|
||||||
|
|
||||||
endif # SOC_STM32F413XH
|
endif # SOC_STM32F413XX
|
||||||
|
|
|
@ -27,8 +27,8 @@ config SOC_STM32F412CG
|
||||||
config SOC_STM32F412ZG
|
config SOC_STM32F412ZG
|
||||||
bool "STM32F412ZG"
|
bool "STM32F412ZG"
|
||||||
|
|
||||||
config SOC_STM32F413XH
|
config SOC_STM32F413XX
|
||||||
bool "STM32F413XH"
|
bool "STM32F413XX"
|
||||||
|
|
||||||
config SOC_STM32F417XE
|
config SOC_STM32F417XE
|
||||||
bool "STM32F417XE"
|
bool "STM32F417XE"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue