Run A Sample Program; Troubleshooting - Rabbit RabbitCore RCM4200 User Manual

C-programmable analog core module with serial flash and etherne
Table of Contents

Advertisement

2.3 Run a Sample Program

Once the RCM4200 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
RCM4200 model, select Code and BIOS in Flash, Run in RAM on the "Compiler" tab in the
Dynamic C Options > Project Options menu. (Select Code and BIOS in Flash
RCM4210.) Click
OK.
If you are using a USB port to connect your computer to the RCM4200, click on the
"Communications" tab and verify that
port the USB programming cable. Click
was assigned to the RS-232/USB converter. Open
Device Manager > Ports
In Dynamic C, select
tab, then click
Communications
on your computer keyboard if the COM port number is outside the range on the
Enter
dropdown menu.
Now find the file
PONG.C
gram, open it with the
selecting
Run
in the
Run
play a small square bouncing around in a box.

2.3.1 Troubleshooting

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. 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 RCM4200 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 connectors on the Prototyping Board.
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
Communications
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
Communications
12
Use USB to Serial Converter
OK
and identify which COM port is used for the USB connection.
Options > Project Options
. You may type the COM port number followed by
OK
, which is in the Dynamic C
File
menu, compile it using the
menu. The
STDIO
dialog in the Dynamic C
menu. Select a slower Max download baud rate.
dialog in the Dynamic C
menu. Choose a lower debug baud rate.
. You may have to determine which COM port
Control Panel > System > Hardware >
, then select this COM port on the
SAMPLES
Compile
menu, and then run it by
window will open on your PC and will dis-
Options > Project Options >
Options > Project Options >
menu.
Start
For the
for the
is selected to sup-
folder. To run the pro-
RabbitCore RCM4200

Advertisement

Table of Contents
loading

Table of Contents