0% found this document useful (0 votes)
78 views

03 - Nano100 Tool Installation

This document provides an overview of installing and using tools to run code on the NuMicro Nano100 learning board. It discusses installing Keil uVision4 and the Nu-Link Keil driver. It then introduces the learning board and its components. Steps are outlined for running sample code using Nu-Link and debugging in Keil uVision4. Finally, it briefly describes the NuMicro product flow, programming tools like NuGang, and the Nu-Link debugging interface.

Uploaded by

Thien
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

03 - Nano100 Tool Installation

This document provides an overview of installing and using tools to run code on the NuMicro Nano100 learning board. It discusses installing Keil uVision4 and the Nu-Link Keil driver. It then introduces the learning board and its components. Steps are outlined for running sample code using Nu-Link and debugging in Keil uVision4. Finally, it briefly describes the NuMicro product flow, programming tools like NuGang, and the Nu-Link debugging interface.

Uploaded by

Thien
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

NuMicro Nano100

Tool Installation and Practice

[email protected]

2013/02/27
Agenda
• Disc Content Introduction
• Software Installation
• Learning Board Introduction
• Run Learning Board Code
• NuMicro Product Flow Chart
• Tools

1
Disc Content Introduction

2
Software Installation

Double Click “autorun.exe”


3
Step 1. Install the Keil uVision4

1. Learning Board Quick Start


2. Nu-LB-Nano130 → Keil
3. Install Keil RVMDK EV Version
The Keil uVision4 evaluation version (32K code
size limitation) can be downloaded from Keil
website www.keil.com
4
Step 2. Install Nu-Link Keil Driver

The “Nu-Link Driver” can be


Note : Please close the Keil application downloaded from nuvoTon website
program when installing Nu-Link Keil driver. www.nuvoton.com
5
Step 3. Copy Nano100 Series BSP

Note : Please use the default destination folder.


C:\Nuvoton\BSP Library\
6
Learning Board Introduction – (1)
Nu-Link-Me Power UART
USB

IRDA
INT1

Nano130KE3BN Reset Key


Variable
Resistor

Touch Key
LCD

7 Segment 7
Slider
Line I/O Mic
Learning Board Introduction – (2)

Smart Card

SD Card

Nano100
LQFP48

8
Learning Board Introduction – (3)
Block Pin Function
Nu-Link-Me ICE_CLK SWD interface
ICE Bridge ICE_DATA
USB_VBUS Power Supply
USB_VDD33_CAP Internal Power Regulator
USB
USB_D- USB Differential Signal D-
USB_D+ USB Differential Signal D+
GPE2 SP1_CLK
GPE6 SD_PWR_ON
SD Card GPE14 SD_CTL
GPE15 SD_INT
nINT0 SD_CD
GPD0 SC1_CLK
GPD1 SC1_DAT
Smart Card GPD2 SC1_PWR
GPD3 SC1_RST
GPD4 SC1_PRES

9
Learning Board Introduction – (4)
Block Pin Function
GPE2 SPI0_CLK
GPE1 SPISS00
GPE3 SPIMISO00
GPE4 SPIMOSI00
Flash
GPB2 SPI1CLK
GPB3 SPISS10
GPB0 SPIMOSI10
GPB1 SPIMISO10
GPA8 I2C0_SDA
GPA9 I2C0_SCL
GPE0 I2S_MCLK
GPD2 I2S_LRC
WAU8822
GPD3 I2S_BCLK
GPD5 I2S_DACDATA
GPD4 I2S_ADCDATA
GPA12 Plug in/out detection

10
Learning Board Introduction – (5)
Block Pin Function
GPA14 UART0_RXD
UART
GPA15 UART0_TXD
GPB4 UART1_RXD
LIN
GPB5 UART1_TXD
Thermistor GPA0 ADC0
Variable Resistance GPA1 ADC1
BAT_VD GPA4 ADC4
GPF4 CTK6
Touch Key
GPF5 CTK7
GPA13 CTK11
GPC8 CTK12
Slider GPC9 CTK13
GPC10 CTK14
GPC11 CTK15

