9/11/95
Page 3
Figure 1 - Debugging an Am186EM Application program
2.
Installing Paradigm PDREM
: The installation program needs to know something about the
software and hardware environment to retrieve correct source code for building PDREM. When
installing PDREM, be sure to set the following parameters as indicated:
- Target processor:
AMD Am186EM
- Target Math coprocessor:
None
- Target UART:
Am186EM/internal
- System compiler:
Microsoft C/C++ 8.0
2
When the installation is finished, source files needed for building PDREM files for the SD186EM
board are copied to the hard drive. “Building and Downloading PDREM” shows how to build the
PDREM monitor and download it to the target board.
3.
Installing Paradigm Debug/RT-186
: The Paradigm Debug/RT-186 installation program will
request information such as the serial communication port and baud rate. The specified baud rate
defines the communication channel between Paradigm Debug/RT-186 (
pdrt186)
and PDREM.
Though the E86MON which resides on the SD186EM board is programmed to communicate with
the host at the baud rate of 19200,
pdrt186
may not communicate with the target at this baud rate;
rather it communicates with the target at the baud rate defined in the
dcomms.c
file in the
pdrem
directory. Make sure the baud rate being entered here matches the one defined in
dcomms.c
.
Figure 2 - Setting the baud rate in the
pdrem\dcomms.c
file
In general, the PDREM file (
pdrem.hex
) is downloaded to the board at a baud rate of 19200.
Afterward, the communication between Paradigm Debug/RT and the target is defined by PDREM,
not by E86MON. The default baud rate defined in the
dcomms.c
file is
115200
. To change
PDREM’s baud rate, simply change this number to a valid baud rate and rebuild PDREM. Figure
2 shows a portion of the
dcomms.c
file; the line defining the baud rate is shown in boldface.
4.
Setting the PATH:
After the Paradigm software is installed, the user should set the PATH
environment variable to include the directories of Paradigm LOCATE, Paradigm Debug/RT, and
the
bin
directory of the Microsoft C/C++ compiler and assembler. For instance, if Paradigm
LOCATE is installed in the directory
c:\locate
, Paradigm Debug/RT is installed in the directory
c:\pd
, the Microsoft C/C++ compiler is installed in the directory
c:\msvc
, and the Microsoft
Assembler is installed in the directory
c:\masm_61
, then the PATH environment variable should
contain the string:
2
Microsoft’s C compiler version 8.0 is the same as Microsoft’s Visual C++ version 1.5
......
/* Select Xtal frequency and desired BAUD Rate */
#define
CLK
40000000UL
#define
BAUD
115200UL
/* X1/X2 Crystal input frequency */
/* Desired BAUD rate */
#define IOB186EM 0xff00
/* Location of PCB */
#include
<dos.h>
/* Enable/disable functions */
#include “typedef.h”
#include “target.h”
#include “helpers.h”
......
/* Common definition and prototypes */
/* Target system specific information */
/* PDREMOTE/ROM helper functions */