參數(shù)資料
型號: DEBUGGING
英文描述: Debugging an Am186EM Application on the SD186EM Demonstration Board Using Microsoft's C/C++ Compiler and Paradigm Debug Software Application Note? 80.0KB (PDF)
中文描述: 調(diào)試的SD186EM演示板使用微軟的C / C編譯器和調(diào)試軟件中的應用范例說明1 Am186EM應用程序? 80.0KB(PDF格式)
文件頁數(shù): 10/15頁
文件大?。?/td> 80K
代理商: DEBUGGING
9/11/95
Page 10
Line 27 indicates that the code section starts at segment 0x100 (or at address 0x1000
4
) as
indicated in the map statement on line 16. Line 28 indicates that the data section starts at
segment 0x700 (or at address 0x7000
4
) as indicated in the map statement on line 17.
Lines 29 and 37 are commented out because there is no code for chip select.
Running nmake
or
nmaker
: To build the absolute executable file, simply invoke
nmake
from
the
demo
directory (make sure the environment variable
LIB
contains the directory of the run-time
ROMable libraries as described in the section “Installing Paradigm LOCATE”). When
nmake
finishes, the absolute executable file
sieve.axe
is created and is ready for debugging. NOTE: Use
nmaker
instead of
nmake
in a Microsoft Windows DOS box to avoid possible conflict between
nmake
and
locate
.
Though Microsoft Visual Workbench (VWB) included in the Microsoft C/C++ compiler is a powerful
tool, it is incompatible for use in embedded applications. VWB does not support Microsoft assembler
MASM
directly, and it always assumes that the user wants to create a PC-type application. The user
must take care of the extra steps such as including ROM startup code and run-time libraries in a
makefile. Once the makefile is generated, it seems easier to invoke
nmake
from a DOS shell rather
than trying to include the external makefile in the VWB environment. Page 118 of the Paradigm
LOCATE Reference Manual explains in detail how to include an external makefile from the VWB
environment.
2.
Invoking Paradigm Debug/RT - PDRT186
:
pdrt186
To invoke Paradigm Debug/RT, and load the demo program from the command line, simply invoke
the “
pdrt186
sieve
” command
from a DOS shell. The serial communication information such as the
communication port and baud rate is defined in the
pdrt186.ini
file, which was created when Paradigm
Debug/RT was installed. The baud rate defined in this file must match the baud rate defined in the
dcomms.c
file in the
pdrem
directory. Information in the
pdrt186.ini
file can be changed at anytime;
it resides in the Paradigm Debug/RT
c:\pd
directory.
3.
A look at the makefile
The
makefile
included in the
demo
directory is ready to build the
sieve.c
program. A closer look at
the makefile reveals that there are two other files that are compiled and linked with the demo program
to produce a ROMable object file; the files are:
msc80.asm
, and
cinit.asm
. These are two of the five
startup files being distributed with the Paradigm LOCATE software. Startup code takes care of
necessary steps from the time the target is reset to the time the application program is executed. The
source code of the startup files resides in the
c:\locate\msc80
directory. Startup code, if used, should
always be linked first.
The
sieve.c
demo program is a simple program, more sophisticated programs are demonstrated in other
sub-directories of the
examples
directory. These programs are not only linked with the startup code,
they are also linked with ROMable run-time library helpers. The sources of the library helpers reside
in the
c:\locate\msc80\helpers
directory. Library helpers define variables/symbols and interrupt
handlers needed by the ROMable run-time libraries. When compiling the application program, if the
linker generates some “Undefined symbols” messages, chances are those unfamiliar symbols are
4
Physical address is calculated by shifting the segment value left 4 bits and adding the 16-bit offset
value to yield a 20-bit physical address. The value of the 16-bit offset is 0 in this case.
相關PDF資料
PDF描述
DECIMATE DECIMATE⑩
DEIC420 20 Ampere Low-Side Ultrafast RF MOSFET Driver
DELAY EM56/57 - Speech & Music Synthesizer - Application Note - Application Note
DEM-ACF2101BP DEM-ACF2101BP - DISCONTINUED PRODUCT. No longer recommended for new design.
DEM-ADS83XE DEM-ADS83xE - EVALUTION FIXTURE
相關代理商/技術(shù)參數(shù)
參數(shù)描述
DEBURRER-RS 制造商:Spear & Jackson 功能描述:PIPE DEBURRER 3-32MM
DEC09ST 制造商:ITW Switches 功能描述:
DEC1001 功能描述:烙鐵 DISC BY MFG 1/02 DUAL IRON STATION RoHS:否 制造商:Weller 產(chǎn)品:Soldering Stations 類型:Digital, Iron, Stand, Cleaner 瓦特:50 W 最大溫度:+ 850 F 電纜類型:US Cord Included
DEC1002-OD 制造商:Cooper Hand Tools / Weller 功能描述:SOLDERING STATION
DE-C13-J7 制造商:Japan Aviation Electronics (JAE) 功能描述: