boards: arm: cy8ckit_062_ble: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-05 15:11:13 +00:00
committed by Carles Cufi
parent af243274c2
commit 2bebd7298c
22 changed files with 37 additions and 75 deletions

View File

@@ -1,13 +0,0 @@
# PSoC6 BLE Pioneer Kit configuration
# Copyright (c) 2018 Cypress
# Copyright (c) 2020 ATL Electronics
# SPDX-License-Identifier: Apache-2.0
config BOARD_CY8CKIT_062_BLE_M0
bool "PSoC6 BLE Pioneer Kit [M0 CPU0]"
depends on SOC_PART_NUMBER_CY8C6347BZI_BLD53
config BOARD_CY8CKIT_062_BLE_M4
bool "PSoC6 BLE Pioneer Kit [M4 CPU1]"
depends on SOC_PART_NUMBER_CY8C6347BZI_BLD53

View File

@@ -1,15 +0,0 @@
# PSoC6 BLE Pioneer Kit configuration
# Copyright (c) 2018 Cypress
# Copyright (c) 2020 ATL Electronics
# SPDX-License-Identifier: Apache-2.0
if BOARD_CY8CKIT_062_BLE_M0 || \
BOARD_CY8CKIT_062_BLE_M4
config BOARD
default "cy8ckit_062_ble_m0" if BOARD_CY8CKIT_062_BLE_M0
default "cy8ckit_062_ble_m4" if BOARD_CY8CKIT_062_BLE_M4
endif # BOARD_CY8CKIT_062_BLE_M0 || \
# BOARD_CY8CKIT_062_BLE_M4

View File

@@ -1,5 +0,0 @@
#
# Copyright (c) 2021, ATL Electronics
#
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,5 +0,0 @@
#
# Copyright (c) 2021, ATL Electronics
#
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,5 +0,0 @@
#
# Copyright (c) 2021, ATL Electronics
#
# SPDX-License-Identifier: Apache-2.0
#

View File

@@ -1,7 +0,0 @@
#
# Copyright (c) 2021, ATL Electronics
#
# SPDX-License-Identifier: Apache-2.0
#
board_check_revision(FORMAT MAJOR.MINOR.PATCH DEFAULT_REVISION 0.0.0)

View File

@@ -0,0 +1,10 @@
# PSoC6 BLE Pioneer Kit configuration
# Copyright (c) 2018 Cypress
# Copyright (c) 2020 ATL Electronics
# SPDX-License-Identifier: Apache-2.0
config BOARD_CY8CKIT_062_BLE
select SOC_PART_NUMBER_CY8C6347BZI_BLD53
select SOC_CY8C6347_M0 if BOARD_CY8CKIT_062_BLE_CY8C6347_M0
select SOC_CY8C6347_M4 if BOARD_CY8CKIT_062_BLE_CY8C6347_M4

View File

@@ -5,11 +5,10 @@
# SPDX-License-Identifier: Apache-2.0
#
if(CONFIG_BOARD_CY8CKIT_062_BLE_M0)
board_runner_args(jlink "--device=CY8C6xx7_CM0p" "--speed=2000")
endif()
if(CONFIG_BOARD_CY8CKIT_062_BLE_M4)
board_runner_args(jlink "--device=CY8C6xx7_CM4" "--speed=2000")
if(CONFIG_BOARD_CY8CKIT_062_BLE_CY8C6347_M0)
board_runner_args(jlink "--device=CY8C6xx7_CM0p" "--speed=2000")
elseif(CONFIG_BOARD_CY8CKIT_062_BLE_CY8C6347_M4)
board_runner_args(jlink "--device=CY8C6xx7_CM4" "--speed=2000")
endif()
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

View File

@@ -0,0 +1,11 @@
board:
name: cy8ckit_062_ble
vendor: Cypress
revision:
format: "major.minor.patch"
default: "0.0.0"
revisions:
- name: "0.0.0"
- name: "1.0.0"
socs:
- name: cy8c6347

