Documentos de Académico
Documentos de Profesional
Documentos de Cultura
TM
External Use
Agenda
External Use
TM
External Use
Libraries
(DSP, Math,
Encryption)
Application
Specific
Middleware
Stacks
(TCP/IP, USB)
Customer Application
Operating
System
Bootloader
MCU Hardware
TM
External Use
Product Features
A free of charge and unlimited IDE
for Kinetis MCUs
A basic IDE that offers robust editing,
compiling and debugging
Based on Eclipse, GCC, GDB and
other open-source technologies
Includes Processor Expert with
Kinetis SDK integration
Host operating systems:
Windows 7/8
Linux (Ubuntu, Redhat, Centos)
Mac OS X
Product Features
Standalone or Integrated for
Libraries
(DSP, Math,
Encryption)
Application
Specific
Middleware
Stacks
(TCP/IP, USB)
Customer Application
Operating
System
Bootloader
MCU Hardware
TM
External Use
Libraries
(DSP, Math,
Encryption)
Application
Specific
Middleware
Stacks
(TCP/IP, USB)
Customer Application
Operating
System
Bootloader
MCU Hardware
hardware
resources
BSD-licensed set of peripheral drivers
with easy-to-use
C-language APIs
Comprehensive HAL and driver usage
examples and sample applications for
RTOS and bare-metal.
CMSIS-CORE compatible startup and
drivers plus CMSIS-DSP library and
examples
RTOS Abstraction Layer (OSA) with
support for Freescale MQX, FreeRTOS,
Micrium uC/OS, bare-metal and more
Integrates USB and TCP/IP stacks, touch
sensing software, encryption and
math/DSP libraries, and more
Support for multiple toolchains including
GNU GCC, IAR, Keil, and Kinetis Design
Studio
TM
External Use
KDS 1.0-Beta
Kinetis K Series:
KDS 1.0 GA
Kinetis K Series:
K22FN256, 512
K65F, K66F
K22FN128
Kinetis V Series:
Kinetis L Series:
All
KL03Z
KL14Z, KL15Z,
Kinetis W Series:
KL24Z, KL25Z
KL16Z, KL26Z
Kinetis E, L & K
KDS 2.0 GA
KDS 3.0 GA
All
TBD
CW MCU 10.6.x
CW MCU 10.6
CW MCU 10.5
Kinetis E Series:
Kinetis E Series:
KE02Z
Kinetis K Series:
K21F, K22F
Kinetis V Series:
Kinetis M Series:
KV10Z
KM13Z, KM14Z,
KM32Z, KM33Z,
Kinetis K Series:
10.6 Update 1
Kinetis K Series:
K6xF new product support
K20 updates
KM34Z, KM38Z
3Q
4Q
2013
1Q
2014
2Q
3Q
1Q
4Q
2Q
2015
TM
External Use
Complimentary Solutions:
Kinetis Design Studio
TM
External Use
Trace/Profiling Support
Kinetis SDK Support
Freescale MQX Kernel /
Task Awareness
Other RTOS Support
Includes
IAR Embedded
Workbench for ARM
(EWARM)
Yes
Evaluation: 30-days
KickStart Edition: 32KB
Yes
Proprietary
Proprietary/Eclipse
Proprietary
Eclipse
Multi
IAR C-SPY
uVison
GDB
Multi
IAR icc/c++
armcc
Multi
IAR DLIB/CMSIS
ARM MicroLib
ARM Standard
newlib 1.19
newlib-nano 1.0
Evaluation: 30 days
Unlimited
Yes
Yes
Yes
Yes
Coming Soon
FreeRTOS, uC/OS
uvelOSity
FreeRTOS, uCos
FreeRTOS, uCos
TM
External Use
Additional Resources
Community
www.freescale.com/community
KDS Community + Online Experts
https://community.freescale.com/community/kinetis/kinetis-design-studio
Web
www.freescale.com/kds
Outstanding resource
Level 2 Support
www.freescale.com/kds/support
Other:
ARM mBed
ARM mBed CMSIS DAP
ARM CMSIS
Segger OpenSDA support
P&E OpenSDA support
External Use
TM
External Use
10
TM
External Use
11
FRDM-K64F is an ultra-low-cost
development platform for
Kinetis K64, K63, and K24
MCUs. this board is already
widely used among Freescale
customers.
K64 Target
TM
External Use
12
TM
External Use
13
TM
External Use
14
Before
After
Green LED ON
TM
External Use
15
Green LED ON
TM
External Use
16
TM
External Use
17
Project Definition
Hardware: FRDM-K64F
Clock Configuration
Internal PLL; set to 120MHz
Bus Clock; 60MHz
Flash Clock: 24MHz
Pin Muxing
GPIO; UART
TM
External Use
18
TM
External Use
19
TM
External Use
20
Welcome Screen
Starts
IDE
Live Links
TM
External Use
21
TM
External Use
22
TM
External Use
23
TM
External Use
24
then Finish
10
TM
External Use
25
11
Double-Left-Mouse-Click on
Project Explorer tab
TM
External Use
26
Generated_Code
Files
Project_Settings
Linker
Command File
Basic ARM start up code
Sources
User
application code
Standard main.c
Interrupt service routines are places in Events.c by
default
Double-Left-Mouse-Click on
Project Explorer tab again
TM
External Use
27
TM
External Use
28
TM
External Use
29
13
Double-Left-Mouse-Click on
Component Inspector - Cpu tab
12
TM
External Use
30
FRDM-K64F
Ethernet
TM
External Use
31
14
15
16
Select the System oscillator 0 tab
Make sure that System oscillator 0 is selected
17
TM
External Use
32
19
18
20
21
Select Advanced
Select the Clock source settings tab
Select the MCG settings tab
Scroll down
TM
External Use
33
22
Change the MCG mode to PEE
for PLL Engaged External
Change the PLL output to 120 MHz
Scroll up
23
24
TM
External Use
34
25
26
TM
External Use
35
27
28
29
30
TM
External Use
36
34
32
33
Scroll up
Select the Common settings tab
Unselect the NMI pin
Double-Left-Mouse-Click on
Component Inspector - Cpu tab
TM
External Use
37
31
TM
External Use
38
GPIO LEDs
UART
GPIO Switches
TM
External Use
39
Port Number
Function Name
Direction
PTA4
SW3
Input
PTB21
LED_BLUE
Output
PTB22
LED_RED
Output
PTC6
SW2
Input
PTE26
LED_GREEN
Output
TM
External Use
40
36
Double-Left-Mouse-Click on
Component Inspector pin_mux tab
35
TM
External Use
41
37
38
Select the GPIO tab
Find PTA : General purpose IO pin 4
Select PTA4/LLWU_P3/FTM0_CH1.NMI_b/EZP_CS_b
TM
External Use
42
39
40
Right-Mouse-Click and Select Pin Functional Properties
TM
External Use
43
41
Make sure that the Pullup is Enabled
TM
External Use
44
42
43
44
Scroll down
Find PTB : General purpose IO pin 21
Change the Signal Name to LED_BLUE
Change the Direction to Output
TM
External Use
45
46
45
47
TM
External Use
46
Scroll down
Find PTC : General purpose IO pin 6
Change the Signal Name to SW2
48
50
Right-Mouse-Click and Select Pin Functional Properties
TM
External Use
47
49
51
Make sure that the Pullup is Enabled
TM
External Use
48
52
54
53
External Use
49
57
Double-Left-Mouse-Click on
Component Inspector pin_mux tab
Scroll down
55
56
TM
External Use
50
TM
External Use
51
58
Double-Left-Mouse-Click on
Components Library tab
TM
External Use
52
62
59
60
61
Double-Left-Mouse-Click on BitIO
Select the Component Inspector Bit1 tab
TM
External Use
53
TM
External Use
54
66
Enable code generation for NegVal
64
TM
External Use
55
68
Double-Left-Mouse-Click on BitIO
67
TM
External Use
56
TM
External Use
57
72
Enable code generation for NegVal
70
TM
External Use
58
74
Double-Left-Mouse-Click on BitIO
73
TM
External Use
59
TM
External Use
60
78
Enable code generation for NegVal
76
TM
External Use
61
TM
External Use
62
81
Open Timer folder
Double-Left-Mouse-Click on TimerInt
Select the Component Inspector TI1 tab
79
80
TM
External Use
63
82
TM
External Use
64
TM
External Use
65
83
Select the Generate Processor Expert Code icon
TM
External Use
66
TM
External Use
67
84
85
TM
External Use
68
86
87
TM
External Use
69
TM
External Use
70
89
88
90
TM
External Use
71
91
92
TM
External Use
72
93
TM
External Use
73
95
96
Select the Debugger tab
Change the Interface to OpenSDA Embedded Debug - USB Port
97
98
TM
External Use
74
99
TM
External Use
75
100
101
TM
External Use
76
102
103
104
TM
External Use
77
TM
External Use
78
TM
External Use
79
Configure a UART
Setting Breakpoints
TM
External Use
80
Launch Termite
TM
External Use
81
Configure Termite
TM
External Use
82
Configure a UART
Setting Breakpoints
TM
External Use
83
GPIO LEDs
UART
GPIO Switches
TM
External Use
84
Function
Port Number
Pin Number
Uart0 TX
PTB17
62
Uart0 RX
PTB16
63
TM
External Use
85
TM
External Use
86
Double-Left-Mouse-Click on AsynchroSerial
Select the Component Inspector AS1 tab
TM
External Use
87
8
Change the Component name to Debug
TM
External Use
88
10
Verify:
the Receiver pin is PTB16/SPI1_SOUT/UART0_RX/FTM_CLKIN0/FB_AD17/EWM_IN
the Transmitter pin is PTB17/SPI1_SIN/UART0_TX/FTM_CLKIN1/FB_AD16/EWM_OUT_b
Set the Baud rate to 115200
Double-Left-Mouse-Click on Components Library tab
TM
External Use
89
Configure a UART
Setting Breakpoints
TM
External Use
90
12
Double-Left-Mouse-Click on BitIO
11
TM
External Use
91
13
TM
External Use
92
Configure a UART
Setting Breakpoints
TM
External Use
93
14
When done
Double-Left-Mouse-Click on main.c tab
15
TM
External Use
94
Configure a UART
Setting Breakpoints
TM
External Use
95
#include "Init_Config.h"
/* User includes (#include below this line is not maintained by Processor Expert) */
16
TM
External Use
96
17
uint32_t delay_count;
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization.
***/
18
for (;;)
{
if (SW2_GetVal() == 0)
{
for (delay_count = 500000; delay_count != 0; delay_count--) {}
if (SW2_GetVal() == 0)
{
printstring ("Hello World\r\n");
}
while (SW2_GetVal() == 0) {}
}
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
TM
External Use
97
Configure a UART
Setting Breakpoints
TM
External Use
98
20
19
Build
When done
Double-Left-Mouse-Click on main.c tab
TM
External Use
99
21
Directly Select the Debug icon
This will automatically select
the previous Debug Configuration
TM
External Use
100
22
TM
External Use
101
Configure a UART
Setting Breakpoints
TM
External Use
102
Press SW2
TM
External Use
103
Configure a UART
Setting Breakpoints
TM
External Use
104
Setting Breakpoints
24
23
25
TM
External Use
105
Configure a UART
Setting Breakpoints
TM
External Use
106
TM
www.Freescale.com