NuMicro MCU New Project Express Creation 3/6/2017 Richard Kuo Assistant Professor
New Project Express Creation Duplicate a sample code folder Rename folder to new project name Rename .uvproj to new project name
Select a sample code folder select a sample code that contain the interfaces for your new project select a sample code from SampleCode directory
Replicate the sample project directory Copy & Paste the selected directory
Rename directory to new project name rename from “GPIO_7seg Copy” to “proj_New”
Goto proj_New directory Click to go into Keil directory main program Define parameters used in SYS_init.c to set MCU clock and set Interfaces’ clock & pin setting
Goto Keil directory rename .uvproj to new project Double click to start Keil project
Project opened in Keil MDK project name has changed click at + to expand
Click to open main.c click to select Configure Flash Tools… for setting Keil configuration click at main.c to see program file
change Output file name click to change output file name click OK to complete configuration
Build Project (Comiple) click to Build project Compilation Message Window
Add Library files right click to add Files to Library Group click Adding Existing Files to Group ‘Library’
Add Library files - change directory click 4 times to move up to the directory
Add Library files – goto Library click into Library directory
Add Library files – goto StdDriver To add MCU interface driver
Add Library files – goto StdDriver source click into source directory
Add Library files – add source file click to add source code
Add Library files – StdDriver added ADC driver added into Library group Click here when finish adding files
Completely ReBuild Project click to rebuild project Compilation Message Window
connecting Nu-LB-NUC140 to PC Nu-Link connected to PC USB before [Download] code to MCU
Load – write binaries to learning board click to download binary file to MCU (NUC140) press reset button on learning board will start running the code
To Run Learning Board Test run the project to ensure you are starting from a working code to make your changes 7-segment display counting press Reset button, MCU will start running the new loaded code reset
Important Notice ! This educational material are neither intended nor warranted for usage in systems or equipment, any malfunction or failure of which may cause loss of human life, bodily injury or severe property damage. Such applications are deemed, “Insecure Usage”. Insecure usage includes, but is not limited to: equipment for surgical implementation, atomic energy control instruments, airplane or spaceship instruments, the control or operation of dynamic, brake or safety systems designed for vehicular use, traffic signal instruments, all types of safety devices, and other applications intended to support or sustain life. All Insecure Usage shall be made at user’s own risk, and in the event that third parties lay claims to the author as a result of customer’s Insecure Usage, the user shall indemnify the damages and liabilities thus incurred by using this material. Please note that all lecture and sample codes are subject to change without notice. All the trademarks of products and companies mentioned in this material belong to their respective owners.