16
RabbitCore 2000
3.2 Starting Dynamic C
Once the RabbitCore 2000 is connected as
described in the preceding pages, start
Dynamic C by double-clicking on the
Dynamic C icon or by double-clicking on the
.exe
file associated with
DcRab
in the
Dynamic C directory.
Dynamic C assumes, by default, that you are
using serial port COM1 on your PC. If you
are using COM1, then Dynamic C should
detect the RabbitCore 2000 and go through a
sequence of steps to cold-boot the RabbitCore
2000 and to compile the BIOS. If an error message appears, you have probably connected
to a different PC serial port such as COM2, COM3, or COM4. You can change the serial
port used by Dynamic C with the
OPTIONS
menu, then try to get Dynamic C to recognize
the RabbitCore 2000 by selecting
Recompile BIOS
on the
Compile
menu. Try the differ-
ent COM ports in the
OPTIONS
menu until you find the one you are connected to. If you
can’t get Dynamic C to recognize the target on any port, then the hookup may be wrong or
the COM port is not working on your PC.
If you receive the “BIOS successfully compiled …” message after pressing
<Ctrl-Y>
or
starting Dynamic C, and this message is followed by “Target not responding,” it is possi-
ble that your PC cannot handle the 115,200 bps baud rate. Try changing the baud rate to
57,600 bps as follows.
1. Open the BIOS source code file,
RABBITBIOS.C
.
2. Change the line
#define USE115KBAUD 1
// set to 0 to use 57600 baud
to read as follows.
#define USE115KBAUD 0
// set to 0 to use 57600 baud
3. Locate the
Serial options
dialog in the Dynamic C
Options
menu. Change the baud
rate to 57,600 bps, then press
<Ctrl-Y>
.
If you receive the “BIOS successfully compiled …” message and do not receive a “Target
not responding” message, the target is now ready to compile a program.
3.3 Run a Sample Program
You are now ready to test your set-up by running a sample program.
Find the file
FLASHLEDS.C
, which is in the Dynamic C
Samples/COREMODULE
folder. To
run the program, open it using
File > Open
, compile it with
Debug Compile to Target
in the
Compile
menu, and then run it by selecting
Run
in the
Run
menu. LEDs DS2 and DS3 on
the Prototyping Board should start flashing.
Installing Dynamic C
If you have not yet installed Dynamic C,
you may do so by inserting the CD from
the Development Kit in your PC’s CD-
ROM drive. The CD will auto-install
unless you have disabled auto-install on
your PC.
Chapter 1 provides detailed instructions
for the installation of Dynamic C and any
future upgrades.
Содержание RabbitCore 2000
Страница 1: ...RabbitCore 2000 C Programmable Core Module Getting Started 001004 C...
Страница 4: ...RabbitCore 2000...
Страница 7: ...Getting Started 1 1 INSTALLING DYNAMIC C...
Страница 24: ...18 RabbitCore 2000...
Страница 25: ...Getting Started 19 4 SAMPLE PROGRAMS...
Страница 33: ...Getting Started SCHEMATICS...
Страница 34: ......