boards: nxp: convert lpcxpresso55s69 to hwmv2
Convert lpcxpresso55s69 Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
# LPCXpresso55S69 board
|
||||
|
||||
# Copyright (c) 2019, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_LPCXPRESSO55S69_CPU0
|
||||
bool "NXP LPCXPRESSO-55S69 [CPU0]"
|
||||
depends on SOC_SERIES_LPC55XXX
|
||||
select SOC_PART_NUMBER_LPC55S69JBD100
|
||||
|
||||
config BOARD_LPCXPRESSO55S69_CPU1
|
||||
bool "NXP LPCXPRESSO-55S69 [CPU1]"
|
||||
depends on SOC_SERIES_LPC55XXX
|
||||
select SOC_PART_NUMBER_LPC55S69JBD100
|
||||
@@ -1,28 +0,0 @@
|
||||
#
|
||||
# Copyright 2019, 2023 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
|
||||
## DAP Link implementation in pyocd is underway,
|
||||
## until then jlink can be used or copy image to storage
|
||||
|
||||
if(CONFIG_BOARD_LPCXPRESSO55S69_CPU0 OR CONFIG_SECOND_CORE_MCUX)
|
||||
board_runner_args(jlink "--device=LPC55S69_M33_0")
|
||||
board_runner_args(linkserver "--device=LPC55S69:LPCXpresso55S69")
|
||||
board_runner_args(linkserver "--override=/device/memory/0/flash-driver=LPC55xx_S.cfx")
|
||||
board_runner_args(linkserver "--override=/device/memory/0/location=0x10000000")
|
||||
elseif(CONFIG_BOARD_LPCXPRESSO55S69_CPU1)
|
||||
board_runner_args(jlink "--device=LPC55S69_M33_1")
|
||||
endif()
|
||||
|
||||
board_runner_args(pyocd "--target=lpc55s69")
|
||||
|
||||
if(CONFIG_BUILD_WITH_TFM)
|
||||
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
|
||||
endif()
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
|
||||
@@ -1,13 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2019, NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
CONFIG_SOC_SERIES_LPC55XXX=y
|
||||
CONFIG_SOC_LPC55S69_CPU1=y
|
||||
CONFIG_BOARD_LPCXPRESSO55S69_CPU1=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_PINCTRL=y
|
||||
|
||||
CONFIG_RUNTIME_NMI=y
|
||||
@@ -1,4 +1,6 @@
|
||||
# Copyright (c) 2020, Seagate
|
||||
# Copyright 2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_LPCXPRESSO11U68
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
# LPCXpresso55S69 board
|
||||
|
||||
# Copyright (c) 2019, NXP
|
||||
# Copyright 2019,2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1
|
||||
|
||||
config BOARD
|
||||
default "lpcxpresso55S69_cpu0" if BOARD_LPCXPRESSO55S69_CPU0
|
||||
default "lpcxpresso55S69_cpu1" if BOARD_LPCXPRESSO55S69_CPU1
|
||||
if BOARD_LPCXPRESSO55S69
|
||||
|
||||
if FXOS8700
|
||||
|
||||
@@ -36,9 +30,9 @@ DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
|
||||
|
||||
config FLASH_LOAD_SIZE
|
||||
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
|
||||
depends on BOARD_LPCXPRESSO55S69_CPU0 && TRUSTED_EXECUTION_SECURE
|
||||
depends on BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 && TRUSTED_EXECUTION_SECURE
|
||||
|
||||
if TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_CPU1
|
||||
if TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_LPC55S69_CPU1
|
||||
|
||||
config FLASH_LOAD_OFFSET
|
||||
default 0x50000 if (!TFM_BL2 && BUILD_WITH_TFM)
|
||||
@@ -48,7 +42,7 @@ config FLASH_LOAD_SIZE
|
||||
default 0x40000 if (!TFM_BL2 && BUILD_WITH_TFM)
|
||||
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
|
||||
|
||||
endif # TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_CPU1
|
||||
endif # TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_LPC55S69_CPU1
|
||||
|
||||
choice TFM_PROFILE_TYPE
|
||||
depends on BUILD_WITH_TFM
|
||||
@@ -62,4 +56,4 @@ choice MCUBOOT_BOOTLOADER_MODE
|
||||
endchoice
|
||||
endif #BOOTLOADER_MCUBOOT
|
||||
|
||||
endif # BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1
|
||||
endif # BOARD_LPCXPRESSO55S69
|
||||
8
boards/nxp/lpcxpresso55s69/Kconfig.lpcxpresso55s69
Normal file
8
boards/nxp/lpcxpresso55s69/Kconfig.lpcxpresso55s69
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_LPCXPRESSO55S69
|
||||
select SOC_LPC55S69_CPU0 if BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 || \
|
||||
BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS
|
||||
select SOC_LPC55S69_CPU1 if BOARD_LPCXPRESSO55S69_LPC55S69_CPU1
|
||||
select SOC_PART_NUMBER_LPC55S69JBD100
|
||||
30
boards/nxp/lpcxpresso55s69/board.cmake
Normal file
30
boards/nxp/lpcxpresso55s69/board.cmake
Normal file
@@ -0,0 +1,30 @@
|
||||
#
|
||||
# Copyright 2019, 2023 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
|
||||
## DAP Link implementation in pyocd is underway,
|
||||
## until then jlink can be used or copy image to storage
|
||||
|
||||
if(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
|
||||
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS OR
|
||||
CONFIG_SECOND_CORE_MCUX)
|
||||
board_runner_args(jlink "--device=LPC55S69_M33_0")
|
||||
board_runner_args(linkserver "--device=LPC55S69:LPCXpresso55S69")
|
||||
board_runner_args(linkserver "--override=/device/memory/0/flash-driver=LPC55xx_S.cfx")
|
||||
board_runner_args(linkserver "--override=/device/memory/0/location=0x10000000")
|
||||
elseif(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1)
|
||||
board_runner_args(jlink "--device=LPC55S69_M33_1")
|
||||
endif()
|
||||
|
||||
board_runner_args(pyocd "--target=lpc55s69")
|
||||
|
||||
if(CONFIG_BUILD_WITH_TFM)
|
||||
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
|
||||
endif()
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
|
||||
8
boards/nxp/lpcxpresso55s69/board.yml
Normal file
8
boards/nxp/lpcxpresso55s69/board.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
board:
|
||||
name: lpcxpresso55s69
|
||||
vendor: nxp
|
||||
socs:
|
||||
- name: lpc55s69
|
||||
variants:
|
||||
- name: "ns"
|
||||
cpucluster: 'cpu0'
|
||||
@@ -108,13 +108,13 @@ Targets available
|
||||
==================
|
||||
|
||||
The default configuration file
|
||||
``boards/arm/lpcxpresso55s69/lpcxpresso55s69_cpu0_defconfig``
|
||||
``boards/arm/lpcxpresso55s69/lpcxpresso55s69_lpc55s69_cpu0_defconfig``
|
||||
only enables the first core.
|
||||
CPU0 is the only target that can run standalone.
|
||||
|
||||
- *lpcxpresso55s69_cpu0* secure (S) address space for CPU0
|
||||
- *lpcxpresso55s69_ns* non-secure (NS) address space for CPU0
|
||||
- *lpcxpresso55s69_cpu1* CPU1 target, no security extensions
|
||||
- *lpcxpresso55s69/lpc55s69/cpu0* secure (S) address space for CPU0
|
||||
- *lpcxpresso55s69/lpc55s69/cpu0/ns* non-secure (NS) address space for CPU0
|
||||
- *lpcxpresso55s69/lpc55s69/cpu1* CPU1 target, no security extensions
|
||||
|
||||
NS target for CPU0 does not work correctly without a secure image to configure
|
||||
the system, then hand execution over to the NS environment. To enable a secure
|
||||
@@ -326,7 +326,7 @@ Here is an example for the :ref:`hello_world` application. This example uses the
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: lpcxpresso55s69_cpu0
|
||||
:board: lpcxpresso55s69/lpc55s69/cpu0
|
||||
:goals: flash
|
||||
|
||||
Open a serial terminal, reset the board (press the RESET button), and you should
|
||||
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
12
boards/nxp/lpcxpresso55s69/lpcxpresso55s69_defconfig
Normal file
12
boards/nxp/lpcxpresso55s69/lpcxpresso55s69_defconfig
Normal file
@@ -0,0 +1,12 @@
|
||||
#
|
||||
# Copyright 2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Common Kconfigs for all board targets
|
||||
#
|
||||
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_PINCTRL=y
|
||||
|
||||
CONFIG_RUNTIME_NMI=y
|
||||
@@ -1,10 +1,10 @@
|
||||
#
|
||||
# Copyright (c) 2019, NXP
|
||||
# Copyright 2019, 2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
identifier: lpcxpresso55s69_cpu0
|
||||
identifier: lpcxpresso55s69/lpc55s69/cpu0
|
||||
name: NXP LPCXpresso55S69 (CPU0)
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -1,23 +1,16 @@
|
||||
#
|
||||
# Copyright (c) 2019, NXP
|
||||
# Copyright 2019,2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
CONFIG_SOC_SERIES_LPC55XXX=y
|
||||
CONFIG_SOC_LPC55S69_CPU0=y
|
||||
CONFIG_BOARD_LPCXPRESSO55S69_CPU0=y
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_ARM_MPU=y
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
CONFIG_PINCTRL=y
|
||||
|
||||
# Enable TrustZone-M
|
||||
CONFIG_TRUSTED_EXECUTION_SECURE=y
|
||||
CONFIG_ARM_TRUSTZONE_M=y
|
||||
|
||||
CONFIG_RUNTIME_NMI=y
|
||||
@@ -1,10 +1,10 @@
|
||||
#
|
||||
# Copyright (c) 2019, NXP
|
||||
# Copyright 2019, 2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
identifier: lpcxpresso55s69_ns
|
||||
identifier: lpcxpresso55s69/lpc55s69/cpu0/ns
|
||||
name: NXP LPCXpresso55S69 (Non-Secure)
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -1,25 +1,18 @@
|
||||
#
|
||||
# Copyright (c) 2019, NXP
|
||||
# Copyright 2019,2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
CONFIG_SOC_SERIES_LPC55XXX=y
|
||||
CONFIG_SOC_LPC55S69_CPU0=y
|
||||
CONFIG_BOARD_LPCXPRESSO55S69_CPU0=y
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_PINCTRL=y
|
||||
|
||||
# TFM sets up MPU_NS, can't correctly change this configuration yet
|
||||
CONFIG_ARM_MPU=n
|
||||
|
||||
# Enable TrustZone-M
|
||||
CONFIG_TRUSTED_EXECUTION_NONSECURE=y
|
||||
CONFIG_RUNTIME_NMI=y
|
||||
CONFIG_ARM_TRUSTZONE_M=y
|
||||
CONFIG_BUILD_WITH_TFM=y
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#
|
||||
# Copyright (c) 2019, NXP
|
||||
# Copyright 2019, 2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
identifier: lpcxpresso55s69_cpu1
|
||||
identifier: lpcxpresso55s69/lpc55s69/cpu1
|
||||
name: NXP LPCXpresso55S69 (CPU1)
|
||||
type: mcu
|
||||
arch: arm
|
||||
Reference in New Issue
Block a user