Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:keil:c_project [2020/02/07 12:59] – akdi | software: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 " | Start [[uvision|Keil uVision]] and create a new 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 " |
Line 30: | Line 30: | ||
===== 3) Runtime Components ===== | ===== 3) Runtime Components ===== | ||
- | If not already popped up, click the green button {{keil_mrt_button.png? | + | If not already popped up, click the green button {{keil_mrt_button.png? |
Expand the " | Expand the " | ||
\\ {{keil_rte.png? | \\ {{keil_rte.png? | ||
- | |||
===== 4) Setup Debugger ===== | ===== 4) Setup Debugger ===== | ||
- | Make sure that the CT Board is connected to the host computer! \\ \\ | + | Make sure that the CT Board is connected to the host computer!\\ \\ |
By default the project is configured to use the Keil uLink debugger. The CT Board uses the onboard ST-Link debugger. \\ \\ | By default the project is configured to use the Keil uLink debugger. The CT Board uses the onboard ST-Link debugger. \\ \\ | ||
Change the configuration to " | Change the configuration to " | ||
- | Then click // | + | Then click // |
\\ {{keil_debugger.png? | \\ {{keil_debugger.png? | ||
Line 50: | Line 49: | ||
\\ {{keil_debugger_2.png? | \\ {{keil_debugger_2.png? | ||
- | Also check the //" | + | Also check the //" |
Otherwise add the algorithm with the add button. | Otherwise add the algorithm with the add button. | ||
\\ {{keil_debugger_3.png? | \\ {{keil_debugger_3.png? | ||
- | Go back to " | + | ===== 5) Output |
- | Then go to the //"Listing"// tab. Click " | + | Go back to " |
+ | Click " | ||
- | 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 //" |
+ | Click " | ||
+ | |||
+ | 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? | {{keil_delete_folder.png? | ||
+ | |||
+ | ===== 5) Setup Linker ===== | ||
+ | |||
+ | During the linking process Keil gives a warning: \\ | ||
+ | '' | ||
+ | |||
+ | To disable this warning add the following parameter to the linker arguments under\\ | ||
+ | “Project → Options for Target, Target 1” in the " | ||
+ | ''< | ||
+ | |||
+ | \\ {{keil_linker.png? | ||
+ | |||
+ | ===== 6) Adding Items to Project ===== | ||
+ | |||
+ | To create a new file expand the folder " | ||
+ | If you want to add an existing file, choose "Add Existing Files to Group..." | ||
+ | |||
+ | \\ {{keil_add_file_1.png? | ||
+ | Choose the corresponding file type, name and location.\\ | ||
+ | \\ {{keil_add_file_2.png? | ||
+ | |||
+ | |||
+ | |||
+ | |< 100% 10em >| | ||
+ | ^Type|Choose either "C File (.c)" or " | ||
+ | ^Name|Choose an appropriate name| | ||
+ | ^Location|Choose correct [[# | ||
+ | |||
+ | |||
\\ \\ \\ \\ | \\ \\ \\ \\ | ||
- | **Back to [[software: | + | |
+ | |||
+ | //**Back to [[software: |