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>
This commit is contained in:
committed by
Carles Cufi
parent
9893e0d111
commit
80324f7707
@@ -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
|
||||
|
||||
@@ -3,3 +3,5 @@ board:
|
||||
vendor: st
|
||||
socs:
|
||||
- name: stm32l452xx
|
||||
variants:
|
||||
- name: p
|
||||
|
||||
@@ -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
|
||||
: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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: nucleo_l452re_p
|
||||
identifier: nucleo_l452re/stm32l452xx/p
|
||||
name: ST Nucleo L452RE-P
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user