boards: nuvoton: numaker_pfm: Split into 2 boards

Splits up a wrongly unified board into 2 boards

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-27 10:49:33 +00:00
committed by Carles Cufi
parent 7cf4ff43a1
commit 8f20ea6e93
23 changed files with 39 additions and 28 deletions

View File

@@ -1,15 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_BOARD_NUMAKER_PFM_M467)
board_runner_args(pyocd "--target=m467hjhae")
endif()
board_runner_args(nulink "-f")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nulink.board.cmake)
if(CONFIG_BOARD_NUMAKER_PFM_M467)
include(${ZEPHYR_BASE}/boards/common/canopen.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
endif()

View File

@@ -4,5 +4,5 @@
#
# Copyright (c) 2023 Nuvoton Technology Corporation.
config BOARD_NUMAKER_PFM
select SOC_FLASH_NUMAKER if BOARD_NUMAKER_PFM_M467
config BOARD_NUMAKER_PFM_M467
select SOC_FLASH_NUMAKER

View File

@@ -4,6 +4,5 @@
#
# Copyright (c) 2023 Nuvoton Technology Corporation.
config BOARD_NUMAKER_PFM
select SOC_M467 if BOARD_NUMAKER_PFM_M467
select SOC_M487 if BOARD_NUMAKER_PFM_M487
config BOARD_NUMAKER_PFM_M467
select SOC_M467

View File

@@ -0,0 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(pyocd "--target=m467hjhae")
board_runner_args(nulink "-f")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nulink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/canopen.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)

View File

@@ -1,6 +1,5 @@
board:
name: numaker_pfm
name: numaker_pfm_m467
vendor: Nuvoton
socs:
- name: m467
- name: m487

View File

@@ -75,7 +75,7 @@ run a serial host program to connect with your board. For example:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: numaker_pfm/m467
:board: numaker_pfm_m467
:goals: flash
Debugging
@@ -85,7 +85,7 @@ Here is an example for the :ref:`hello_world` application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: numaker_pfm/m467
:board: numaker_pfm_m467
:goals: debug
Step through the application in your debugger.

View File

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View File

@@ -1,7 +1,7 @@
# Copyright (c) 2023 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
identifier: numaker_pfm/m467
identifier: numaker_pfm_m467
name: NUVOTON NUMAKER-PFM-M467 Kit
type: mcu
arch: arm

View File

@@ -0,0 +1,8 @@
# SPDX-License-Identifier: Apache-2.0
#
# Nuvoton PFM M467 board configuration
#
# Copyright (c) 2023 Nuvoton Technology Corporation.
config BOARD_NUMAKER_PFM_M487
select SOC_M487

View File

@@ -0,0 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(nulink "-f")
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nulink.board.cmake)

View File

@@ -0,0 +1,5 @@
board:
name: numaker_pfm_m487
vendor: Nuvoton
socs:
- name: m487

View File

@@ -74,7 +74,7 @@ run a serial host program to connect with your board. For example:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: numaker_pfm/m487
:board: numaker_pfm_m487
:goals: flash
Debugging
@@ -84,7 +84,7 @@ Here is an example for the :ref:`hello_world` application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: numaker_pfm/m487
:board: numaker_pfm_m487
:goals: debug
Step through the application in your debugger.

View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

View File

@@ -1,4 +1,4 @@
identifier: numaker_pfm/m487
identifier: numaker_pfm_m487
name: NUVOTON-PFM-M487
type: mcu
arch: arm