View File

@@ -5,7 +5,7 @@
# SPDX-License-Identifier: Apache-2.0
#
identifier: cy8ckit_062_ble_m0
identifier: cy8ckit_062_ble/cy8c6347/m0
name: Cypress PSoC6 BLE Pioneer Kit (M0)
type: mcu
arch: arm

View File

@@ -5,10 +5,6 @@
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SOC_SERIES_PSOC63=y
CONFIG_SOC_PSOC6_M4=y
CONFIG_SOC_PART_NUMBER_CY8C6347BZI_BLD53=y
CONFIG_BOARD_CY8CKIT_062_BLE_M4=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_BUILD_OUTPUT_HEX=y

View File

@@ -5,7 +5,7 @@
# SPDX-License-Identifier: Apache-2.0
#
identifier: cy8ckit_062_ble_m4
identifier: cy8ckit_062_ble/cy8c6347/m4
name: Cypress PSoC6 BLE Pioneer Kit (M4)
type: mcu
arch: arm

View File

@@ -5,10 +5,6 @@
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SOC_SERIES_PSOC63=y
CONFIG_SOC_PSOC6_M0=y
CONFIG_SOC_PART_NUMBER_CY8C6347BZI_BLD53=y
CONFIG_BOARD_CY8CKIT_062_BLE_M0=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_BUILD_OUTPUT_HEX=y

View File

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 117 KiB

View File

@@ -110,9 +110,9 @@ The board configuration supports the following hardware features:
The default configurations can be found in the Kconfig
:zephyr_file:`boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_m0_defconfig` for
:zephyr_file:`boards/cypress/cy8ckit_062_ble/cy8ckit_062_ble_cy8c6347_m0_defconfig` for
Cortex-M0+ and on the Kconfig
:zephyr_file:`boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_m4_defconfig` for
:zephyr_file:`boards/cypress/cy8ckit_062_ble/cy8ckit_062_ble_cy8c6347_m4_defconfig` for
Cortex-M4
System Clock
@@ -158,7 +158,7 @@ Cy_WDT_Disable().
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: cy8ckit_062_ble_m0
:board: cy8ckit_062_ble/cy8c6347/m0
:goals: build
:compact:
@@ -181,11 +181,11 @@ Cy_WDT_Disable().
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: cy8ckit_062_ble_m0
:board: cy8ckit_062_ble/cy8c6347/m0
:goals: flash
:compact:
You should see "Hello World! cy8ckit_062_ble_m0" in your terminal.
You should see "Hello World! cy8ckit_062_ble" in your terminal.
Running on Dual Core
********************
@@ -194,7 +194,7 @@ Running on Dual Core
.. zephyr-app-commands::
:zephyr-app: samples/basic/button
:board: cy8ckit_062_ble_m4
:board: cy8ckit_062_ble/cy8c6347/m4
:goals: build
:compact:
@@ -219,7 +219,7 @@ Running on Dual Core
.. zephyr-app-commands::
:zephyr-app: samples/basic/button
:board: cy8ckit_062_ble_m4
:board: cy8ckit_062_ble/cy8c6347/m4
:goals: flash
:compact:
@@ -232,13 +232,13 @@ Running on Dual Core
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: cy8ckit_062_ble_m0
:board: cy8ckit_062_ble/cy8c6347/m0
:goals: build flash
:gen-args: -DCONFIG_SOC_PSOC6_M0_ENABLES_M4=y
:compact:
Now you can press button SW-2 and see LED-9 blink at same time you have the
"Hello World! cy8ckit_062_ble_m0" in the your terminal.
"Hello World! cy8ckit_062_ble" in the your terminal.
Board Revision
**************
@@ -253,7 +253,7 @@ are only possible after rework the board and using the revision 1.0.0.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: cy8ckit_062_ble_m0@1.0.0
:board: cy8ckit_062_ble@1.0.0/cy8c6347/m0
:goals: build
:compact: