The perfect choice of one-stop service for diversification of architecture.
I. write in front
IAR software has several series versions, such as MSP430, stm8, etc. However, in order to make the software "compatible", many series of software launched by IAR have similarities in many places, including the contents of IAR menu. Therefore, the content of this paper is also applicable to other series of IAR software.
Because there are many menu contents, I divide them into two articles: "menu (I)" and "menu (II)". In order to simplify the content of the article, it is too simple, infrequently used and too complex to only briefly describe.
II. Main menu content
There are some differences in the main menu in different states. For example, there are differences in editing mode and debugging mode, and there are also differences in different simulation debuggers.
1. Edit / debug mode difference
There are 8 main menus in edit mode, and two menus of debug debugging and disassembly are added in debug mode.
2. Differences between different simulation debuggers
There is a simulatoe menu option in the main menu above. In fact, this menu is changed according to the simulation debugger configured by your project.
For example, differences under simulation, j-link and St link:
III. File menu
File menu is a common menu, which mainly includes some common operations such as creating, opening, closing and printing files. It is exactly the same in editing and debugging modes.
1. New: new file / workspace Ctrl n
2. Open: open file / workspace Ctrl O
3. Close: close the file
4. Save workspace: save workspace
5. Save workspace as: save workspace as
6. Close workspace: close the workspace
7. Save: save file Ctrl S
8. Save as: save file as
9. Save all: save all files / workspaces
10. Page setup: print page setup
11. Print: print Ctrl P
12. Recent files: recently opened files
13. Recent workspaces: recently opened workspaces
14. Exit: exit the software
â £. Edit menu
This menu is also the same in editing and debugging modes. It is often used and commonly used in editing.
1. Undo: undo editing Ctrl Z
2. Redo: redo editing Ctrl y
3. Cut: cut Ctrl X
4. Copy: copy Ctrl C
5. Paste: paste Ctrl V
6. Select all: select all Ctrl A
7. Find and replace: find Ctrl F
Find and replace "find next: find the next target F3
Find and replace find previous: find previous target shift F3
Find and replace find next (selected): find the next target in the selected object Ctrl F3
Find and replace find previous (selected): find the previous target in the selected object Ctrl Shift F3
Find and replace: replace Ctrl H
Find and replace find in files: specify search criteria in the dialog box
Find and replace in files: specify conditional replacement in the dialog box
Find and replace incremental search: find the character Ctrl I in the dialog box
8. Navigate to: go to the row Ctrl G
Navigate toggle bookmark: Mark / cancel bookmark Ctrl F2
Navigate previous bookmark: jump to previous bookmark Shift F2
Navigate next bookmark: jump to the next bookmark
Navigate backward: jump to the previous step Alt left arrow
Navigate forward: jump to next Alt right arrow
Navigate go to definition: jump to F12
9. Code templates insert template: insert template Ctrl Alt V
Code templates: edit templates
10. Next error / tag: displays the next error / target F4
11. Previous error / tag: displays the previous error / target shift F4
12. Complete word: completion statement Ctrl Alt space
13. Complete code: completion class / structure code Ctrl space
14. Parameter hint: parameter prompt Ctrl Shift space
15. Match brackets: brackets match
16. Toggle all folders: fold / open face to face edit code Ctrl Alt F
17. Auto indent: Auto indent (align) Ctrl T
18. Block comment: block comment Ctrl k
19. Block uncomment: block uncomment Ctrl Shift k
20. Toggle breakpoint: Add / cancel breakpoint F9
21. Enable / disable breakpoint: enable / disable breakpoint Ctrl F9
The above is a brief description of the contents of each sub menu (the part is the same as the toolbar button, which can be viewed by clicking the article link). Several common and important menus will be described in detail below.
1. Insert / edit template
Often use the same piece of code, you can use this function. IAR has only if and for templates by default. We can add (Edit) templates ourselves, such as adding a while template. Click the "Edit template" menu to enter the editing status. The editing syntax is very simple. You can refer to the self-contained template.
Insert / edit template animation effects:
2. Completion statement
I learned cloze in primary school. Here is equivalent to that meaning, that is to complete the words. For example, the complete code is USART_ Initializes. In fact, you only need to enter the USA letter to complete it.
Animation effect of completion statement:
3. Auto indent
This function is more practical. When your code is messy (that is, it is not correct), you can use this function to automatically align the code.
Auto indent animation effect:
V. View menu
This menu means to open or close the view window. For example, if our workspace window is missing, you can open it through this menu. Due to the addition of some view windows in debugging mode, there are some differences between the two modes.
The content of this section is simple. It is easy to understand by referring to the animation effects below. The contents of the View menu are listed below.
1. Messages build: compile messages
Messages find in files: find information
Messages tool output: tool information
Messages debug log: debug information
2. Workspace: workspace window
3. Source browser: source browser
Source browser References: reference window
Source browser declarations: declaration window
Source browser call graph: call graph window
4. Breakpoints: View Breakpoints window
5. Disassembly: Disassembly window
6. Memory: memory window
7. Symbolic memory: memory mark window
8. Register: register window
9. Watch: variable / parameter view window
10. Locals: local variable window
11. Statics: static variables window
12. Auto: automatically display the variable / parameter window
13. Live Watch: real time monitoring window
14. Quick Watch: quick view window
15. Call stack: Call Stack window
16. Stack: stack address window
17. Terminal I / O: terminal window
18. Images: picture window
19. Cores: kernel status window
20. Code coverage: Code utilization window
21. Toolbars Main: main toolbar
Toolbars debug: debug toolbars
22. Status bar: status bar
In edit mode, briefly show the function of view: close all views and open common views step by step.
View animation effects:
Vi. Projcet Project menu
The Project menu is mainly aimed at the project, which is commonly used in practical use. There are some differences in the contents of the sub menu under the menu under the editing and debugging modes.
1. Add files: add files
2. Add group: add a group
3. Import file list: import file list
4. Add project connection: Add Project Link
5. Edit configurations: edit configurations
6. Remove: remove workspace project
7. Create new project: create a new project
8. Add existing project: add an existing project
9. Options: target option configuration Alt F7
10. Version control system: version control system
11. Make: compile project F7
12. Compile: compile file / group Ctrl F7
13. Rebuild all: recompile
14. Clean: clear intermediate files such as compilation
15. Batch build: build batch F8
16. C-stat static analysis
17. Stop build: stop compiling Ctrl break
18. Download and debug: Download and debug Ctrl D
19. Debug without downloading: debugging (not downloading)
20. Attach to running target
21. Make & restart debugger: compile and re debug Ctrl R
22. Restart debugger: re debug Ctrl Shift R
23. Download: Download
24. SFR setup: SFR setup
25. Open device description file: open the device description file
26. Save list of registers: save the register list
VII. Description
It is not recommended to memorize the content of this article. You need to be proficient in IAR software. To learn more about IAR or Keil, you can enter my WeChat official account or check the IAR help files.
Source: 21IC