Program Debugging - Qianglongsheng Electronic Technology MCD-DEMO-II Manual

Table of Contents

Advertisement

DEMO-II Copyright of Qianlongsheng Electronics Technology (Shenzhen) Co., Ltd.
Step 6, click "Next", as shown in Figure 2-9 to come to tips interface.
Figure 2-9 Tip interface
Step 7, directly click "Done", and exit the wizard.
So far, we have completed establishing a project the source. For more details, please refer to MPLAB Operation Manual.
2.2.2 Debugging the program
Based on the source code edited and project created in above, this section will show you a brief introduction about
complying and debugging a program.
Compile
Implement menu command
establishment of project for you to compile this source code. When completing compile, the interface will be shown as
Figure 2-10.
source files
Figure 2-10 Source compiled results
From the output window of Figure 2-11, we can see the results that the program compiling failed because of a
wrong source, double-click the message, and the cursor will automatically stay at the line where there's an error, and at
the margin of most left of this line there's a "Green Arrow". It is obvious that the type of "MOVLW" has been wronged as
"MOVW". Now correct the typo and compile it again, the results are shown in Figure 2-11.
Message [302] information tips draws your attention to BANK selection, even if BANK is set up correctly, the
messages will still appear, but it does not affect the results of the implementation of program.
If there is an error in the program, it will not generate the target HEX file, to get HEX file you need to correct all errors
in the source codes.
and MPLAB will automatically call the tools mentioned in above Step 3 of
ProjectàBuild All
Compiler tips
Page 7 of 33
Figure 2-11 Compiling succeeds

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents