Qianglongsheng Electronic Technology MCD-DEMO-II Manual page 31

Table of Contents

Advertisement

DEMO-II Copyright of Qianlongsheng Electronics Technology (Shenzhen) Co., Ltd.
3) Implement the menu command
compiled results will be shown as Figure 5-2. We can see from the figure as "BUILD SUCCEEDED", which indicates
that the compiling is successful and it has created a KEY4x4.HEX file under the directory of the project (only compiling
succeeds can it create such a file).
It can be seen from the figure that there are several messages, suggesting that the registers used are not in the
correct BANK, please carefully check the program to ensure that all the registers are in the right BANK (even if entirely
correct, the information will still emerge, but it does not affect the implementation of results).
If there are ERROR[num] or WRNING[num] in the compiling results (num means the error or warning number), you
may locate the cursor to the position that cause such errors or warnings by double clicking the message immerged, and
correct the source code and re-compile it repeatedly until it shows the result as in Figure 6-2.
Using MCD2 to debug the source
1) In accordance with the method shown in Figure 3-2, connect the MCD2 to PC and DEMO-II development board.
2) Implement the menu command
3) Implement the menu command
use its own power supply (i.e. disable "MCD2 power from the target board". It is shown in Figure 5-3.
Figure 5-3 Set up communication ports and power supply for target board
4) Implement menu command
board, and when it is successfully connected it will shown as in Figure 5-4 with a message.
5) Implement menu command
target MCU chip (Note: now the MCU cannot run on offline mode but has to be run under debugging mode), after
programming it will show a message as in Figure 5-5.
6) Implement menu command
or the icon
ProjectàBuild ALL
Figure 5-2 Source compiling results
DebuggeràSelect Tool to s
to select the USB as the communication port, and the board will
DebuggeràSettings
or icon in the tool bar to connect MCD2 and DEMO-II development
DebuggeràConnect
or the icon in the tool bar to program/burn the objective codes to the
DebuggeràProgram
or toolbar icon, we can see the display of "FF" in the DEMO-II
DebuggeràRun
Page 31 of 33
to compile the source code. The
in the tool bar
elect MPLAB ICD 2 (same as MCD2) as a debugging tool.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents