background image

Getting Started

15

3.  S

OFTWARE

 I

NSTALLATION

 & O

VERVIEW

To develop and debug programs for the RCM2200 (and for all
other Z-World and Rabbit Semiconductor hardware), you must
install and use Dynamic C. This chapter takes you through the
installation of Dynamic C, and then provides a tour of its major
features with respect to the RCM2200 module.

3.1  An Overview of Dynamic C

Dynamic C integrates the following development functions into one program:

Editing

Compiling

Linking

Loading

In-Circuit Debugging

In fact, compiling, linking and loading are one function. Dynamic C does not use an In-
Circuit Emulator; programs being developed are downloaded to and executed from the 
“target” system via an enhanced serial-port connection. Program development and debug-
ging take place seamlessly across this connection, greatly speeding system development.

Other features of Dynamic C include:

Dynamic C has an easy-to-use built-in text editor. Programs can be executed and 
debugged interactively at the source-code or machine-code level. Pull-down menus and 
keyboard shortcuts for most commands make Dynamic C easy to use.

Dynamic C also supports assembly language programming. It is not necessary to leave 
C or the development system to write assembly language code. C and assembly lan-
guage may be mixed together.

Debugging under Dynamic C includes the ability to use 

printf

 commands, watch 

expressions, breakpoints and other advanced debugging features. Watch expressions 
can be used to compute C expressions involving the target’s program variables or func-
tions. Watch expressions can be evaluated while stopped at a breakpoint or while the 
target is running its program.

Содержание RCM2000 Series

Страница 1: ...RabbitCore RCM2200 C Programmable Module with Ethernet Getting Started Manual 019 0096 020208 E...

Страница 2: ...event danger to life or property it is the responsibil ity of the system designer to incorporate redundant protective mechanisms appropri ate to the risk involved All Z World products are 100 percent...

Страница 3: ...es 7 2 2 2 Prototyping Board Expansion 8 2 3 Development Hardware Connections 9 2 3 1 Attach Module to Prototyping Board 9 2 3 2 Connect Programming Cable 10 2 3 3 Connect Ethernet Network Cable 11 2...

Страница 4: ...esses are Used 27 4 5 Dynamically Assigned Internet Addresses 28 4 6 Placing Your Device on the Internet 29 4 7 How to Set IP Addresses in the Sample Programs 30 4 8 How to Set Up your Computer s IP A...

Страница 5: ...ve interface with another Rabbit based system The slave port may also be used with non Rabbit systems although addi tional logic may be required The RCM2200 is equipped with a 10Base T Ethernet port 2...

Страница 6: ...c specifications for the RCM2200 NOTE For complete product specifications see Appendix A in the RabbitCore RCM2200 User s Manual The RCM2200 modules have two 26 pin headers to which cables can be conn...

Страница 7: ...ware support for the integrated Ethernet port Most users will want more detailed information on some or all of these topics in order to put the RCM2200 module to effective use 1 3 1 Additional Product...

Страница 8: ...es of manuals that users don t need Finding Online Documents The online documentation is installed along with Dynamic C and an icon for the docu mentation menu is placed on the workstation s desktop D...

Страница 9: ...opment Kit Contents The RCM2200 Development Kit contains the following items RCM2200 module with Ethernet port 256K flash memory and 128K SRAM RCM2200 Prototyping Board Wall transformer power supply 1...

Страница 10: ...progress to more sophisticated experimentation and hardware development modi fications and additions can be made to the board without modifying or damaging the RCM2200 module itself The Prototyping B...

Страница 11: ...lly open switches are con nected to the PB2 and PB3 pins of the master RCM2200 module and may be read as inputs by sample applications Two LEDs are connected to the PE1 and PE7 pins of the master modu...

Страница 12: ...MAX232CPE driver chip or a similar device is recommended for the U2 Refer to the Prototyping Board schematic for additional details A 10 pin 0 1 inch spacing header strip can be installed at J6 to pe...

Страница 13: ...yping Board 2 3 1 Attach Module to Prototyping Board Turn the RCM2200 module so that the Ethernet connector end of the module extends off the Prototyping Board as shown in Figure 4 below Align the mod...

Страница 14: ...d module is powered up Press the module s pins firmly into the Prototyping Board headers 2 3 2 Connect Programming Cable The programming cable connects the RCM2200 module to the PC running Dynamic C t...

Страница 15: ...rs and permits direct connection of two client systems A standard RJ 45 network cable will not work for this purpose Micro LAN Another simple alternative for desktop development Use a small Eth ernet...

Страница 16: ...are now ready to be used NOTE A RESET button is provided on the Prototyping Board to allow hardware reset without disconnecting power To power down the Prototyping Board unplug the power connector fr...

Страница 17: ...ed on your workstation s desktop click on it to reach the documentation menu You can create a new desktop icon that points to default htm in the docs folder in the Dynamic C installation folder 3 For...

Страница 18: ...14 RabbitCore RCM2200...

Страница 19: ...m development and debug ging take place seamlessly across this connection greatly speeding system development Other features of Dynamic C include Dynamic C has an easy to use built in text editor Prog...

Страница 20: ...nked and downloaded on the fly On a fast PC Dynamic C can load 30 000 bytes of code in 5 seconds at a baud rate of 115 200 bps 3 1 Hardware Requirements To install and run Dynamic C your system must b...

Страница 21: ...covered in this section Selected steps that may be confusing to some users are outlined below Some of the installation utility screens may vary slightly from those shown 3 2 1 Program Documentation F...

Страница 22: ...installed to save hard drive space or installed elsewhere on a separate or net work drive for example The installation type is selected in the installation menu shown above The options are Typical Ins...

Страница 23: ...le select COM1 This selection can be changed later within Dynamic C NOTE The installation utility does not check the selected COM port in any way Speci fying a port in use by another device mouse mode...

Страница 24: ...r LED on the prototyping board is lit If it is check both ends of the programming cable to ensure that it is firmly plugged into the PC and the RCM2200 s programming port If you are using the Prototyp...

Страница 25: ...with Dynamic C several are specific to the RCM2200 module These programs will be found in the Samples RCM2200 folder We suggest that you examine the following five of these sample programs in order t...

Страница 26: ...22 RabbitCore RCM2200...

Страница 27: ...tool kit More information is available at www zworld com 1 Connect the AC adapter and the programming cable as shown in Chapter 2 Hardware Setup 2 Ethernet Connections If you do not have access to an...

Страница 28: ...ate network or as yet another approach install a second Ethernet adapter and set up a separate private network attached to the second Ethernet adapter Disconnecting your PC from the corporate network...

Страница 29: ...d the internal network These machines include a combination of proxy servers and firewalls that filter and multiplex Internet traf fic In the configuration below the RCM2200 board could be given a fix...

Страница 30: ...the same form as the IP address An example netmask is 255 255 255 0 This netmask has 8 zero bits in the least significant portion and this means that 28 addresses are a part of the local network Appl...

Страница 31: ...allow the protocol driver to determine the MAC address corresponding to a particular IP address If the table is empty the MAC address is determined by sending an Ethernet broadcast packet to all devi...

Страница 32: ...ress can be used to perform some Internet tasks such as sending e mail or browsing the Web but usually cannot be used to participate in conversations that originate elsewhere on the Internet If you wa...

Страница 33: ...usually work by disallowing traffic that did not originate from inside the net work If you want users on the Internet to communicate with your RCM2200 you have several options You can either place the...

Страница 34: ...ine MY_IP_ADDRESS 216 112 116 155 define MY_NETMASK 255 255 255 248 define MY_GATEWAY 216 112 116 153 In order to do a direct connection the following IP addresses can be used for the RCM2200 define M...

Страница 35: ...TCP IP Ethernet adapter name Double click on this line to bring up the TCP IP properties dialog box You can edit the IP address directly and the subnet mask Disable obtain an IP address automatically...

Страница 36: ...the red ACT light flashes on the RCM2200 board while the ping is taking place and indicates the transfer of data The ping routine will ping the board four times and write a summary message on the scre...

Страница 37: ...rt bb Use the Technical Support e mail form at www zworld com support support_submit html Call our Technical Support center Z World Technical Support 530 757 3737 Rabbit Semiconductor Technical Suppor...

Страница 38: ...34 RabbitCore RCM2200...

Страница 39: ...2200 1 H hardware connections 9 Ethernet 11 install RCM2200 on Prototyp ing Board 9 power supply 12 programming cable 10 hardware reset 12 I IP addresses 26 31 how to set 30 how to set PC IP address 3...

Страница 40: ...36 RabbitCore RCM2200...

Страница 41: ...Getting Started 37 SCHEMATICS 090 0120 RCM2200 Schematic 090 0122 RCM2200 Prototyping Board Schematic 090 0128 Programming Cable Schematic...

Страница 42: ...N CHANGING CONTROL APPROVAL PROJECT ENGINEER APPROVAL DOCUMENT REV ECO DESCRIPTION OF CHANGE REVISION HISTORY REVISION APPROVAL DATE DATE DRAWING CONTENT SIGNATURES DATE C APPROVALS INITIAL RELEASE NO...

Страница 43: ...C NONE...

Страница 44: ...CHANGING ECO APPROVAL APPROVAL CONTROL DOCUMENT DATE REVISION HISTORY ENGINEER PROJECT DATE REV DESCRIPTION REVISION APPROVAL NONE DATE B DRAWING CONTENT APPROVALS INITIAL RELEASE SIGNATURES 2900 SPA...

Страница 45: ...HEN CHANGING ECO APPROVAL APPROVAL CONTROL DOCUMENT DATE REVISION HISTORY ENGINEER PROJECT DATE REV DESCRIPTION REVISION APPROVAL SIGNATURES APPROVALS INITIAL RELEASE DRAWING CONTENT B 2900 SPAFFORD S...

Страница 46: ......

Отзывы: