Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:keil:c_project [2020/02/07 13:11] akdisoftware:keil:c_project [2020/02/07 16:21] (current) – [6) Adding Items to Project] akdi
Line 16: Line 16:
 Start [[uvision|Keil uVision]] and create a new project "Project -> new uVision Project".\\  Start [[uvision|Keil uVision]] and create a new project "Project -> new uVision Project".\\ 
 Give the file a name according to the project and save it to the previously created project-directory (lab1). \\ \\ Give the file a name according to the project and save it to the previously created project-directory (lab1). \\ \\
-Now choose the device for which you want to create a new project. \\ \\+After expanding the "STMicroeletronics" section, choose the device for which you want to create a new project. \\ \\
  
  
Line 30: Line 30:
 ===== 3) Runtime Components ===== ===== 3) Runtime Components =====
  
-If not already popped up, click the green button {{keil_mrt_button.png?30em}} //"Manage Run-TimeEnvironment"//.\\+If not already popped up, click the green button {{keil_mrt_button.png?30em}} //"Manage Run-TimeEnvironment"// to open the below shown view.\\
 Expand the "Device" group and select the "Startup" component. Now click on the "Resolve" button. Expand the "Device" group and select the "Startup" component. Now click on the "Resolve" button.
  
Line 49: Line 49:
 \\ {{keil_debugger_2.png?700em}} \\ \\ \\ {{keil_debugger_2.png?700em}} \\ \\
  
-Also check the //"Flash Download"// tab and make sure the "STM32F4xx 2MB Flash" algorithm is selected. \\+Also check the //"Flash Download"// tab and make sure the "STM32F4xx 2MB Flash" algorithm is visible in the "Programming Algorithm" section. \\
 Otherwise add the algorithm with the add button. Otherwise add the algorithm with the add button.
  
 \\ {{keil_debugger_3.png?700em}} \\ \\ \\ {{keil_debugger_3.png?700em}} \\ \\
  
-Go back to "Options for Target, Target1" and select the //"Output"// tab. Click "Select Folder for Objects..." and choose (double-click) the **build** folder from your created directory (lab1) as your output folder. \\ \\+===== 5) Output & Listing Folder =====
  
-Then go to the //"Listing"// tab. Click "Select Folder for Listings..." and choose again (double-click) the **build** folder from your created directory (lab1) as your listing folder. \\ \\+Go back to "Options for Target, Target1" and select the //"Output"// tab. \\ 
 +Click "Select Folder for Objects..." and choose (double-click) the **build** folder from your created directory (lab1) as your output folder. \\ \\
  
-Now open your project directory in your explorer and you will find the two self generated folders, **Listings** and **Objects**. Delete them.\\ \\+Then go to the //"Listing"// tab. \\ 
 +Click "Select Folder for Listings..." and choose again (double-click) the **build** folder from your created directory (lab1) as your listing folder. \\ \\ 
 + 
 +Now open your project directory in your explorer and you will find the two self generated folders, **Listings** and **Objects**. \\ 
 +Delete them.\\ \\
  
 {{keil_delete_folder.png?700em}} \\ \\ {{keil_delete_folder.png?700em}} \\ \\
Line 67: Line 72:
 ''warning: L6314W: No section matches pattern *(InRoor$$Sections).'' \\ \\ ''warning: L6314W: No section matches pattern *(InRoor$$Sections).'' \\ \\
  
-To disable this warning add the following parameter to the linker arguments under  “Project → Options for Target, Target 1” in the "Linker" tab: \\+To disable this warning add the following parameter to the linker arguments under\\ 
 +“Project → Options for Target, Target 1” in the "Linker" tab: \\
 ''<nowiki>--</nowiki>diag_suppress 6314'' ''<nowiki>--</nowiki>diag_suppress 6314''
  
Line 75: Line 81:
  
 To create a new file expand the folder "Target 1", right-click on the folder "Source Group 1" and then choose "Add New Item to Group...". \\ To create a new file expand the folder "Target 1", right-click on the folder "Source Group 1" and then choose "Add New Item to Group...". \\
-(If you want to add an existing file, choose "Add Existing Files to Group...".\\+If you want to add an existing file, choose "Add Existing Files to Group...". \\
  
 \\ {{keil_add_file_1.png?1000em}} \\ \\ \\ {{keil_add_file_1.png?1000em}} \\ \\
-Choose the corresponding file type, name and location.+Choose the corresponding file type, name and location.\\
 \\ {{keil_add_file_2.png?800em}} \\ \\ \\ {{keil_add_file_2.png?800em}} \\ \\
  
Line 86: Line 92:
 ^Type|Choose either "C File (.c)" or "Header File (.h)"| ^Type|Choose either "C File (.c)" or "Header File (.h)"|
 ^Name|Choose an appropriate name| ^Name|Choose an appropriate name|
-^Location|Choose correct [[#prepare_project_directory|location]] (.\app)|\\ \\+^Location|Choose correct [[#prepare_project_directory|location]] (.\app)|\\
  
  
  • software/keil/c_project.1581081077.txt.gz
  • Last modified: 2020/02/07 13:11
  • by akdi