Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

双击SP7021Double-click SP7021_IDE_Setup.exe开始安装环境,如下exe to start the installation environment, as follows

...

选择安装路径后开始安装;安装完成后在桌面出现如下图标Select the installation path and start the installation; after the installation is complete, the following icon appears on the desktop

...

2.8.2 Using SP7021 IDE

...

    双击桌面SP7021 IDE图标,首次运行时出现入下图示

...

勾选红色所示,然后选择蓝色框,进入下图所示开发环境,当前模式为编辑模式,用户可编写代码:

Double-click the SP7021 IDE icon on the desktop, and the following icon will appear during the first run

...

Check the box shown in red, and then select the blue box to enter the development environment shown in the figure below. The current mode is edit mode, and users can write code:

...

2.8.3

...

Project compilation

    项目代码做了修改后,按如下方式进行编译 After the project code has been modified, compile it as follows :

...

编译完成后,Console窗口显示结果如图所示

After the compilation is complete, the console window displays the results as shown

...

2.8.4

...

    调试开始前需要确认所必须的硬件都已齐备,这主要包括Plus7021开发套件,和一台调试仿真用的PC;

...

Project debugging serial port settings

    Before the start of debugging, you need to confirm that the necessary hardware is complete, which mainly includes the Plus7021 development kit, and a PC for debugging simulation; Next, set the serial port in SP7021 IDE, as shown in the figure below

...

1: 先按图所标红色字符1切换到Terminal窗口First switch to the Terminal window according to the red character 1 marked in the figure;

2: 再按图所标红色字符2单击图标,将会弹出Terminal配置窗口

3:按图所标红色字符3可选择配套调试工具所对应的串口,这里为COM5(不同用户安装调试工具后,windows系统分配的串口号不一样)

4: 点击OK,结束Terminal设置,如下图所示Then click the red character marked in the figure 2 and click the icon, the Terminal configuration window will pop up

3:According to the red character 3 marked in the figure, you can select the serial port corresponding to the matching debugging tool, here is COM5 (after different users install the debugging tool, the serial port number assigned by the windows system is different)

4: Click OK to end the Terminal setting, as shown in the figure below

...

5: Plus7021开发平台上电, Terminal窗口显示如下 The Plus7021 development platform is powered on, and the Terminal window is displayed as follows

...

2.8.5

...

点击如下图红框处, SP7021 IDE将编译后的code 下载到SP7021芯片上的DRAM Project debugging

Click the red box at the following picture, SP7021 IDE will download the compiled code to the DRAM on SP7021 chip

...

SP7021 IDE从编辑模式进入下图调试模式

...

程序运行指针停在main函数的入口地址红框1处,等待用户下一步的调试命令,可单步调试也可全部运行,如下介绍:

单步调试:红框2为Step Over;红框3为Step Into, 由用户根据自己需求选择;

全部运行:红框4为程序开始运行,若程序设有断点,则运行到断点处停止,等待用户下一步的调试命令;

结束调试:单击红框所示图标,结束程序运行,退出调试模式,回到编辑模式

 断点设置:

    编辑模式和调试模式下都可设置断点,有两种方法:

法1:在下图所示红框处双击,即可设置断点,再次双击,即可取消断点设置

...

法2: 在上图所示红框处单击鼠标左键,弹出如下菜单,用户可点击红框2设置或取消断点IDE enters the following debugging mode from editing mode

...

The program running pointer stops at the red box 1 at the entry address of the main function, and waits for the user's next debug command. It can be debugged in one step or run all, as described below:

Single-step debugging: Red box 2 is Step Over; red box 3 is Step Into, which can be selected by users according to their own needs;

Run all: Red box 4 means the program starts to run. If the program has a breakpoint, it will stop at the breakpoint and wait for the user's next debug command;

End debugging: click the icon shown in the red box to end the program, exit the debugging mode, and return to the editing mode

Breakpoint setting:

    You can set breakpoints in both edit mode and debug mode, there are two methods:

Method 1:Double-click at the red box shown in the figure below to set a breakpoint, double-click again to cancel the breakpoint setting

...

Method 2: Click the left mouse button at the red box shown in the figure above, the following menu pops up, the user can click the red box 2 to set or cancel the breakpoint

...