11
Learning Board Introduction – (6)

Block Pin Function


Buzzer GPC12 PWM1_0
INT/Snooper GPB15 nINT1
Reset RESET Reset

12
Jumper Setting – (1)

Block Pin Function

Function Selection :
1-2 : SC1_PRES
2-3 : I2S_DIN
JP1

Peripherals power source selection :


1-2 : Power from VDD3.3V
2-3 : Power from VCC
JP2

14
Jumper Setting – (2)

Block Pin Function

Speaker ROUT & LOUT

J3

Voltage Supply from Battery

J6

15
Jumper Setting – (3)

Block Pin Function

Voltage Supply from VCC for MCU

J8

ICE and MCU Reset signal

J10

16
Run “START_KIT” Code

NuMicro NANO100B
NANO100BSeriesBSP_CMSIS_V1.00.005 Document Driver Reference Guide

Sample

Nu_LB

START_KIT

KEIL START_KIT.uvproj

17
Step 1. Setup Nu-LB-Nano100

18
Step 2. Double Click to enter the project

Project Path :
C:\Nuvoton\BSPLibrary\NANO100BSeries
BSP_CMSIS_V1.00.005\Samples\Nu_LB\S
TART_KIT\KEIL

19
Step 3. Build the Project
Rebuild

Build Output
Window

20
Step 4. To Download & Enter Debug

Start / Stop Debug


Session(Ctrl + F5)

21
Step 5. Press or “F5” to run the code
Disassembly
Run (F5)
Window

Memory, Stack and


Watch Window

22
NuMicro Product Flow Chart
On-Line In Circuit Programming

Customer Nuvoton
Target Board
USB ICP AP
SWD
In System
NuMirco-SDK Off-Line In Circuit Programming Programming
Keil RVMDK
Customer
Target Board Nuvoton
SWD ISP AP
Customer IC Programming
Target Board Nuvoton
SWD USB
Gang Programmer USB, UART
or others

IAR EWARM Third Party


Writer

Code Development Mass Production Upgrade

24
Tools
• NuMicro ISP Programming Tool
• NuMicro ICP Programming Tool
• NuGang Programmer
• Nu-Link
• Nu-Link-Me
• Nu-Link
• Nu-Link-Pro

25
ICP (In Circuit Programming)
NuMicro ISP AP

USB

Nu-Link

SWD I/F

Nano130KE3BN

26
Program The NuMicro ISP Firmware Code
Configuration

NuMicro ISP firmware code: ISP_Code_NANO_vx.x.bin


27
ISP (In System Programming)

NuMicro ISP AP

RS232 Cable USB Cable


(GPB.15)

UART I/F USB I/F

Nano130KE3BN

28
NuGang Programmer - Feature
• 4-chip gang programming
• 128 k flash size only needs 10 sec.
• Easy off-line copying operation
• On-line downloading: by engineer
• Off-line copying operation: for production line’s operator
• Good data security
• No source-chip copying
• Code data downloaded in the programmer are well
encrypted
• Different adapter boards for different chip packages

29
NuGang Programmer

Chips (#1~#4) to be programmed

#1 #2 #3 #4

Adapter PASS/FAIL
Board LEDs

Main
Board

DC9V
USB Connector LCD Panel Ready / Busy Power Input
LED DC9V
Buzzer Auto Key
Power Switch

30
Nu-Link

31
Run “Semihost” Code

NuMicro NANO100B
NANO100BSeriesBSP_CMSIS_V1.00.005 Document Driver Reference Guide

Sample

Nu_LB

START_KIT

KEIL START_KIT.uvproj

33
SemiHost – (1)

How to enable “Semihost” for Nano100BSP :


Copy “DEBUG_ENABLE_SEMIHOST” both in the “Define” blank
of the tab “C/C++” and “Asm” in Option for Target.

34
SemiHost – (2)

============ SemiHost Test ============

Successful Nano100BSP SemiHost Test !!!

============ SemiHost Test ============

Start Debug Session (Ctrl F5) → Serial Window (UART#1)


35
Q&A

36

You might also like