お客様の素早い設計とより早い製品化を実現する、技術情報と専門知識をご紹介します。
1
Plug It In2
Get Software3
Build, Run SDK Demos4
Createサインイン 進行状況を保存するには アカウントをお持ちでない方 アカウントを作成する。
Something went wrong! Please try again.
The FRDM-KE17Z comes loaded with a "tsi_v5_selfmode" demo that leverages the on-board touch pads. Touch the
touch pad E1
or E2
, the RGB LED (D3
) will turn on. Release the touch pad E1
or E2
, and the RGB LED (D3
) will
turn off.
Something went wrong! Please try again.
Something went wrong! Please try again.
The MCUXpresso Software Development Kit (SDK) is complimentary and includes full source code under a permissive open-source license for all hardware abstraction and peripheral driver software.
Click below to download the FRDM-KE17Z SDK.
You can also use the online SDK Builder to create a custom SDK package for the FRDM-KE17Z using the SDK builder.
Something went wrong! Please try again.
NXP offers a complimentary toolchain called MCUXpresso IDE.
No problem! The MCUXpresso SDK includes support for other tools such as IAR , Keil and command-line GCC .
Something went wrong! Please try again.
Many of the example applications output data over the MCU UART so you'll want to make sure that the driver for the board's virtual COM port is installed. Before you run the driver installer, you must have the board plugged in to your PC.
With the serial port driver installed, run your favorite terminal application to view the serial output from the MCU's UART. Configure the terminal to 115,200 baud rate, 8 data bits, no parity and 1 stop bit. To determine the port number of the FRDM-KE17Z's virtual COM port, open the device manager and look under the "Ports" group.
Not sure how to use a terminal application? Try one of these tutorials: Tera Term Tutorial, PuTTY Tutorial.
Something went wrong! Please try again.
Something went wrong! Please try again.
The MCUXpresso SDK comes with a long list of demo applications and driver examples. To see what's
available, browse to the SDK boards folder of your SDK installation and select your board, the FRDM-KE17Z:
<SDK_Install_Directory>/boards/frdmke17z
.
To learn more about specific example code, open the readme.txt file in an example’s directory.
Something went wrong! Please try again.
If one or more of the demo applications or driver examples sounds interesting, you're probably wanting to know how you can build and debug yourself. The Getting Started with MCUXpresso SDK guide provides easy, step-by-step instructions on how to configure, build, and debug demos for all toolchains supported by the SDK.
Use the guide below to learn how to open, build and debug an example application using the MCUXpresso IDE.
Note: GCC Arm Embedded 8.2.1 is used as an example in this document. The latest GCC version for this package is as described in the MCUXpresso SDK Release Notes.
This section describes the steps required to configure MCUXpresso IDE to build, run and debug example applications. The hello_world demo application targeted for the FRDM-KE17Z hardware platform is used as an example, though these steps can be applied to any example application in the MCUXpresso SDK.
Every time MCUXpresso IDE launches, it prompts the user to select a workspace location. MCUXpresso IDE is built on top of Eclipse which uses workspaces to store information about its current configuration, and in some use cases, source files for the projects are in the workspace. The location of the workspace can be anywhere, but it is recommended that the workspace be located outside of the MCUXpresso SDK tree.
To build an example application, follow these steps.
Figure 1. Install an SDK.
Figure 2. Import an SDK Example.
Figure 3. Select FRDM-KE17Z Board.
Figure 4. Select 'hello_world'.
Figure 5. Select "Redlib: Use floating point version of printf".
For more information on debug probe support in the MCUXpresso IDE, see Which debug probes are supported by LPCXpresso IDE with which MCUs? .
To download and run the application, perform the following steps:
Note: Depending on your board, reference BOARD_DEBUG_UART_BAUDRATE
variable
in "board.h" file.
Figure 6. Terminal (PuTTY) Configurations.
Figure 7. Debug hello_world case.
Note: For any future debug sessions, the stored probe selection is automatically used, unless the probe cannot be found.
Figure 8. Attached Probes: Debug Emulator Selection.
Figure 9. Stop at main() when Running Debugging.
Figure 10. Resume button.
Figure 11. Text Display of the hello_world Demo.
This section describes the steps required to build, run, and debug example applications provided in the MCUXpresso SDK.
Perform the following steps to build the 'hello_world' example application.
Open the desired demo application workspace. Most example application workspace files can be located using the following path:
<install_dir>/boards/<board_name>/<example_type>/<application_name>/iar
Using the FRDM-KE17Z Freedom hardware platform as an example, the 'hello_world' workspace is located in:
<install_dir>frdmke17z/demo_apps/hello_world/iar/hello_world.eww
Other example applications may have additional folders in their path
Figure 1. Demo Build Target Selection.
Figure 2. Build the Demo Application.
To download and run the application, perform these steps:
Note: Depending on your board, reference BOARD_DEBUG_UART_BAUDRATE
variable
in "board.h" file.
Figure 3. Terminal (PuTTY) configuration.
Figure 4. Download and Debug button.
Figure 5. Stop at main() when Running Debugging.
Figure 6. Go Button.
Figure 7. Text Display of the hello_world Demo.
This section describes the steps required to build, run, and debug example applications provided in the MCUXpresso SDK.
The 'hello_world' demo application targeted for the FRDM-KE17Z Freedom hardware platform is used as an example, although these steps can be applied to any demo or example application in the MCUXpresso SDK.
After the MDK tools are installed, Cortex® Microcontroller Software Interface Standard (CMSIS) device packs must be installed to fully support the device from a debug perspective. These packs include things such as memory map information, register definitions and flash programming algorithms. Follow these steps to install the appropriate CMSIS pack.
Figure 1. Launch the Pack Installer.
Open the desired example application workspace in:
<install_dir>/boards/<board_name>/<example_type>/<application_name>/mdk
The workspace file is named <application_name>.uvmpw. For this specific example, the actual path is:
<install_dir>/boards/frdmke17z/demo_apps/hello_world/mdk/hello_world.uvmpw
Figure 2. Build the Demo.
To download and run the application, perform these steps:
Note: Depending on your board, reference BOARD_DEBUG_UART_BAUDRATE
variable
in "board.h" file.
Figure 3. Terminal (PuTTY) configurations.
Figure 4. Download Button.
Figure 5. Stop at main() when run debugging.
Figure 6. Go Button.
Figure 7. Text Display of the hello_world Demo.
This section describes the steps to configure the command line Arm GCC tools to build, run, and debug demo applications and necessary driver libraries provided in the MCUXpresso SDK. The hello_world demo application is targeted for the FRDM-KE17Z Freedom hardware platform which is used as an example.
Note: GCC Arm Embedded 8.2.1 is used as an example in this document. The latest GCC version for this package is as described in the MCUXpresso SDK Release Notes.
This section contains the steps to install the necessary components required to build and run an MCUXpresso SDK demo application with the Arm GCC Toolchain, as supported by the MCUXpresso SDK. There are many ways to use Arm GCC tools, but this example focuses on a Windows operating system environment.
Download and run the installer from GNU Arm Embedded Toolchain . This is the actual toolset (in other words, compiler, linker, and so on). The GCC Toolchain should correspond to the latest supported version, as described in the MCUXpresso SDK Release Notes.
The Minimalist GNU for Windows (MinGW) development tools provide a set of tools that are not dependent on third-party C-Runtime DLLs (such as Cygwin). The build environment used by the MCUXpresso SDK does not use the MinGW build tools, but does leverage the base install of both MinGW and MSYS. MSYS provides a basic shell with a Unix-like interface and tools.
Note: The installation path cannot contain any spaces.
Figure 1. Set Up MinGW and MSYS.
Figure 2. Complete MinGW and MSYS Installation.
Add the appropriate item to the Windows operating system path environment variable. It can be found under Control Panel → System and Security → System → Advanced System Settings in the "Environment Variables..." section. The path is:
<mingw_install_dir>\bin
Assuming the default installation path, C:\MinGW, an example is as shown in Figure 3. If the path is not set correctly, the toolchain will not work
Note: If you have "C:\MinGW\msys\x.x\bin" in your PATH variable (as required by Kinetis SDK 1.0.0), remove it to ensure that the new GCC build system works correctly.
Figure 3. Add Path to Systems Environment.
Create a new system environment variable and name it ARMGCC_DIR. The value of this variable should point to the Arm GCC Embedded tool chain installation path, which, for this example, is:
C:\Program Files (x86)\GNU Tools Arm Embedded\8 2018-q4-major
See the installation folder of the GNU Arm GCC Embedded tools for the exact path name of your installation.
for %I in (.) do echo %~sI
in above path
Figure 4. Convert path to short path.
Figure 5. Add ARMGCC_DIR System Variable.
Figure 6. Install CMake.
To build an example application, follow these steps.
Figure 7. Launch Command Prompt.
Change the directory to the example application project directory which has a path similar to the following:
<install_dir>/boards/<board_name>/<example_type>/<application_name>/armgcc
For this example, the exact path is:
<install_dir>/boards/frdmke17z/demo_apps/hello_world/armgcc
Note: To change directories, use the cd command.
This section describes steps to run a demo application using J-Link GDB Server application.
FRDM-KE17Z supports OpenSDA. The OpenSDA interface on your board is pre-programmed with the J-Link OpenSDA firmware.
Follow these steps to download and run the demo applications:
Note: Depending on your board, reference BOARD_DEBUG_UART_BAUDRATE
variable
in "board.h" file.
Figure 8. Terminal (PuTTY) configurations.
Figure 9. SEGGER J-Link GDB Server Screen After Successful Connection.
Figure 10. Launch Command Prompt.
Change to the directory that contains the example application output. The output can be found in using one of these paths, depending on the build target selected:
<install_dir>/boards/<board_name>/<example_type>/<application_name>/armgcc/debug
<install_dir>/boards/<board_name>/<example_type>/<application_name>/armgcc/release
For this example, the path is:
<install_dir>/boards/frdmke17z/demo_apps/hello_world/armgcc/debug
Figure 11. Run arm-none-eabi-gdb.
Figure 12. Text display of the hello_world demo.
Something went wrong! Please try again.
Something went wrong! Please try again.
Let's create our own project and make a simple SDK-based application. NXP provides MCUXpresso Config Tools, which is an intuitive, simple project generation utility that allows creation of custom projects based on the MCUXpresso SDK.
Something went wrong! Please try again.
Open the utility by clicking on the MCUXpresso Config Tools executable for your computer's operating system. Select "Create a new configuration and project based on an SDK example or hello world project" and click "Next" to create a new project.
Then, select your FRDM-KE17Z SDK installation path. Select the toolchain you need, the SDK example to clone, the base project directory (workspace) for your new project and name your new project. Click on the "Finish".
Something went wrong! Please try again.
Your new project will be located in base project directory (workspace). Use the toolchain of your choice to open the project and start your code design.
Something went wrong! Please try again.
Tera Term is a very popular open source terminal emulation application. This program can be used to display information sent from your NXP development platform's virtual serial port.
PuTTY is a popular terminal emulation application. This program can be used to display information sent from your NXP development platform's virtual serial port.
Connect with other engineers and get expert advice on designing with Kinetis MCUs and MCUXpresso Software and Tools. Go to Support or join the community discussion in one of our dedicated communities:
Installing Software for the FRDM-KE17Z
Jump Start Your Design with the MCUXpresso SDK
Install Your Toolchain
PC Configuration
Build and Run SDK Demos on the FRDM-KE17Z
Explore the SDK Example Code
Build, Run and Debug SDK Examples