【Perf-V Evaluation】+ Construction and basic use of development environment (2)
[Copy link]
This post was last edited by jinglixixi on 2021-1-22 18:08
2. Basic usage of Windows-IDE
1) Open Perf-V IDE, that is, double-click the icon
on the desktop to enter the working interface.
2) To create a new project, click the "New Project" button on the left side of the toolbar, as shown in Figure 12.
Figure 12 New construction project
3) In the interface shown in Figure 13, fill in the project name test, select Perf-V C Project, and then click "Next".
Figure 13 Setting project options
4) In the interface shown in Figure 14, check "Debug" and "Release", then click "Next" and "Finish" in sequence to complete the creation of the new project.
Figure 14 Configuration selection
Figure 15 Toolchain settings
Figure 16 Complete project creation
5) Write code. You can write code directly in the test.c file of the project, or you can add a new c file to the newly created project or directly copy the existing c file to the project.
Figure 17 Program Editing
6) Compile and run. Click the Build icon on the toolbar to compile. The compilation result is shown in Figure 18.
Figure 18 Compilation results
7) To run the program, right-click the launch file in the project and select "1 test-debug-openocd" under "Run As" in the shortcut menu, as shown in Figure 19.
Figure 19 Running the program
Under normal circumstances, the execution results can be observed. But for some reason, when the compilation is normal, two different prompts will often appear (see Figure 20 and Figure 21). Perhaps this is related to the problem after installing the driver!
Figure 20 Abnormal phenomenon 1
Figure 21 Abnormal phenomenon 2
I hope someone who knows the reason can give me some advice to solve this problem. Thanks in advance.
|