1、双击 Keil uVision5 快捷方式,运行 Keil uVision51、新建工程Project-New uVision Project.选择文件夹(自定义) ,输入文件名(例 Test01)保存2、选择 CPU 型号展开Freescale,选择K60 Series下MK60DN512xxx10OK3、选择运行环境勾选Device-StartupOK4、设置属性Project-Options for TargetTarget1. ALT+F7或选中 Target1 后,鼠标右键,选择Options for TargetTarget1. ALT+F7Target 属性页,根据开发板上硬件,
2、填入相应晶体频率如图红框所示C/C+属性页,选择Include Paths后.按纽,如图红框如示选择工具栏上New/Insert按纽, ,如图红框如示选择C:Keil_v5ARMPackARMCMSIS4.2.0CMSISInclude目录OKDebug 属性页,选择 PEMicro Debugger 调试器,如图红框所示OK5、例程展开Target1选择Source Group1,单击鼠标右键,选择Add New Item to Source Group 1选择 C File(.c),选择文件夹路径(自定义) ,填写文件名 Test01加入如下代码#include “MK60D10.h“void delay(void)int i,j;for(i=0;iSCGC5 |= (0x1fPCR28 |= (1PCR29 |= (1PDDR |= (0x03PDOR |= (0x01PTOR |= 1Build Target F7或单击编译工具栏中 Build 图标修改并编译至 0 Error(s), 0 Warning(s).7、调试Debug-Start/Stop Debug Session Ctrl+F5或单击调试工具栏中 Start/Stop Debug Session 图标Connect ( Reset)