NuMicro MCU Start your first project
Department of Electrical Engineering,
National Taiwan Ocean University
9/24/2014
Richard Kuo
Assistant Professor
www.ee.ntou.edu.tw
Connect Learning Board to PC
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Nu-Link ICEs
USB connector
BSP directory
Department of Electrical Engineering,
National Taiwan Ocean University
MCU documents (
)
MCU device drivers/libraries (
) sample codes (
MCU
)
www.ee.ntou.edu.tw
SampleCode directory
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Learning Board sample code (
)
Chip interface standard Driver sample code (
)
NUC140 pin assignment table (
)
smpl_SEMIHOST ( )
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
IAR project folder
Keil project folder (Keil
)Keil project folder
Main.c ( )
main program (.c)
Go to KEIL directory
to start the project
open a Keil project
Department of Electrical Engineering,
National Taiwan Ocean University
double click at .uvproj
to start the project
www.ee.ntou.edu.tw
Keil project is opened
Department of Electrical Engineering,
National Taiwan Ocean University
Click + to extend the folder
view
www.ee.ntou.edu.tw
Open folder groups
(CMSIS,Source,Library)
Department of Electrical Engineering,
National Taiwan Ocean University
Click + to extend the folder
view
www.ee.ntou.edu.tw
To view main.c
Department of Electrical Engineering,
National Taiwan Ocean University
double click to view
main.c
www.ee.ntou.edu.tw
main.c
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
To Build Project
Department of Electrical Engineering,
National Taiwan Ocean University
Click to build project (compile the source
codes)
www.ee.ntou.edu.tw
Build Output Window
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
shown compilation message
Load binary code to MCU
Department of Electrical Engineering,
National Taiwan Ocean University
Click to load binary code into NUC140 on learning board
www.ee.ntou.edu.tw
Press Reset button to run the code
Department of Electrical Engineering,
National Taiwan Ocean University
Nu-LB-NUC140
www.ee.ntou.edu.tw
Reset
button
NuTiny-EVB-Nano102
Reset
button
NuTiny-SDK-Mini54
Reset
button
Reset
button
NuDip-Mini58
Start a Debug Session
Department of Electrical Engineering,
National Taiwan Ocean University
select Debug Session to
run
www.ee.ntou.edu.tw
NuLink (ICE) firmware version pop-up message
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
PC NuLink Driver is v6340 (newer)
ICE NuLink Firmware is v6211 (older)
select No = dont
update
NuLink (ICE) firmware version pop-up message
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
PC NuLink Driver is v6340 (newer)
ICE NuLink Firmware is v6211 (older)
select No = dont
update
NuLink (ICE) firmware version pop-up message
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
Select UART#1
binary code & assembly
C/C++
code
Registers
Message out
Variables
NuLink (ICE) firmware version pop-up message
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
binary code & assembly
C/C++
code
Registers
Message out
UART #1 View
NuLink (ICE) firmware version pop-up message
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
binary code & assembly
C/C++
code
Registers
Message out
UART #1 View
NuLink (ICE) firmware version pop-up message
Department of Electrical Engineering,
National Taiwan Ocean University
www.ee.ntou.edu.tw
binary code & assembly
C/C++
code
Registers
UART#1 View
Message out
printf output