Browse Source

boards: Convert nucleo_l452re_p to HWM v2

Port the board to HWMv2. Introduce it as variant of nucleo_l452re

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
pull/69687/head
Guillaume Gautier 1 year ago committed by Carles Cufi
parent
commit
80324f7707
  1. 4
      boards/st/nucleo_l452re/Kconfig.defconfig
  2. 2
      boards/st/nucleo_l452re/board.yml
  3. 10
      boards/st/nucleo_l452re/doc/index.rst
  4. 0
      boards/st/nucleo_l452re/nucleo_l452re_stm32l452xx_p.dts
  5. 2
      boards/st/nucleo_l452re/nucleo_l452re_stm32l452xx_p.yaml
  6. 3
      boards/st/nucleo_l452re/nucleo_l452re_stm32l452xx_p_defconfig

4
boards/st/nucleo_l452re/Kconfig.defconfig

@ -4,10 +4,10 @@ @@ -4,10 +4,10 @@
#
# SPDX-License-Identifier: Apache-2.0
if BOARD_NUCLEO_L452RE || BOARD_NUCLEO_L452RE_P
if BOARD_NUCLEO_L452RE
config SPI_STM32_INTERRUPT
default y
depends on SPI
endif # BOARD_NUCLEO_L452RE || BOARD_NUCLEO_L452RE_P
endif # BOARD_NUCLEO_L452RE

2
boards/st/nucleo_l452re/board.yml

@ -3,3 +3,5 @@ board: @@ -3,3 +3,5 @@ board:
vendor: st
socs:
- name: stm32l452xx
variants:
- name: p

10
boards/st/nucleo_l452re/doc/index.rst

@ -134,6 +134,9 @@ Other hardware features are not yet supported on this Zephyr port. @@ -134,6 +134,9 @@ Other hardware features are not yet supported on this Zephyr port.
The default configuration can be found in the defconfig file:
``boards/st/nucleo_l452re/nucleo_l452re_defconfig``
And for Nucleo L452RE-P in this defconfig file:
``boards/st/nucleo_l452re/nucleo_l452re_stm32l452xx_p_defconfig``
Connections and IOs
===================
@ -218,6 +221,13 @@ Now build and flash an application. Here is an example for @@ -218,6 +221,13 @@ Now build and flash an application. Here is an example for
:board: nucleo_l452re
:goals: build flash
For Nucleo L452RE-P, use this command instead:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: nucleo_l452re/stm32l452xx/p
:goals: build flash
You should see the following message on the console:
.. code-block:: console

0
boards/st/nucleo_l452re/nucleo_l452re_p.dts → boards/st/nucleo_l452re/nucleo_l452re_stm32l452xx_p.dts

2
boards/st/nucleo_l452re/nucleo_l452re_p.yaml → boards/st/nucleo_l452re/nucleo_l452re_stm32l452xx_p.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: nucleo_l452re_p
identifier: nucleo_l452re/stm32l452xx/p
name: ST Nucleo L452RE-P
type: mcu
arch: arm

3
boards/st/nucleo_l452re/nucleo_l452re_p_defconfig → boards/st/nucleo_l452re/nucleo_l452re_stm32l452xx_p_defconfig

@ -1,8 +1,5 @@ @@ -1,8 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_STM32L4X=y
CONFIG_SOC_STM32L452XX=y
# enable uart driver
CONFIG_SERIAL=y
Loading…
Cancel
Save