diff --git a/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.dts b/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.dts index 61f83448a95..c9a3cdd4f79 100644 --- a/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.dts +++ b/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.dts @@ -14,6 +14,8 @@ compatible = "st,stm32mp257f-ev1", "st,stm32mp25"; chosen { + zephyr,console = &uart5; + zephyr,shell-uart = &uart5; zephyr,flash = &ddr_code; zephyr,sram = &ddr_sys; }; @@ -54,3 +56,17 @@ &gpioj { status = "okay"; }; + +&uart5 { + pinctrl-0 = <&uart5_tx_pg9 &uart5_rx_pg10>; + pinctrl-names = "default"; + current-speed = <115200>; + status = "okay"; +}; + +&usart6 { + pinctrl-0 = <&usart6_tx_pf13 &usart6_rx_pf14>; + pinctrl-names = "default"; + current-speed = <115200>; + status = "disabled"; +}; diff --git a/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.yaml b/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.yaml index 127e2f85d8b..3f8f8068cd3 100644 --- a/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.yaml +++ b/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33.yaml @@ -8,6 +8,7 @@ toolchain: supported: - LED - gpio + - shell testing: ignore_tags: - cmsis_rtos_v2 @@ -17,7 +18,6 @@ testing: - crypto - aes - cmm - - shell - nfc ram: 8192 flash: 8192 diff --git a/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33_defconfig b/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33_defconfig index ba770561fbe..f67a6f9d050 100644 --- a/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33_defconfig +++ b/boards/st/stm32mp257f_ev1/stm32mp257f_ev1_stm32mp257fxx_m33_defconfig @@ -9,3 +9,11 @@ CONFIG_GPIO=y # Enable HW stack protection CONFIG_HW_STACK_PROTECTION=y + +# Enable UART driver +CONFIG_SERIAL=y +CONFIG_UART_INTERRUPT_DRIVEN=y + +# UART console +CONFIG_CONSOLE=y +CONFIG_UART_CONSOLE=y