boards: nxp: frdm_ke17z: add the board support
Added configuration file to support frdm_ke17z board Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
parent
ee3b7427df
commit
2c695f2bed
9 changed files with 348 additions and 0 deletions
7
boards/nxp/frdm_ke17z/Kconfig.frdm_ke17z
Normal file
7
boards/nxp/frdm_ke17z/Kconfig.frdm_ke17z
Normal file
|
@ -0,0 +1,7 @@
|
|||
# FRDM-KE17Z board configuration
|
||||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_FRDM_KE17Z
|
||||
select SOC_MKE17Z7
|
||||
select SOC_PART_NUMBER_MKE17Z256VLL7
|
8
boards/nxp/frdm_ke17z/board.cmake
Normal file
8
boards/nxp/frdm_ke17z/board.cmake
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
board_runner_args(linkserver "--device=MKE17Z256xxx7:FRDM-KE17Z")
|
||||
board_runner_args(jlink "--device=MKE17Z256xxx7" "--reset-after-load")
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
5
boards/nxp/frdm_ke17z/board.yml
Normal file
5
boards/nxp/frdm_ke17z/board.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
board:
|
||||
name: frdm_ke17z
|
||||
vendor: nxp
|
||||
socs:
|
||||
- name: mke17z7
|
BIN
boards/nxp/frdm_ke17z/doc/frdmke17z.webp
Normal file
BIN
boards/nxp/frdm_ke17z/doc/frdmke17z.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
198
boards/nxp/frdm_ke17z/doc/index.rst
Normal file
198
boards/nxp/frdm_ke17z/doc/index.rst
Normal file
|
@ -0,0 +1,198 @@
|
|||
.. _frdm_ke17z:
|
||||
|
||||
NXP FRDM-KE17Z
|
||||
##############
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
The FRDM-KE17Z is a development board for NXP Kinetis KE1xZ 32-bit
|
||||
MCU-based platforms. The FRDM-KE17Z contains a robust TSI module
|
||||
with up to 50 channels which makes this board highly flexible
|
||||
for touch keys. Offers options for serial
|
||||
communication, flash programming, and run-control debugging.
|
||||
|
||||
.. figure:: frdmke17z.webp
|
||||
:align: center
|
||||
:alt: FRDM-KE17Z
|
||||
|
||||
FRDM-KE17Z (Credit: NXP)
|
||||
|
||||
Hardware
|
||||
********
|
||||
|
||||
- MKE17Z256VLL7 MCU (up to 72 MHz, 256 KB flash memory, 48 KB SRAM,
|
||||
and 100 Low profile Quad Flat Package (LQFP))
|
||||
- 3.3 V or 5 V MCU operation
|
||||
- 6-axis FXOS8700CQ digital accelerometer
|
||||
- 3-axis digital angular rate gyroscope
|
||||
- One RGB LED
|
||||
- Two user push-buttons
|
||||
- Thermistor
|
||||
- Two capacitive touchpads
|
||||
- Flex I/O pin header
|
||||
|
||||
For more information about the KE1xZ SoC and the FRDM-KE17Z board, see
|
||||
these NXP reference documents:
|
||||
|
||||
- `FRDM-KE17Z Website`_
|
||||
- `FRDM-KE17Z User Guide`_
|
||||
- `FRDM-KE17Z Reference Manual`_
|
||||
- `FRDM-KE17Z Datasheet`_
|
||||
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
The frdm_ke17z board configuration supports the following hardware
|
||||
features:
|
||||
|
||||
+-----------+------------+-------------------------------------+
|
||||
| Interface | Controller | Driver/Component |
|
||||
+===========+============+=====================================+
|
||||
| NVIC | on-chip | nested vector interrupt controller |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| SYSTICK | on-chip | systick |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| PINCTRL | on-chip | pinctrl |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| GPIO | on-chip | gpio |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| UART | on-chip | uart |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
The default configuration can be found in the defconfig file:
|
||||
:zephyr_file:`boards/nxp/frdm_ke17z/frdm_ke17z_defconfig`.
|
||||
|
||||
Other hardware features are not currently supported by the port.
|
||||
|
||||
System Clock
|
||||
============
|
||||
|
||||
The KE17Z SoC is configured to run at 48 MHz using the FIRC.
|
||||
|
||||
Serial Port
|
||||
===========
|
||||
|
||||
The KE17Z SoC has three UARTs. UART0 is configured for the console.
|
||||
|
||||
Programming and Debugging
|
||||
*************************
|
||||
|
||||
Build and flash applications as usual (see :ref:`build_an_application` and
|
||||
:ref:`application_run` for more details).
|
||||
|
||||
Configuring a Debug Probe
|
||||
=========================
|
||||
|
||||
A debug probe is used for both flashing and debugging the board. This board is
|
||||
configured by default to use Linkserver.
|
||||
|
||||
Early versions of this board have an outdated version of the OpenSDA bootloader
|
||||
and require an update. Please see the `DAPLink Bootloader Update`_ page for
|
||||
instructions to update from the CMSIS-DAP bootloader to the DAPLink bootloader.
|
||||
|
||||
Option 1: Linkserver
|
||||
--------------------
|
||||
|
||||
Install the :ref:`linkserver-debug-host-tools` and make sure they are in your
|
||||
search path. LinkServer works with the default CMSIS-DAP firmware included in
|
||||
the on-board debugger.
|
||||
|
||||
Linkserver is the default for this board, ``west flash`` and ``west debug`` will
|
||||
call the linkserver runner.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
west flash
|
||||
|
||||
|
||||
External JLink: :ref:`jlink-external-debug-probe`
|
||||
-------------------------------------------------
|
||||
|
||||
Install the :ref:`jlink-debug-host-tools` and make sure they are in your search
|
||||
path.
|
||||
|
||||
Attach a J-Link 10-pin connector to J14. Check that jumpers J8 and J9 are
|
||||
**off** (they are on by default when boards ship from the factory) to ensure
|
||||
SWD signals are disconnected from the OpenSDA microcontroller.
|
||||
Use the ``-r jlink`` option with west to use the jlink runner.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
west flash -r jlink
|
||||
|
||||
Configuring a Console
|
||||
=====================
|
||||
|
||||
Regardless of your choice in debug probe, we will use the OpenSDA
|
||||
microcontroller as a usb-to-serial adapter for the serial console.
|
||||
|
||||
Connect a USB cable from your PC to J6.
|
||||
|
||||
Use the following settings with your serial terminal of choice (minicom, putty,
|
||||
etc.):
|
||||
|
||||
- Speed: 115200
|
||||
- Data: 8 bits
|
||||
- Parity: None
|
||||
- Stop bits: 1
|
||||
|
||||
Flashing
|
||||
========
|
||||
|
||||
Here is an example for the :ref:`hello_world` application.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: frdm_ke17z
|
||||
:goals: flash
|
||||
|
||||
Open a serial terminal, reset the board (press the SW1 button), and you should
|
||||
see the following message in the terminal:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
*** Booting Zephyr OS build xxxxxxxxxxxx ***
|
||||
Hello World! frdm_ke17z/mke17z7
|
||||
|
||||
Debugging
|
||||
=========
|
||||
|
||||
Here is an example for the :ref:`hello_world` application.
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: frdm_ke17z
|
||||
:goals: debug
|
||||
|
||||
Open a serial terminal, step through the application in your debugger, and you
|
||||
should see the following message in the terminal:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
*** Booting Zephyr OS build xxxxxxxxxxxx ***
|
||||
Hello World! frdm_ke17z/mke17z7
|
||||
|
||||
.. _FRDM-KE17Z Website:
|
||||
https://www.nxp.com/design/design-center/development-boards-and-designs/general-purpose-mcus/freedom-development-platform-for-72mhz-ke17z-ke13z-ke12z-mcus:FRDM-KE17Z
|
||||
|
||||
.. _FRDM-KE17Z User Guide:
|
||||
https://www.nxp.com/docs/en/user-guide/KE17ZHDG.pdf
|
||||
|
||||
.. _FRDM-KE17Z Reference Manual:
|
||||
https://www.nxp.com/docs/en/reference-manual/KE1xZP100M72SF1RM.pdf
|
||||
|
||||
.. _FRDM-KE17Z Datasheet:
|
||||
https://www.nxp.com/docs/en/data-sheet/KE1xZP100M72SF1.pdf
|
||||
|
||||
.. _DAPLink Bootloader Update:
|
||||
https://os.mbed.com/blog/entry/DAPLink-bootloader-update/
|
||||
|
||||
.. _OpenSDA DAPLink FRDM-KE17Z Firmware:
|
||||
https://www.nxp.com/design/design-center/software/sensor-toolbox/opensda-serial-and-debug-adapter:OPENSDA?tid=vanOpenSDA
|
||||
|
||||
.. _linkserver-debug-host-tools:
|
||||
https://www.nxp.com/lgfiles/updates/mcuxpresso/LinkServer_1.5.30.exe
|
||||
|
||||
.. _OpenSDA J-Link Firmware for FRDM-KE17Z:
|
||||
https://www.segger.com/downloads/jlink/OpenSDA_FRDM-KE17Z
|
20
boards/nxp/frdm_ke17z/frdm_ke17z-pinctrl.dtsi
Normal file
20
boards/nxp/frdm_ke17z/frdm_ke17z-pinctrl.dtsi
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright 2024 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
|
||||
#include <nxp/kinetis/MKE17Z256VLL7-pinctrl.h>
|
||||
|
||||
&pinctrl {
|
||||
|
||||
lpuart0_default: lpuart0_default {
|
||||
group0 {
|
||||
pinmux = <LPUART0_TX_PTB1>,
|
||||
<LPUART0_RX_PTB0>;
|
||||
drive-strength = "low";
|
||||
slew-rate = "slow";
|
||||
};
|
||||
};
|
||||
};
|
76
boards/nxp/frdm_ke17z/frdm_ke17z.dts
Normal file
76
boards/nxp/frdm_ke17z/frdm_ke17z.dts
Normal file
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
* Copyright 2024 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include <nxp/nxp_ke17z.dtsi>
|
||||
#include "frdm_ke17z-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
model = "NXP Freedom KE17Z board";
|
||||
compatible = "nxp,frdm-ke17z", "nxp,ke17z", "nxp,mke17z7";
|
||||
|
||||
aliases {
|
||||
led0 = &red_led;
|
||||
led1 = &green_led;
|
||||
led2 = &blue_led;
|
||||
sw0 = &user_button_0;
|
||||
sw1 = &user_button_1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,sram = &sram_u;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,console = &lpuart0;
|
||||
zephyr,shell-uart = &lpuart0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
red_led: led_0 {
|
||||
gpios = <&gpiod 10 GPIO_ACTIVE_LOW>;
|
||||
label = "RGB RED";
|
||||
};
|
||||
green_led: led_1 {
|
||||
gpios = <&gpiod 11 GPIO_ACTIVE_LOW>;
|
||||
label = "RGB GREEN";
|
||||
};
|
||||
blue_led: led_2 {
|
||||
gpios = <&gpiod 12 GPIO_ACTIVE_LOW>;
|
||||
label = "RGB BLUE";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
user_button_0: button_0 {
|
||||
label = "User SW2";
|
||||
gpios = <&gpiod 3 GPIO_ACTIVE_LOW>;
|
||||
zephyr,code = <INPUT_KEY_0>;
|
||||
};
|
||||
user_button_1: button_1 {
|
||||
label = "User SW3";
|
||||
gpios = <&gpioe 14 GPIO_ACTIVE_LOW>;
|
||||
zephyr,code = <INPUT_KEY_1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&lpuart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
pinctrl-0 = <&lpuart0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&gpiod {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpioe {
|
||||
status = "okay";
|
||||
};
|
14
boards/nxp/frdm_ke17z/frdm_ke17z.yaml
Normal file
14
boards/nxp/frdm_ke17z/frdm_ke17z.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
identifier: frdm_ke17z
|
||||
name: NXP FRDM-KE17Z
|
||||
type: mcu
|
||||
arch: arm
|
||||
ram: 32
|
||||
flash: 256
|
||||
toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
supported:
|
||||
- gpio
|
||||
- uart
|
||||
vendor: nxp
|
20
boards/nxp/frdm_ke17z/frdm_ke17z_defconfig
Normal file
20
boards/nxp/frdm_ke17z/frdm_ke17z_defconfig
Normal file
|
@ -0,0 +1,20 @@
|
|||
#
|
||||
# Copyright 2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Enable console
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
# GPIO Controller
|
||||
CONFIG_GPIO=y
|
||||
|
||||
# Clock Control
|
||||
CONFIG_CLOCK_CONTROL=y
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000
|
||||
|
||||
# Enable pin controller
|
||||
CONFIG_PINCTRL=y
|
Loading…
Add table
Add a link
Reference in a new issue