Presentation is loading. Please wait.

Presentation is loading. Please wait.

NuMicro MCU New Project Express Creation

Similar presentations


Presentation on theme: "NuMicro MCU New Project Express Creation"— Presentation transcript:

1 NuMicro MCU New Project Express Creation
3/6/2017 Richard Kuo Assistant Professor

2 New Project Express Creation
Duplicate a sample code folder Rename folder to new project name Rename .uvproj to new project name

3 Select a sample code folder
select a sample code that contain the interfaces for your new project select a sample code from SampleCode directory

4 Replicate the sample project directory
Copy & Paste the selected directory

5 Rename directory to new project name
rename from “GPIO_7seg Copy” to “proj_New”

6 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

7 Goto Keil directory rename .uvproj to new project
Double click to start Keil project

8 Project opened in Keil MDK
project name has changed click at + to expand

9 Click to open main.c click to select Configure Flash Tools…
for setting Keil configuration click at main.c to see program file

10 change Output file name
click to change output file name click OK to complete configuration

11 Build Project (Comiple)
click to Build project Compilation Message Window

12 Add Library files right click to add Files to Library Group
click Adding Existing Files to Group ‘Library’

13 Add Library files - change directory
click 4 times to move up to the directory

14 Add Library files – goto Library
click into Library directory

15 Add Library files – goto StdDriver
To add MCU interface driver

16 Add Library files – goto StdDriver source
click into source directory

17 Add Library files – add source file
click to add source code

18 Add Library files – StdDriver added
ADC driver added into Library group Click here when finish adding files

19 Completely ReBuild Project
click to rebuild project Compilation Message Window

20 connecting Nu-LB-NUC140 to PC
Nu-Link connected to PC USB before [Download] code to MCU

21 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

22 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

23 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.


Download ppt "NuMicro MCU New Project Express Creation"

Similar presentations


Ads by Google