NXP Semiconductors
KTFRDM34933EVBUG
FRDM-34933EVB evaluation board
KTFRDM34933EVBUG
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2017. All rights reserved.
User guide
Rev. 1.0 — 15 March 2017
11 / 39
In order to perform the demonstration example, first set up the evaluation board
hardware and software as follows:
1. Setup the FRDM-KL25Z to accept code from the mbed online compiler. mbed is a
developer site for ARM based microcontrollers. The instructions are at mbed.org
(
https://mbed.org/handbook/mbed-FRDM-KL25Z-Upgrade
). Switch to the other USB
port (programming port) on the FRDM-KL25Z, and back after you load the project.
2. Go to the NXP page on mbed.org and look for the repository named "
LVHB Stepper
Motor Drive
" (
https://developer.mbed.org/teams/NXP/code/LVHB-Stepper-Motor-
Drive-v2
).
3. Import main.cpp source code into compiler.
4. Save the compiled code on your local drive, and then drag and drop it onto the mbed
drive (which is the FRDM-KL25Z) while connected to the programming OpenSDA
port. Move the USB connector back to the other USB port on the FRDM-KL25Z.
Note: Create a user before you can download the code. Connect the board to the
FRDM-KL25Z. This is best accomplished by soldering the female connectors to the
FRDM-KL25Z, and then connecting to the male pins provided on the board.
5. Ready the computer and install the Stepper Motor Driver GUI software.
6. Attach DC power supply (without turning on the power) to the VM and GND terminals.
7. Attach one set of coils of the stepper motor to the OUT1A and OUT1B output
terminals. Attach the other phase coil of the stepper motor to terminals OUT2A and
OUT2B. Launch the Stepper Motor Driver GUI software.
8. Make sure the GUI recognizes the FRDM-KL25Z. This is determined by seeing the
hex Vendor ID (0x15A2), and Part ID (0x138) under USB connection in the upper left-
hand corner of the GUI. If the GUI does not recognize the FRDM-KL25Z, you need to
disconnect and reconnect the USB cable to the FRDM-KL25Z.
9. Turn on the DC power supply.
10.Select
Enable Target
on the GUI. The demo is now ready to run.
11.Select Direction, Step Mode, and Acceleration Enabled.
Acceleration enabled controls motor speed slowly increasing from stop to maximum
number of steps selected by Step Time slider control.
12.Click
Run
to run the motor. Notice that some options of the GUI are disabled while
the motor is running. To make changes, click
Stop
on the GUI, make the desired
changes, and then click
Run
on the GUI to continue.
13.When finished, click
Enable Target
on the GUI, and then
Quit
. Turn off DC power
supply. Remove USB cable.
6.3 Installing CodeWarrior
This procedure explains how to obtain and install the latest version of CodeWarrior
(version 10.6 in this guide).
Note:
The sample software in this kit requires CodeWarrior 10.6 or newer. The
component and some examples in the component package are intended for Kinetis
Design Studio 3.0.0. If you have CodeWarrior 10.6 and Kinetis Design Studio 3.0.0
already installed on your system, skip this section.
1. Obtain the latest CodeWarrior installer file from the NXP CodeWarrior website:
http://
www.nxp.com/CODEWARRIOR
.
2. Run the executable file and follow the instructions.
3. In the Choose Components window, select the Kinetis component, and then click
Next
to complete the installation.