board: stm32h474i_disco: Small fixes on m4 core
ST-Link VPC is wired to UART_1. Console should be assigned to this peripheral to be available. By default UART_1 is assigned to m7 core and not available to m4. This commit does not change this, but makes it easier to change UART_1 assignment from m7 to m4 core. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
157fb6af72
commit
137d4c1882
4 changed files with 22 additions and 1 deletions
|
@ -50,6 +50,7 @@ endif # STM32H7_DUAL_CORE
|
||||||
|
|
||||||
if UART_CONSOLE
|
if UART_CONSOLE
|
||||||
|
|
||||||
|
# Change this to assign UART_1 (console) to M4 core
|
||||||
config UART_1
|
config UART_1
|
||||||
default y if BOARD_STM32H747I_DISCO_M7
|
default y if BOARD_STM32H747I_DISCO_M7
|
||||||
|
|
||||||
|
@ -57,6 +58,7 @@ endif # UART_CONSOLE
|
||||||
|
|
||||||
if SERIAL
|
if SERIAL
|
||||||
|
|
||||||
|
# Change this to assign UART_8 to M4 core
|
||||||
config UART_8
|
config UART_8
|
||||||
default y if BOARD_STM32H747I_DISCO_M7
|
default y if BOARD_STM32H747I_DISCO_M7
|
||||||
|
|
||||||
|
|
|
@ -41,3 +41,13 @@
|
||||||
sw0 = &joy_center;
|
sw0 = &joy_center;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&usart1 {
|
||||||
|
current-speed = <115200>;
|
||||||
|
/* status = "okay"; */
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart8 {
|
||||||
|
current-speed = <115200>;
|
||||||
|
/* status = "okay"; */
|
||||||
|
};
|
||||||
|
|
|
@ -14,3 +14,11 @@ CONFIG_GPIO=y
|
||||||
|
|
||||||
# clock configuration
|
# clock configuration
|
||||||
CONFIG_CLOCK_CONTROL=y
|
CONFIG_CLOCK_CONTROL=y
|
||||||
|
|
||||||
|
# By default SERIAL peripherals are assigned to m7
|
||||||
|
|
||||||
|
# enable uart driver
|
||||||
|
#CONFIG_SERIAL=y
|
||||||
|
# console
|
||||||
|
#CONFIG_CONSOLE=y
|
||||||
|
#CONFIG_UART_CONSOLE=y
|
||||||
|
|
|
@ -30,9 +30,10 @@ CONFIG_CLOCK_STM32_PLL_P_DIVISOR=2
|
||||||
CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=4
|
CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=4
|
||||||
CONFIG_CLOCK_STM32_PLL_R_DIVISOR=2
|
CONFIG_CLOCK_STM32_PLL_R_DIVISOR=2
|
||||||
|
|
||||||
|
# Disable following to assign serial ports to m4 core
|
||||||
|
|
||||||
# enable uart driver
|
# enable uart driver
|
||||||
CONFIG_SERIAL=y
|
CONFIG_SERIAL=y
|
||||||
|
|
||||||
# console
|
# console
|
||||||
CONFIG_CONSOLE=y
|
CONFIG_CONSOLE=y
|
||||||
CONFIG_UART_CONSOLE=y
|
CONFIG_UART_CONSOLE=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue