
12
RabbitCore RCM4000
2.3 Run a Sample Program
Once the RCM4000/RCM4010/RCM4050 is connected as described in the preceding pages,
start Dynamic C by double-clicking on the Dynamic C icon on your desktop or in your
Start
menu.
If you are using a USB port to connect your computer to the RCM4000/RCM4010/
RCM4050, click on the “Communications” tab and verify that Use USB to Serial Con-
verter
is selected to support the USB programming cable. Click OK. You may have to
determine which COM port was assigned to the RS-232/USB converter. Open Control
Panel > System > Hardware > Device Manager > Ports
and identify which COM port is
used for the USB connection. In Dynamic C, select Options > Project Options, then
select this COM port on the Communications tab, then click OK. You may type the COM
port number followed by Enter on your computer keyboard if the COM port number is out-
side the range on the dropdown menu.
Now find the file PONG.C, which is in the Dynamic C SAMPLES folder. To run the pro-
gram, open it with the File menu, compile it using the Compile menu, and then run it by
selecting Run in the Run menu. The STDIO window will open on your PC and will dis-
play a small square bouncing around in a box.
2.3.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 a 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. Click OK to save.
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. Click OK to save.
If you receive the message No Rabbit Processor Detected, the programming
cable may be connected to the wrong COM port, a connection may be faulty, or the target
system may not be powered up. First, check to see that the power LED on the Prototyping
Board is lit and that the jumper across pins 5–6 of header JP10 on the Prototyping Board is
installed. If the LED is lit, check both ends of the programming cable to ensure that it is
firmly plugged into the PC and the programming header on the RCM4000 with the marked
(colored) edge of the programming cable towards pin 1 of the programming header. Ensure
that the module is firmly and correctly installed in its connector on the Prototyping Board.
If there are no faults with the hardware, select a different COM port within Dynamic C as
explained for the USB port above. 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 for another available COM port. You should receive a Bios compiled success-
fully
message once this step is completed successfully.