Professional Documents
Culture Documents
Section I: Overview
For this lab, we will setup the software needed for future labs and make sure that our board
works. A board is not needed for the first part of the lab.
1. Navigate to http://www2.keil.com/mdk5/install/.
2. Install MDK Version 5 by clicking
3. You will have to fill out a form with your contact information – you only need to fill in the
bold fields.
4. Run the installer (you may have to fill in your contact information again).
5. Once installed, the Pack Installer may open automatically. If it doesn’t, open Keil µVision5
from the desktop and then click the icon for the Pack Installer:
1. Make sure you are connected to the Internet! “ONLINE” should be displayed at the bottom
right.
2. Initially, the Software Pack ARM::CMSIS is installed by default.
3. In the panel on the left, select All Devices » NXP » K60 Series. It may take a few minutes
for the NXP section to appear.
4. Once “K60 Series” is selected, click “Install” next to Keil::Kinetis_K60_DFP in the “Device
Specific” section of the Packs panel on the right. This Software Pack will download and install
Rev. 2017-02-01. 1
ECE 3140 / CS 3240, SPRING 2017 – EMBEDDED SYSTEMS
LAB 0: µVISION SETUP AND TESTING THE BOARD
5. Expand the items in CMSIS and Device and select CORE and Startup as shown above. They
will be highlighted in green indicating there are no other files needed.
6. Click OK.
Rev. 2017-02-01. 2
ECE 3140 / CS 3240, SPRING 2017 – EMBEDDED SYSTEMS
LAB 0: µVISION SETUP AND TESTING THE BOARD
Rev. 2017-02-01. 3
ECE 3140 / CS 3240, SPRING 2017 – EMBEDDED SYSTEMS
LAB 0: µVISION SETUP AND TESTING THE BOARD
1. Select the Target Options icon. It should be at the top next to “Target 1”.
2. Click on the Linker tab. Click the button with 3 dots next to the “Scatter File” box.
3. Starting from the directory you created your project in, browse to
RTE\Device\MK64FN1M0VLL12 and select MK64FN1M0xxx12_flash.
4. Click OK to choose the linker script.
5. Click on the Debug tab. Select CMSIS-DAP Debugger in the “Use:” box.
This warning can be safely ignored, and won’t appear in projects which use C. If there are any
other errors or warnings, please fix them!
Rev. 2017-02-01. 4
ECE 3140 / CS 3240, SPRING 2017 – EMBEDDED SYSTEMS
LAB 0: µVISION SETUP AND TESTING THE BOARD
1. Navigate to https://developer.mbed.org/handbook/Windows-serial-configuration
2. Click Download latest driver.
3. Run the setup – everything should install correctly if your board is connected via USB.
5. Click on the RUN icon. It should be below the “Edit” menu. The program will run to the
breakpoint.
6. Press the Step icon to step one line in your code. Notice that the Disassembly window
points a yellow arrow to the current line.
7. Check that the Register list on the left side of the screen updates accordingly with your
instructions as you Step through.
8. You finished Lab 0! Woohoo!
TIP: In the future, to avoid entering Debug mode each time, you can also run any program after
loading it to the board by pressing the RESET (SW1) button on the board itself.
Rev. 2017-02-01. 5