Getting Started
15
2.4 Run a Sample Program
If you already have Dynamic C installed, you are now ready to test your programming
connections by running a sample program.
If you are using a USB port to connect your computer to the RCM2100 module, choose
Options > Project Options
and select “Use USB to Serial Converter” under the
Communications
tab.
Find the file
PONG.C
, which is in the Dynamic C
SAMPLES
folder. To run the program,
open it with the
File
menu (if it is not still open), then compile and run it by pressing
F9
or
by selecting
Run
in the
Run
menu. The
STDIO
window will open and will display a small
square bouncing around in a box.
2.4.1 Troubleshooting
If Dynamic C appears to compile the BIOS successfully, but you then receive a communi-
cation error message when you compile and load the sample program, it is possible that
your PC cannot handle the higher program-loading baud rate. Try changing the maximum
download rate to a slower baud rate as follows.
•
Locate the
Serial Options
dialog in the Dynamic C
Options > Project Options >
Communications
menu. Select a slower Max download baud rate.
If a program compiles and loads, but then loses target communication before you can
begin debugging, it is possible that your PC cannot handle the default debugging baud
rate. Try lowering the debugging baud rate as follows.
•
Locate the
Serial Options
dialog in the Dynamic C
Options > Project Options >
Communications
menu. Choose a lower debug baud rate.
If there are any other problems:
•
Check to make sure you are using the
PROG
connector, not the
DIAG
connector, on the
programming cable.
•
Check both ends of the programming cable to ensure that they are firmly plugged into
the PC and the programming port on the RCM2100.
•
Ensure that the RCM2100 module is firmly and correctly installed in its connectors on
the Prototyping Board.
•
Select a different COM port within Dynamic C. From the
Options
menu, select
Project Options
, then select
Communications
. Select another COM port from the list,
then click OK. Press
<Ctrl-Y>
to force Dynamic C to recompile the BIOS. If Dynamic C
still reports it is unable to locate the target system, repeat the above steps until you locate
the active COM port.
Содержание RabbitCore RCM2100 Series
Страница 1: ...RabbitCore RCM2100 C Programmable Module with Ethernet Getting Started Manual 019 0093 050505 F ...
Страница 34: ...30 RabbitCore RCM2100 ...
Страница 52: ...48 RabbitCore RCM2100 ...
Страница 54: ...User s Manual 50 ...
Страница 56: ......