1.NuMicro_MCU_Learning_Board_SDK_Installation.ppt

Download Report

Transcript 1.NuMicro_MCU_Learning_Board_SDK_Installation.ppt

NuMicro MCU Learning Board
SDK Installation
Department of Electrical Engineering,
National Taiwan Ocean University
3/7/2013
Richard Kuo
Assistant Professor
www.ee.ntou.edu.tw
Outline
Department of Electrical Engineering,
National Taiwan Ocean University
NuMicro Product Flow Chart
► Learning Board Introduction
► Software Installation
► NuMicro SDK
► Run Learning Board Code
► ICP Introduction
► ISP Introduction
►
www.ee.ntou.edu.tw
NuMicro Product Development Flow
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
On-Line In Circuit Programming
Customer
Target Board
Nuvoton
ICP AP
SWD
NuMirco-SDK
Keil RVMDK
Off-Line In Circuit Programming
Customer
Target Board
SWD
Customer
Target Board
SWD
IC Programming
Nuvoton
Gang
Programmer
USB
IAR EWARM
Code Development
Third Party
Writer
Mass Production
Software Installation (CD-ROM)
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Readme.txt
Customer CD
Keil MDK423
NUC1xx flash tool
User’s Guide
KEIL Evaluation
Development Tools
Schematic
Nu-Link_001
ICE
ICE Driver
User’s Guide
ICP
ICP Tool
User’s Guide
1. Keil MDK : mdk450.exe
2. Nu-Link Driver : DocumentsInfo_Nu-Link_Keil_Driver_v1.19.5786.zip
3. Nuvoton BSP : DocumentsInfo_NUC100SeriesBSP_v1.05.003.zip
Software Development Tools Installation
Department of Electrical Engineering,
National Taiwan Ocean University
►
www.ee.ntou.edu.tw
mdk450.exe
– ARM/Keil provide free IDE tool
– Free download from Keil eval download
►
DocumentsInfo_Nu-Link_Keil_Driver_v1.19.5786z.ip
– Nuvoton provide NuLink ICE device driver (NuLink ICE is built-in on Nu-LBNUC140 learning board)
– After installing Keil MDK,unzip and run it to install this NuLink device driver
►
DocumentsInfo_NUC100SeriesBSP_v1.05.003.zip
– Nuvoton’s Basic Sample Package including device drivers and sample codes
– Just unzip it (usually it is put under C:\Nuvoton\)
Note: you can autorun CDROM, and select Learning Board Nu-LB-NUC140 to follow the
installation steps
Step 1. Install Keil uVision4
Department of Electrical Engineering,
National Taiwan Ocean University
免費版本支援程式碼大小為32KB
www.ee.ntou.edu.tw
Step 2. Install NuLink ICE device driver
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Nu-Link ICE 驅動程式最新版本可至 Nuvoton 網頁 www.nuvoton.com下載
Step 3. Install Nuvoton driver & sample
codes
Department of Electrical Engineering,
www.ee.ntou.edu.tw
National Taiwan Ocean University
►
►
DocumentsInfo_NUC100SeriesBSP_v1.05.002.zip
Unzip it in C:\nuvoton\
Nuvoton BSP最新版本可至 Nuvoton 網頁 www.nuvoton.com 下載
SDK CD Auto Installation
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Learning Board Quick Start
Department of Electrical Engineering,
National Taiwan Ocean University
Select
www.ee.ntou.edu.tw
LB Quick Start
Department of Electrical Engineering,
National Taiwan Ocean University
Select
www.ee.ntou.edu.tw
Install all 3 steps
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
BSP Directory Hierarchy
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Readme.txt
Customer_CD
NUC1xx BSP
Driver Reference Guide
NUC1xx_BSP
NuvotonPlatform_Keil
Sample
NUC1xx-LB_002
Smpl_Start_Kit
Smpl_Start_Kit : beginner’s sample
Smpl_Start_Kit. uvproj
Step 1. connecting Nu-LB-NUC140 to PC
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Step 2. open project
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Step 3. select sample project to open
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Step 4. build project (compile codes)
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Build Output
Step 5. Download binary to MCU & Debug
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Step 6. Run (F5)
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
ICP & ISP Software Intro
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Readme.txt
Customer CD
Development Tools
Schematic
Nu-Link_001
ICE
ICE Driver
User’s Guide
ICP
ICP Tool
User’s Guide
ISP
Binary File
ICP AP software: “NuMicro ICP Programming Tools.exe”
ISP AP software:
ISP User’s Guide
ISP Tool
AP Binary File
LD Binary File
ICP (In-Circuit Programming)
Department of Electrical Engineering,
National Taiwan Ocean University
NuMicro ICP AP
USB
Nu-Link
SWD I/F
NUC140
www.ee.ntou.edu.tw
To program ISP firmware code
Department of Electrical Engineering,
National Taiwan Ocean University
Configuration bits
setting
www.ee.ntou.edu.tw
NuMicro ISP firmware code: ISP_LD_CODE.bin
ISP (In-System Programming)
Department of Electrical Engineering,
National Taiwan Ocean University
NuMicro ISPAP
RS232 Cable
USB Cable
UART I/F
USB I/F
NUC140
www.ee.ntou.edu.tw
NuMicro ISP Firmware Flow Chart
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Start
MCU boots from LDROM
Check if GPB15=0 or
GPD5=0
No
To run application
code(APROM)
Yes
Keep running in
LDROM
General Disclaimer
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
The Lecture is strictly used for educational purpose.
MAKES NO GUARANTEE OF VALIDITY
►
The lecture cannot guarantee the validity of the information found here. The lecture may recently have been
changed, vandalized or altered by someone whose opinion does not correspond with the state of knowledge in the
relevant fields. Note that most other encyclopedias and reference works also have similar disclaimers.
No formal peer review
►
The lecture is not uniformly peer reviewed; while readers may correct errors or engage in casual peer review, they
have no legal duty to do so and thus all information read here is without any implied warranty of fitness for any
purpose or use whatsoever. Even articles that have been vetted by informal peer review or featured article processes
may later have been edited inappropriately, just before you view them.
No contract; limited license
►
►
Please make sure that you understand that the information provided here is being provided freely, and that no kind of
agreement or contract is created between you and the owners or users of this site, the owners of the servers upon
which it is housed, the individual Wikipedia contributors, any project administrators, sysops or anyone else who is in
any way connected with this project or sister projects subject to your claims against them directly. You are being
granted a limited license to copy anything from this site; it does not create or imply any contractual or
extracontractual liability on the part of Wikipedia or any of its agents, members, organizers or other users.
There is no agreement or understanding between you and the content provider regarding your use or
modification of this information beyond the Creative Commons Attribution-Sharealike 3.0 Unported License (CCBY-SA) and the GNU Free Documentation License (GFDL);
General Disclaimer
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Trademarks
►
Any of the trademarks, service marks, collective marks, design rights or similar rights that are mentioned, used or
cited in the lectures are the property of their respective owners. Their use here does not imply that you may use them
for any purpose other than for the same or a similar informational use as contemplated by the original authors under
the CC-BY-SA and GFDL licensing schemes. Unless otherwise stated , we are neither endorsed by nor affiliated
with any of the holders of any such rights and as such we cannot grant any rights to use any otherwise protected
materials. Your use of any such or similar incorporeal property is at your own risk.
Personality rights
►
The lecture may portray an identifiable person who is alive or deceased recently. The use of images of living or
recently deceased individuals is, in some jurisdictions, restricted by laws pertaining to personality rights, independent
from their copyright status. Before using these types of content, please ensure that you have the right to use it under
the laws which apply in the circumstances of your intended use. You are solely responsible for ensuring that you do
not infringe someone else's personality rights.