IAR SYSTEMS IAR KickStart Kit TWR-K60N512-IAR User manual

FREESCALE TOWER SYSTEM
TWR-K60N512
The TWR-K60N512
microcontroller module
is part of the Freescale
Tower System, a modular
development platform that
enables rapid prototyping
and tool re-use through reconfigurable hardware.
Take your design to the next level and begin
constructing your Tower System today by visiting
freescale.com/tower.
Get to Know the TWR-K60N512-IAR
Primary
Connector
Infra-Red
General Purpose
Tower Plug-In
(TWRPI) Socket
SW3 (Reset)
Power/OSJTAG
Mini-B USB
Connector
Secondary
Connector
SW1
SW2
Touch TWRPI
Socket
LED/Touch
Buttons
E1–E4
MK60N512
VMD100
Microcontroller
MMA7660
Accelerometer
Figure 1: Front Side of TWR-K60N512 Module Not Including TWRPI.
Figure 2: Back Side of TWR-K60N512 Module.
Potentiometer
SD Card
Socket
VBAT (RTC)
Battery
Holder
Downloaded from Elcodis.com electronic components distributor

FREESCALE TOWER SYSTEM
Getting Started Guide for TWR-K60N512-IAR
Tower MCU module (TWR-K60N512)
• KinetisK60N512device(Cortex™-M4)
• Capacitivetouchpads
• Integrated,open-sourceJTAG
• SDcardslot,MMA76603-axis
accelerometer
• Towerplug-in(TWRPI)socketfor
expansion(sensors)
• TouchTWRPIsocketaddssupportfor
variouscapacitivetouchboards(key
pads,rotarydialsandsliders)
• TowerconnectivityforaccesstoUSB,
Ethernet,RS232/RS485,CAN,SPI,I²C,
flexbus
• Potentiometer,fourLEDs,two
pushbuttons, infrared port
Tower Serial module (TWR-SER)
• USBhost,deviceandOTGwith
mini-ABconnector
• RS232andRS485transceiverand
singleDB9connector
• 10/100EthernetPHYwithMIIandRMII
interface
• Eithernetconnectorwithintegrated
magnetics
• CANtransceiverwith3-pinheader
Tower Elevator module (TWR-ELEV)
• Powerregulationcircuitry,standardized
signal assignments
• Commonserialandexpansionbus
signals and side-mounting board
• RoHS,FCC/CEcertifications
Features of the Kinetis K60N512 Kit
This guide briefly describes how to get started using IAR Embedded Workbench
®
with IAR J-Link (Lite), USB-JTAG/SWD debug probe for Cortex-M to run an
example application on the Freescale Kinetis K60N512 board.
For more detailed information, see the IAR Embedded Workbench IDE User Guide,
and the C-SPY hardware debugger documentation, which can be found on the
Help menu in the IAR Embedded Workbench IDE.
Downloaded from Elcodis.com electronic components distributor

