Skip to content

Commit 3dee4c8

Browse files
dleach02nordicjm
authored andcommitted
boards: nxp: convert lpcxpresso54114 to hwmv2
Convert lpcxpresso54114 Signed-off-by: David Leach <[email protected]>
1 parent 7a1e875 commit 3dee4c8

23 files changed

+59
-73
lines changed

boards/boards_legacy/arm/lpcxpresso54114/Kconfig.board

Lines changed: 0 additions & 14 deletions
This file was deleted.

boards/boards_legacy/arm/lpcxpresso54114/Kconfig.defconfig

Lines changed: 0 additions & 23 deletions
This file was deleted.

boards/boards_legacy/arm/lpcxpresso54114/board.cmake

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# LPCXpresso54114 board
2+
#
3+
# Copyright (c) 2017, 2024 NXP
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
# Place size restrictions on first image if dual core is enabled
7+
if SECOND_CORE_MCUX && BOARD_LPCXPRESSO54114_LPC54114_M4
8+
9+
# Workaround for not being able to have commas in macro arguments
10+
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
11+
12+
config FLASH_LOAD_SIZE
13+
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
14+
15+
endif # SECOND_CORE_MCUX && BOARD_LPCXPRESSO54114_LPC54114_M4
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# LPCXpresso54114 board
2+
3+
# Copyright 2017, 2024 NXP
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config BOARD_LPCXPRESSO54114
7+
select SOC_LPC54114_M4 if BOARD_LPCXPRESSO54114_LPC54114_M4
8+
select SOC_LPC54114_M0 if BOARD_LPCXPRESSO54114_LPC54114_M0
9+
select SOC_PART_NUMBER_LPC54114J256BD64
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Copyright (c) 2017, NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
if(BOARD_LPCXPRESSO54114_LPC54114_M4 OR CONFIG_SECOND_CORE_MCUX)
8+
board_runner_args(jlink "--device=LPC54114J256_M4" "--reset-after-load")
9+
elseif(BOARD_LPCXPRESSO54114_LPC54114_M0)
10+
board_runner_args(jlink "--device=LPC54114J256_M0" "--reset-after-load")
11+
endif()
12+
13+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/nxp/lpcxpresso54114/board.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: lpcxpresso54114
3+
vendor: nxp
4+
socs:
5+
- name: lpc54114

boards/boards_legacy/arm/lpcxpresso54114/doc/index.rst renamed to boards/nxp/lpcxpresso54114/doc/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ features:
7474

7575
The default configuration for each core can be found in the defconfig files:
7676

77-
``boards/arm/lpcxpresso54114/lpcxpresso54114_m4_defconfig``
78-
``boards/arm/lpcxpresso54114/lpcxpresso54114_m0_defconfig``
77+
`boards/nxp/lpcxpresso54114/lpcxpresso54114_lpc54114_m4_defconfig`
78+
`boards/nxp/lpcxpresso54114/lpcxpresso54114_lpc54114_m0_defconfig`
7979

8080
Other hardware features are not currently supported by the port.
8181

@@ -170,7 +170,7 @@ Here is an example for the :ref:`hello_world` application.
170170

171171
.. zephyr-app-commands::
172172
:zephyr-app: samples/hello_world
173-
:board: lpcxpresso54114_m4
173+
:board: lpcxpresso54114/lpc54114/m4
174174
:goals: flash
175175

176176
Open a serial terminal, reset the board (press the SW4 button), and you should
@@ -188,7 +188,7 @@ Here is an example for the :ref:`hello_world` application.
188188

189189
.. zephyr-app-commands::
190190
:zephyr-app: samples/hello_world
191-
:board: lpcxpresso54114_m4
191+
:board: lpcxpresso54114/lpc54114/m4
192192
:goals: debug
193193

194194
Open a serial terminal, step through the application in your debugger, and you

0 commit comments

Comments
 (0)