FREESCALE TOWER SYSTEM
Install the Software
Tools and Updates
a. InserttheDVD,installIAREmbedded
WorkbenchforARM
®
(Kickstartedition
recommended)andsoftwareupdates.
You’llbedirectedtoanonlineproduct
registration page to get your license
number and key.
b.ConnectyourPCandIARJ-Link
LiteusingthesuppliedUSBminicable.
Choose“Installfromaspecificlocation”
andbrowseto\ProgramFiles\IAR
Systems\Embedded Workbench 6.0
Kickstart\arm\drivers\JLink\directoryto
locatetheUSBdriver.
c. InstalltheP&EMicroKinetisTower
ToolkitfromtheDVDtoinstalltheOSJTAG
andUSB-to-SerialdriversunderSoftware.
Set Up the
K60N512 Board
a. YoumaysetuptheK60N512board
in standalone mode or in Tower System
mode together with other Tower Systems
modules,suchasTWR-SER(follow
assembly instructions found in the
TWR-ELEVmodule).
b. ConnecttheIARJ-LinkLitedebug
probe to the cortex debug connector on
theK60N512boardwiththe19-pinribbon
cable,thenconnectyourPCandIARJ-Link
withthesuppliedUSBminicable.
c. Supply power by either applying a
jumpershuntonJ12toallowtheJ-Linkto
supplypower(forusewithTWR-K60N512
in stand-alone mode only, or connecting
yourPCtothePower/OSJTAGmini-B
USBconnectorusingthesuppliedUSB
cable(forusewithTWR-K60N512in
TowerSystemmode).
STEP
1STEP
2
Install Software Tools and BSP
The installation DVD contains all the software and documentation you need to start building and
running embedded applications on the Freescale Kinetis K60N512 kit. We recommend that you
follow the installation instructions on the DVD and use the default directories for installation.
Downloaded from Elcodis.com electronic components distributor

FREESCALE TOWER SYSTEM
Getting Started Guide for TWR-K60N512-IAR
Run RTOS BSP
a.FollowthelinksontheGetting
StartedDVDtodownloadRTOSBSPs.
b. Set up the board or Tower System
according to the user guide included in
theBSPandruntheexample
Learn More
a. Find more example
projects and information on the
K60 microcontrollers at
freescale.com/TWR-K60N512
b.Downloadthelatestsoftwareupdates
at iar.com/kit_updates
c. WatchvideorecordingsaboutIAR
Embedded Workbench and power
debugging at iar.com/video
Run Example Project
a.StartIAREmbedded
Workbenchandclick“EXAMPLE
PROJECTS”inIARInformationCenter.
b. Select Freescale > Freescale Kinetis >
K60 > Freescale TWR-K60 board,
then click button to open the
project.Chooseadestinationfolderto
save a copy of this project.
c. Clickbuttontobuildtheproject,
then click button to download to
theK60N512board(viaJ-LinkLite).
Clickbuttontoruntheprogram,
theD16LEDwillblink.
d.TostopC-SPY,clickbutton.
ToexitC-SPY,clickbutton.
STEP
3
STEP
5
STEP
4
Downloaded from Elcodis.com electronic components distributor

FREESCALE TOWER SYSTEM
Jumper Option Setting Description
J8 MCU Power
Connection ON Connect on-board 3.3V supply to MCU
OFF Isolate MCU from power
(connect an ammeter to measure current)
J9 VBAT Power
Selection 1-2 Connect VBAT to on-board 3.3V supply
2-3 Connect VBAT to the higher voltage
between on-board 3.3V supply or
coin-cell supply
J6 Clock Input
Source Selection 1-2 Connect main EXTAL to on-board
50 MHz clock
2-3 Connect EXTAL to the CLKIN0 signal on
the elevator connector
J10 OSJTAG
Bootloader
Selection
ON OSJTAG bootloader mode
(OSJTAG firmware reprogramming)
OFF Debugger mode
Jumper Options
The following is a list of all the jumper options for the TWR-K60N512 module.
The default installed jumper settings are shown in bold.
Downloaded from Elcodis.com electronic components distributor

FREESCALE TOWER SYSTEM
Getting Started Guide for TWR-K60N512-IAR
Jumper Option Setting Description
J12 JTAG Board
Power Connection ON Connect on-board 5V supply to JTAG port
(supports powering board from JTAG pod
supporting 5V supply output)
OFF Disconnect on-board 5V supply to
JTAG port
J2 IR Transmitter
Connection ON Connect PTD7/CMT_IRO to IR Transmitter
(D1)
OFF Disconnect PTD7/CMT_IRO from
IR Transmitter (D1)
J1 VREGIN Power
Connection ON Connect USB0_VBUS from Elevator
to VREGIN
OFF Disconnect USB0_VBUS from Elevator
to VREGIN
Downloaded from Elcodis.com electronic components distributor

FREESCALE TOWER SYSTEM
Learn more:
To find more example projects and information
on the K60 microcontrollers, please visit
freescale.com/TWR-K60N512.
To download the latest software updates, visit
iar.com/kit_updates.
TowatchvideorecordingsaboutIAREmbedded
WorkbenchIDE,C-SPYdebuggerandpower
debugging, visit iar.com/video.
Freescale,theFreescalelogoandCodeWarrioraretrademarksof
FreescaleSemiconductor,Inc.,Reg.U.S.Pat.&Tm.Off.Flexis,Kinetis
andProcessorExpertaretrademarksofFreescaleSemiconductor,Inc.
ARMisaregisteredtrademarkofARMLimited.Cortex-M4isatrademark
ofARMLimited.Allotherproductorservicenamesarethepropertyof
theirrespectiveowners.©2010FreescaleSemiconductor,Inc.
DocNumber:TWRK60N512IARGSG/REV0
AgileNumber:926-78535/REVA
Disclaimer: Informationgiveninthisdocumentisintendedasahelpfortheuser.IARSystemsshallnotbeheldliableforanylossesorproblemsarisingfromusing
the information given in this document. Neither whole nor any part of the information in this document may be adapted or reproduced.
Troubleshooting:Ifyouareunabletofindthecauseofaproblem,tryresettingtheevaluationboardbyusingtheresetbuttonontheboard.ThenrestarttheC-SPY
DebuggerintheIAREmbeddedWorkbenchIDE.Youcanalsotrydisconnectingandreconnectingthepowertotheevaluationboard,pressingtheresetbuttonand
thenrestartingC-SPY.
IARSystems,IAREmbeddedWorkbench,C-SPY,visualSTATE,FromIdeatoTarget,IARKickStartKit,IARandtheIARSystemslogotypearetrademarksor
registeredtrademarksownedbyIARSystemsAB.J-LinkisatrademarklicensedtoIARSystemsAB.Allothertrademarksorregisteredtrademarksmentionedin
thisdocumentarethepropertiesoftheirrespectiveowners.©Copyright2010IARSystemsAB.
Downloaded from Elcodis.com electronic components distributor
This manual suits for next models
1
Table of contents