Home
User Manual
Contents
1. A2 5 PIO signals 2 Top view Pin Name Function 1 Vcc Power 2 GND Ground 3 PCO Parallel I O Port C Bit 0 4 GND Ground 5 PCI Parallel I O Port C Bit 1 6 GND Ground 2 14 7 PC2 Parallel I O Port C Bit 2 1 13 8 GND Ground 9 PC3 Parallel I O Port C Bit 3 10 GND Ground 11 SPI CS1 QSPI Chip Select Output 1 12 GND Ground 13 SPI CS2 QSPI Chip Select Output 2 14 Vcc Power Table A2 5 Pinout PIO signals 2 A2 6 10 100 Mbps Ethernet Connector Top view Pin Name Function 1 TX 10 100 Mbps LAN TX pin 2 TX 10 100 Mbps LAN TX pin 3 RX 10 100 Mbps LAN RX pin 4 not connected 5 not connected 6 RX 10 100 Mbps LAN RX pin 1 7 not connected 8 not connected Table A2 6 Pinout 10 100 Mbps Ethernet connector A2 7 Power Connector Top view Pin Name Function 3 1 Vcc Power In w 2 GND Ground 4 m 3 GND Ground Table A2 7 Pinout power connector SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Appendix 3 Mechanical Dimensions APPENDIX 3 MECHANICAL DIMENSIONS The DNP 5282 uses a 40 pin DIL socket as mechanical base Figure A4 1 shows the dimensions All length dimensions have a tolerance of 0 5 mm 55 mm DIL NetPC DNP 5282 23 mm 2 54 mm 48 26 mm 3 37 mm 3 37 mm ET e 12 mm p 15 24 mm 3 88 mm 3 88 mm Figure A3 1 Dimensions of the DN
2. Pin Name MCFS5282 Pinfunction MCFS5282 Pin 1 PAO ANS RA 2 PAI AN53 T4 3 PA2 ANSS P3 4 PA3 ANS56 R3 5 PA4 ANO T3 6 PAS ANI R2 7 PA6 AN2 T2 8 PA7 AN3 RI 9 PBO GPTAO N13 10 PBI GPTAI P13 11 PB2 GPTA2 R13 12 PB3 GPTA3 T13 13 PB4 SCL E15 14 PB5 SDA E14 15 PB6 CANTX E13 16 PB7 CANRX D16 36 PCO QSPIDO F13 37 PCI QSPIDI E16 38 PC2 QSPICLK F14 39 PC3 QSPICSO F15 Table A1 4 DNP 5282 PIO Mapping SSV EMBEDDED SYSTEMS EIN DNP 5282 Starter Kit Appendix 1 The DNP 5282 in Detail a Sas o A1 6 DNP 5282 BDM Interface You can use an adapter to convert the miniature BDM interface of the DNP 5282 to the common 2 54 mm raster Then standard BDM interface modules can be used DIL NetPC DNP 5282 BDM interface Figure A1 4 Position of the BDM interface on the DNP 5282 Pin Name Function 1 VIO 3 3 VDC I O Voltage Power 2 GND Ground 3 TA Background Debug Mode 4 BKPT Background Debug Mode 5 Reset Background Debug Mode 6 DSCLK Background Debug Mode 7 DSI Background Debug Mode 8 TCLK Background Debug Mode 9 PST3 Background Debug Mode 10 DSO Background Debug Mode 11 PST2 Background Debug Mode 12 DDATA3 Background Debug Mode 13 PSTI Background Debug Mode 14 DDATA2 Background Debug Mode 15 PSTO Background Debug Mode 16 DDATAI Background Debug Mode 17 PSTCLK Background Debug Mode 18 DDATAO Backgrou
3. Figure 5 12 Command set with parameters SSV EMBEDDED SYSTEMS 22 DNP 5282 Starter Kit Using a Windows based Development System 5 5 Running Linux The DNP 5282 is delivered with a pre installed Linux When booting make sure the RCM jumper of the DNP 5282 is not set When the Linux boot process is done the system will stop with the login prompt shown in figure 5 13 The DNP 5282 Linux does not need a user login with user name and password Just enter your Linux commands directly after the boot process Note On every boot process without the RCM jumper set please see chapter 3 5 there is a serial console available with following parameters 115 200 bps no parity 8 data bits 1 stop bit no handshake DNLsk HyperTerminal Datei Bearbeiten Ansicht Anrufen bertragung Dg 3 oa ge 0x00300000 0x00400000 spare 1 0x00400000 0x00800000 spare 2 NET Linux TCP IP 1 0 for NET4 O IP Protocols ICMP UDP TCP kmem create Forcing size word alignment ip dst cache IP routing cache hash table of 512 buckets 4Kbytes TCP Hash tables configured established 1024 bind 1024 NET4 Unix domain sockets 1 0 SMP for Linux MEI 9 JFFS Trying to mount a non mtd device VFS Mounted root romfs filesystem readon Freeing unused kernel memory 24k freed CN Oxef000 Using lib modules ssvhwa o ssvhwa module installed eth config auto negotiation on 100HDM 10FDM 10HDM FEC ENET rcv is
4. RCM RCM disabled JP1 not set Figure 3 1 Activation of RCM on the DNP 5282 DNP 5282 3 6 10 100Mbps Ethernet Interface The DNP 5282 is using a Realtek RTL8201BL PHY 10 100Mbps chip that allows Ethernet connectivity with a speed up to 100Mbps The RJ45 Ethernet interface on the DNP EVA6 is just a simple connection over a transformer to the DIL interface pins which are connected to the LAN controller onto the DNP 5282 Two miniature LEDs are placed on the DNP 5282 for a visual check of the LAN activity DIL NetPC DNP 5282 D LEDO Figure 3 2 Position of the miniature LEDs on the DNP 5282 SSV EMBEDDED SYSTEMS EM DNP 5282 Starter Kit Board Components Sas o 3 7 3 8 3 9 3 10 3 11 3 12 3 13 Reset Button Next to the power connector you find the reset button Press it down if the system hangs or you need to restart it Pressing the reset button will only restart the DNP 5282 To reset any connected devices please turn off the complete power from the system Power Connector The power connector on the DNP EVA6 has to be connected with the power supply which is added to your Starter Kit Alternatively you are able to use a similar power supply that provides 5V DC 10 and approx 1500 mA current Power LED The Evaluation Board DNP EVA6 is equipped with a single green LED This LED will light up when the board is provided with the necessary operating voltage Serial Interfaces COM1 and
5. 3 Datei Sitzungen Optionen Hilfe linux cat etc inetd conf telnet stream tcp nowait root usr sbin tcpd in telnetd tftp doran udp wait root usr sbin tcpd in tftpd c s tftpboot linux i Figure 5 31 Running TFTPD32 Check the TFTP connection between the DIL NetPC DNP 5282 and your PC sys tem Open a Telnet session and use the following commands for downloading and uploading files tftp g l file name ip addr tftp p l file name ip addr The command fftp is the name of the DNP 5282 TFTP client program The parameter g stands for get get a file from the PC system to the DNP 5282 The parameter p stands for put put a file from the DNP 5282 to the PC system The parameter file name specifies the file for put or get The parameter ip addr stands for the IP address of your PC system i e 192 168 0 1 Most TFTP server programs work with a default directory for put and get com mands Each TFTP put command writes a file to this directory Each TFTP get command reads the file from this directory on your PC system Most TFTP server programs allow you to change this directory SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System Example The following picture shows the use of the DNP 5282 TFTP client within a Telnet session Terminal Terminal 2 Datei Sitzungen Optionen Hilfe drwxr xr x 20 0 1024 Jun 9 06
6. DIL NetPC DNP 5282 Linux Starter Kit User Manual SSV Embedded Systems Heisterbergallee 72 D 30453 Hannover Tel 49 0 511 40000 0 Fax 49 0 511 40000 40 Manual Revision 1 3 E Mail sales ist1 de Date 2004 07 14 For further information regarding our products please visit us at www dilnetpc com DNP 5282 Starter Kit Content m a CONTENT 1 INTRODUCTION Eten ethos thue rare E E M LA E LI AE UM 4 1 1 Conventions used in this Document 4 1 2 Check EE 4 1 3 Features Evaluation Board DNP BEWAD 20a en 5 1 4 Features DIENEIPC Ee ee Ee Eeer 3 2 BOARDLAY OU EE 6 3 BOARD COMPONENTS EEN 7 3 1 DALTON TETTE 7 32 E 7 3 3 Expansion BUS uses aaa nn 7 3 4 pS EE 7 3 5 REM HE eege eege 8 3 6 I0 100MDbps Ethernet Interfate ie eines etr pot rac dra a 8 3 7 e GER a EE 9 3 8 Power Connectors se tre oreet nase lehnen 9 3 9 Power ElbmT O 9 3 10 Serial Interfaces COM T and COM2 seen 9 3 11 CAN Connector nonren ee ee nenne GAEE 9 3 12 CAN Teri Te 9 3 13 Prototype Arena 9 4 each est e 10 4 1 Mounting the Ee 10 4 2 Cable Connections euer ee 11 4 3 Serial E 12 4 4 Ethernet Lin MENOR 13 4 5 ege eege Ee 14 5 USING A WINDOWS BASED DEVELOPMENT SYSTEM cnm 15 3 1 Setup the EI ee Hana 15 3 2 Checking the Ethernet Link eek iy uua px MA I MM teers 19 5 3 Web Seryer ACCESS sanieren 20 5 4 Assigning a new IP Address to the DNP 5282 esses 21 5 5 Rynning bl dr ne eorn a
7. Hello from DNP 5280 n D linux home dnpb280 home dnp5280 m68k elf gcc Wall m5307 Ml elf2flt 0s o hello hello c lc c 5 warning return type of main is not int home dnp5280 home dnp5280 ls al hello rwuxr r 1 root root 20128 Dez 12 17 30 hello linux home dnp5280 J D Neu FF Terminal Ned Figure 5 36 Working with the GNU Cross Tool Chain Transfer the executable from your PC hard disk drive to the DNP 5282 RAM disk or JFFS based flash disk drive and run the executable on your DNP 5282 Use a TFTP session and a Telnet session for this task Please enter the following com mands within the DNP 5282 Telnet session window tftp g I hello 192 168 0 1 chmod x hello hello The first command line transfers the executable hello from the PC to the DIL NetPC DNP 5282 This line assumes that the PC is using the IP address 192 168 0 1 The second line makes sure that the executable attribute is set for hello The next command line runs Aello SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System SS 5 6 8 GNU Cross Debugger The GNU Cross Tool Chain for DNP 5282 Linux C programming offers a pre build cross version of the GNU Debugger called m 66k elf gdb This debugger runs on a Linux based PC and allows you to debug DNP 5282 uCLinux executables with ELF layout at C source code level over a remote con nection to the DNP 5282 The cross
8. Using lib modules ssvhwa o ssvhwa module installed eth0 config auto negotiation on 100HDX 10FDX 10HDX rev is not last DNP 5280 3V board BusyBox v0 60 4 2003 09 19 13 12 0000 Built in shell msh Enter help for a list of built in commands Figure 5 21 Linux command prompt SSV EMBEDDED SYSTEMS 28 DNP 5282 Starter Kit Using a Linux based Development System 6 2 Checking the Ethernet Link Please open a shell window and type in ping 192 168 0 126 Every ping request has to be answered by your DNP 5282 similar as shown below E root n6g4d3 localdomain root Terminal IEHX Datei Sitzungen Optionen Hilfe Eroot n6g4d3 rootl ping 192 168 0 126 ing no S0 TIMESTAMP support falling back to SIOCGSTAMP 168 0 126 192 168 0 126 from 192 168 0 1 56 84 bytes of data from 192 168 0 126 icmp seq 0 ttl 255 time 1 065 msec from 192 168 0 126 icmp seq 1 ttl 255 time 434 usec from 192 168 0 126 icmp seq 2 ttl 255 time 413 usec from 192 168 0 126 icmp seq 3 tt1 255 time 433 usec from 192 168 0 126 icmp seq 4 tt1 255 time 428 usec from 192 168 0 126 icmp seq b ttl 255 time 390 usec from 192 168 0 126 icmp seq 6 ttl 255 time 378 usec from 192 168 0 126 icmp seq 7 tt1 255 time 407 usec from 192 168 0 126 icmp seq 8 tt1 255 time 417 usec from 192 168 0 126 icmp seq 9 tt1 255 time 415 usec from 192 168 0 126 icmp seq 10 ttl 255 time 409 usec from 192 168 0 126 icmp seq 11 ttl 255 tim
9. subsequent copies and derivative works made from that copy This option is useful when you wish to copy part of the code of the Library into a program that is not a library 4 You may copy and distribute the Library or a portion or derivative of it under Section 2 in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine readable source code which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange If distribution of object code is made by offering access to copy from a designated place then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code even though third parties are not compelled to copy the source along with the object code 5 A program that contains no derivative of any portion of the Library but is designed to work with the Library by being compiled or linked with it is called a work that uses the Library Such a work in isolation is not a derivative work of the Library and therefore falls outside the scope of this License However linking a work that uses the Library with the Library creates an executable that is a derivative of the Library because it contains portions of the Library rather than a work that uses the library The executable is therefore covered by this License Section 6 stat
10. 50 drwxr xr x 10 0 32 Jan 1 1970 tftp g l test txt 192 168 0 1 ls al drwxr xr x 20 0 1024 Nov 30 00 19 drwxr xr x 10 0 32 Jan 1 1970 10 0 12 Nov 30 00 19 test txt Figure 5 32 Using the DNP 5282 TFTP client within a Telnet session Note A file transfer to the DNP 5282 must be started with a Telnet session from RAM disk or JFFS based flash disk directories You need R W access for the TFTP get command SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System 2 2 6 7 GNU Cross Tool Chain This chapter describes how to install and use the Linux GNU Cross Tool Chain for DNP 5282 Linux C programming You need administrator rights on your Linux PC for following these steps The GNU Cross Tool Chain for DNP 5282 Linux C programming comes within a Linux shell script file with the name m68k elf tool 20030314 sh You find this file at the DNP SK14 CD ROM The location of this 18 Mbytes shell script file is lu CLinuxVToolchain Point your file manager to m68k elf tool 20030314 sh zosis Adresse Bearbeiten Ansicht Gehe zu Lesezeichen Werkzeuge Einstellungen Fenster Hilfe GX EEIE E CU LUS DI Spin Groot m68k elf tools 20030314 sh 19 172 830 23 072003 09 25 r r I root E carom DK 081 D osa Bd 0 d SE Ee Setnereal LAN Sniffer Win32 amp eprs Picture TFTP Server Win32 Swww B BucLinux Som Spemos
11. 55mm x 23mm SSV EMBEDDED SYSTEMS EM DNP 5282 Starter Kit Board Layout a ss 5 2 BOARD LAYOUT The main component of the Starter Kit DNP SK14 is the Evaluation Board DNP EVA6 On this board you find the DIL NetPC DNP 5282 mounted on a 40 pin DIL socket DIL dual in line Please see chapter 4 1 how to mount the DNP 5282 The socket builds the interface between the individual parts on the DNP EVA6 and the DNP 5282 o Evaluation Board DNP EVA6 Rev 1 1 Prototype area Rss E DIL NetPC DNP 5282 PIO signals 1 J7 Reset button 2 DIL NetPC DNP 5282 9 Power connector PIO signals 2 J8 9 Power LED Expansion bus J9 com2 RS232 Veat connector J10 2 COM RS232 RCM jumper JP1 3 CAN termination jumper JP2 10 1 OOMbps Ethernet interface 3 CAN connector J5 Figure 2 1 Main components of the DNP EVA6 The Starter Kit DNP SK14 provides all required basic hard and software envi ronment which allow the development of individual applications for your DNP 5282 For an instant connection to your hardware the DNP EVA6 supports two serial COM interfaces and one 10 100Mbps Ethernet interface SSV EMBEDDED SYSTEMS 6 DNP 5282 Starter Kit Board Components Sas F 3 BOARD COMPONENTS 3 1 3 2 3 3 3 4 This chapter describes the most interesting components of the DNP EVA6 shown in chapter 2 and gives a short o
12. PURPOSE See the GNU General Public License for more details You should have received a copy of the GNU General Public License along with this program if not write to the Free Software Foundation Inc 59 Temple Place Suite 330 Boston MA 02111 1307 USA Also add information on how to contact you by electronic and paper mail If the program is interactive make it output a short notice like this when it starts in an interactive mode Gnomovision version 69 Copyright year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY for details type show w This is free software and you are welcome to redistribute it under certain conditions type show c for details The hypothetical commands show w and show c should show the appropriate parts of the General Public License Of course the commands you use may be called something other than show w and show c they could even be mouse clicks or menu items whatever suits your program You should also get your employer if you work as a programmer or your school if any to sign a copyright disclaimer for the program if necessary Here is a sample alter the names Yoyodyne Inc hereby disclaims all copyright interest in the program Gnomovision which makes passes at compilers written by James Hacker signature of Ty Coon 1 April 1989 Ty Coon President of Vice This General Public License does not permit incorporating your program int
13. Software Foundation may publish revised and or new versions of the Lesser General Public License from time to time Such new versions will be similar in spirit to the present version but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later version you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number you may choose any version ever published by the Free Software Foundation 14 If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these write to the author to ask for permission For software which is copyrighted by the Free Software Foundation write to the Free Software Foundation we sometimes make exceptions for this Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally NO WARRANTY 15 BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE THERE IS NO WARRANTY FOR THE LIBRARY TO THE EXTENT PERMITTED BY APPLICABLE LAW EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND OR OTHER PARTIES PROVIDE THE LIBRARY AS IS WITHOUT WARRANTY OF ANY KIND EITH
14. button Ordner suchen TFTPD32 by Ph Jounin o x Buch EmbeddedInternet Base Directory C Dokumente und Einstellungen kdw Ey Buch MSRmitARM Server interfaces 192 168 0 136 CH Buch MSRperInternet 0 C BusinessEnglish HCH DNP5280 CH BDMDebug C3 Bilder se Ip LC temp TFTP Server Wir Be Current Action Listening on port D DCH UserDoc v gt About a Ce Figure 5 17 Changing the default directory for TFTPD32 Example The following picture shows the use of the DNP 5282 TFTP client within a Telnet session cx Telnet 192 168 0 126 Gud ZhomeZhttpd ls al drwxr xr x drwxr xr x Sn 7 boa conf dnp5288 1 gif index html memmap html pinout html pio html spacer2 gif ssvlogo gif Katatatatatatatatatz GOGGOOGGOoG GOGGOGGGGCG o o p l ssvlogo gif 192 168 0 1 H tftp p l spacer2 gif 192 168 0 1 Figure 5 18 Using the DNP 5282 TFTP client within a Telnet session Note A file transfer to the DNP 5282 must be started with a Telnet session from RAM disk or JFFS based flash disk directories You need R W access for the TFTP get command SSV EMBEDDED SYSTEMS 26 DNP 5282 Starter Kit Using a Linux based Development System 6 USING A LINUX BASED DEVELOPMENT SYSTEM 6 1 The following paragraphs will help you to use the DNP 5282 with a development system running under Linux For these steps you will need a terminal program which normally comes a
15. can enter debugger commands within the DDD command line window For example show version The GNU Debugger shows then some copyright and version information and the current configuration Build for Host i686 pc linux gnu Build for Target m68k bdm elf SSV EMBEDDED SYSTEMS 46 DNP 5282 Starter Kit Appendix 1 The DNP 5282 in Detail APPENDIX 1 THE DNP 5282 IN DETAIL A1 1 Block Diagram Interrupt om ee S z t BIZ cor ex SL one Kee 64 KByte S 8 re 3 Flash SRAM gle 5 MCF5282 en a z BDM SDRAM si En o iie ats ooo cn Figure A1 1 Block Diagram of the MCF5282 MCF5282 Microcontroller Figure A1 2 Block Diagram of the DNP 5282 SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Appendix 1 The DNP 5282 in Detail a Sas o A1 2 Pin Assignment 40 pin DIL Connector Pin Name Group Function 1 PAO PIO Parallel I O Port A Bit 0 2 PAI PIO Parallel I O Port A Bit 1 3 PA2 PIO Parallel I O Port A Bit 2 4 PA3 PIO Parallel I O Port A Bit 3 5 PA4 PIO Parallel I O Port A Bit 4 6 PAS PIO Parallel I O Port A Bit 5 7 PA6 PIO Parallel I O Port A Bit 6 8 PA7 PIO Parallel I O Port A Bit 7 9 PBO PIO Parallel I O Port B Bit 0 10 PBI PIO Parallel I O Port B Bit 1 11 PB2 PIO Parallel I O Port B Bit 2 12 PB3 PIO Parallel I
16. capabilities on your development system In the following you will see the necessary settings for HyperTerminal under MS Windows Select the direct link cable connection via COMI interface or any other appropriate COM port in the dialog box and choose OK Verbinden mit e DNLsk Geben Sie die Rufnummer ein die gewahlt werden soll Land Region Ortskennzahl Rufnummer Verbindung herstellen ber Figure 5 1 Interface dialog box SSV EMBEDDED SYSTEMS 15 DNP 5282 Starter Kit Using a Windows based Development System Se Now you can change some configuration parameters such as the maximum baud rate on a further dialog box Select the value 115 200 in the bits per second field and close the dialog box by clicking the OK button as shown in the next figure Eigenschaften von COM5 Anschlusseinstellungen Bits pro Sekunde Datenbits Paritat Stoppbits Flusssteuerung Wiederherstellen Figure 5 2 Communication parameter settings All these settings can also be used for other terminal programs The following pa rameters are important to use e Connection speed 115 200 bps bits per second 8 data bits No parity bit 1 stop bit e No protocol Xon Xoff RTS CTS or similar SSV EMBEDDED SYSTEMS 16 DNP 5282 Starter Kit Using a Windows based Development System Sass F Now turn on the power for the DNP EVA6
17. code with the library We call this license the Lesser General Public License because it does Less to protect the user s freedom than the ordinary General Public License It also provides other free software developers Less of an advantage over competing non free programs These disadvantages are the reason we use the ordinary General Public License for many libraries However the Lesser license provides advantages in certain special circumstances For example on rare occasions there may be a special need to encourage the widest possible use of a certain library so that it becomes a de facto standard To achieve this non free programs must be allowed to use the library A more frequent case is that a free library does the same job as widely used non free libraries In this case there is little to gain by limiting the free library to free software only so we use the Lesser General Public License In other cases permission to use a particular library in non free programs enables a greater number of people to use a large body of free software For example permission to use the GNU C Library in non free programs enables many more people to use the whole GNU operating system as well as its variant the GNU Linux operating system Although the Lesser General Public License is Less protective of the users freedom it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program
18. debugger needs an Ethernet based TCP IP link between the PC and the DNP 5282 In addition the debugger needs also a remote debugging agent called gdbserver for the DNP 5282 This agent is pre installed within the DNP 5282 Linux Write your C program and translate the C source code with the GNU cross C compiler to an executable and a symbol file Use the following command line with the g parameter This sample command line builds an executable called oop from a source code file with the name oop c and a file oop gdb with symbol in formation m68k elf gcc Wall g m5307 WI elf2flt Os o loop loop c Ic x oL eJ a Datei Sitzungen Optionen Hilfe linux home dnp5280 cat loop c include lt stdio h gt include lt stdlib h gt int main void H int i 2 while i lt 256 printf d n i square i return EXIT SUCCESS int square int x t return x x linux home dnp5280 m68k elf gcc Hall g m5307 Ml elf2flt 0s o loop loop c lc loop c In function main loop c 9 warning implicit declaration of function square linux home dnp5280 ls al loop gdb ruxr xr x 1 root root 78612 Dez 18 16 56 loop gdb linux home dnp5280 ls al loop ruxr r 1 root root 20180 Dez 18 16 56 loop linux home dnp5280 J a3 Neu FF Terminal Nr 1 Figure 5 37 Compiling a C program with the GNU Cross Debugger Transfer the executable from your PC hard disk
19. equivalent access to copy the source code from the same place counts as distribution of the source code even though third parties are not compelled to copy the source along with the object code 4 You may not copy modify sublicense or distribute the Program except as expressly provided under this License Any attempt otherwise to copy modify sublicense or distribute the Program is void and will automatically terminate your rights under this License However parties who have received copies or rights from you under this License will not have their licenses terminated so long as such parties remain in full compliance 5 You are not required to accept this License since you have not signed it However nothing else grants you permission to modify or distribute the Program or its derivative works These actions are prohibited by law if you do not accept this License Therefore by modifying or distributing the Program or any work based on the Program you indicate your acceptance of this License to do so and all its terms and conditions for copying distributing or modifying the Program or works based on it 6 Each time you redistribute the Program or any work based on the Program the recipient automatically receives a license from the original licensor to copy distribute or modify the Program subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You
20. included without limitation in the term modification Source code for a work means the preferred form of the work for making modifications to it For a library complete source code means all the source code for all modules it contains plus any associated interface definition files plus the scripts used to control compilation and installation of the library Activities other than copying distribution and modification are not covered by this License they are outside its scope The act of running a program using the Library is not restricted and output from such a program is covered only if its contents constitute a work based on the Library independent of the use of the Library in a tool for writing it Whether that is true depends on what the Library does and what the program that uses the Library does You may copy and distribute verbatim copies of the Library s complete source code as you receive it in any medium provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty keep intact all the notices that refer to this License and to the absence of any warranty and distribute a copy of this License along with the Library You may charge a fee for the physical act of transferring a copy and you may at your option offer warranty protection in exchange for a fee 2 You may modify your copy or copies of the Library or any portion of it thus forming a work based on
21. not last BusyBox v0 60 4 2003 09 19 13 12 0000 Built in shell msh Enter help for a list of built in commands Verbunden 00 03 15 Auto Erkenn 115200 8 N 1 Figure 5 13 DNP 5282 Linux boot process Alternatively you can use a command line interface CLI like a Telnet client to communicate with the DNP 5282 Open for example a DOS window in MS Windows and type in the command telnet 192 168 0 126 If you have already assigned a different IP address to the DNP 5282 you need to enter this new IP address in the command line ex Eingabeaufforderung C gt telnet 192 168 0 126_ Figure 5 14 Running the MS Windows Telnet client SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Windows based Development System Within the Telnet client you can enter Linux commands that will be executed by the DNP 5282 The standard output will be shown in your Telnet client window as illustrated in the next figure ex Telnet 192 168 0 126 BusyBox v 60 4 2003 09 22 14 26 0000 Built in shell msh Enter help for a list of built in commands A ik Bip To m Qa Size State Command SOUBONE AL ro ffs_gcd portma binds bin inetd bin boa EES s 45 ttySO 46 47 53 54 ttypO 55 ttypd A 4 ls al drwxr xr x drwxr xr x drwxr xr x drwxr xr x SOOOSOOH O9999OS9SCT SOSOHOOSSOOOOOOO DIIINIINIINIININIIININ bin dev etc home lib mnt proc tmp gt
22. of the library if the user installs one as long as the modified version is interface compatible with the version that the work was made with c Accompany the work with a written offer valid for at least three years to give the same user the materials specified in Subsection 6a above for a charge no more than the cost of performing this distribution d If distribution of the work is made by offering access to copy from a designated place offer equivalent access to copy the above specified materials from the same place e Verify that the user has already received a copy of these materials or that you have already sent this user a copy For an executable the required form of the work that uses the Library must include any data and utility programs needed for reproducing the executable from it However as a special exception the materials to be distributed need not include anything that is normally distributed in either source or binary form with the major components compiler kernel and so on of the operating system on which the executable runs unless that component itself accompanies the executable It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system Such a contradiction means you cannot use both them and the Library together in an executable that you distribute You may place library facilities that are a work based on the Libr
23. the Ethernet interface of your PC system Check the IP ad dress of your Windows PC system with the ipconfig command The default IP ad dress factory setup of the DNP 5282 is 192 168 0 126 Now run the TFTP server program on your PC system TF TPD32 by Ph Jounin Base Directory C Dokumente und Einstellungen kdw Eigene Dateien DNP5280 CD ROM TFTP Server Win32 Browse Current Action Listening on port 69 About Settings Figure 5 16 Running TFTPD32 Check the TFTP connection between the DIL NetPC DNP 5282 and your PC sys tem Open a Telnet session and use the following commands for downloading and uploading files tftp g l file name ip addr tftp p l file name ip addr The command tftp is the name of the DNP 5282 TFTP client program The parameter g stands for get get a file from the PC system to the DNP 5282 The parameter p stands for put put a file from the DNP 5282 to the PC system The parameter file name specifies the file for put or get The parameter ip addr stands for the IP address of your PC system i e 192 168 0 1 SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Windows based Development System Most TFTP server programs work with a default directory for put and get com mands Each TFTP put command writes a file to this directory Each TFTP get command reads the file from this directory on your PC system For TFTPD32 you can change this directory with the browse
24. the exclusion of warranty and each file should have at least the copyright line and a pointer to where the full notice is found one line to give the library s name and a brief idea of what it does Copyright lt year gt name of author gt This library is free software you can redistribute it and or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation either version 2 1 of the License or at your option any later version This library is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the GNU Lesser General Public License for more details You should have received a copy of the GNU Lesser General Public License along with this library if not write to the Free Software Foundation Inc 59 Temple Place Suite 330 Boston MA 02111 1307 USA Also add information on how to contact you by electronic and paper mail You should also get your employer if you work as a programmer or your school if any to sign a copyright disclaimer for the library if necessary Here is a sample alter the names Yoyodyne Inc hereby disclaims all copyright interest in the library Frob a library for tweaking knobs written by James Random Hacker signature of Ty Coon 1 April 1990 Ty Coon President of Vice SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit L
25. to the DNP 5282 The cross debugger needs an Ethernet based TCP IP link between the PC and the DNP 5282 In addition the debugger needs also a remote debugging agent called gdbserver for the DNP 5282 This agent is pre installed within the DNP 5282 Linux The GNU debugger offers a simple command line interface and a lot of different commands With the help of DDD Data Display Debugger a graphical front end for command line debuggers you get a powerful graphical user interface for the GNU debugger DDD is a part of many PC Linux distributions DDD is also available from Attp www gnu org software ddd Write your C program and translate the C source code with the GNU cross C compiler to an executable and a symbol file Use the following command line with the g parameter This sample command line builds an executable called oop from a source code file with the name oop c and a file loop gdb with symbol in formation m68k elf gcc Wall g m5307 Wl elf2flt Os o loop loop c Ic Lx Datei Sitzungen Optionen Hilfe linux home dnp5280 cat loop c include lt stdio h gt include lt stdlib h gt int main void int i 2 while i lt 256 printf ZdNn i square i return EXIT SUCCESS int square int x return x x linux home dnp5280 m68k elf gcc Wall g m5307 Hl elf2flt 0s o loop loop c lc loop c In function main loop c 9 warning implicit declaration of func
26. var tmp usr var drwxr xr x dr xr xr x Irwxrwxrwx drwxr xr x EES N SIPPNDFRRRRRRHRR SOSOOSOOOOOOOO GGGOGOGOGOOGOOQG Wu Wu FrRR RrRF rRF RrRM w Figure 5 15 Enter Linux commands via Telnet Note You can enter Linux commands in different command line interfaces CLI like a serial console e g HyperTerminal Minicom or a Telnet client SSV EMBEDDED SYSTEMS 24 DNP 5282 Starter Kit Using a Windows based Development System SS m 5 6 File Transfer via TFTP The DIL NetPC DNP 5282 offers a very simple way for Ethernet based file trans fers between your PC system and the DNP 5282 RAM disk drives or JFFS based flash disk drives This file transfer 1s using the TCP IP service TFTP trivial file transfer protocol TFTP is server client based The DIL NetPC DNP 5282 Linux configuration of fers a TFTP client program Your PC needs a TFTP server program Note Windows based PCs do not offer TFTP server programs Only special server versions of MS Windows come with a TFTP server program For all other Windows based PCs you find the TFTP server program TFTPD32 in the directory ITFTPServer Win32 on your DNP SK14 CD ROM Copy all files from TFTP Server Win32 to a new directory on your Windows based PC hard disk drive TFTPD32 is a free non commercial product Please watch the license First you have to set up an Ethernet link between the DNP 5282 10 100 Mbps Ethernet interface and
27. 02 05 2002 15 28 mwxr xr x root root Slip pnp 4096 26 09 2003 11 23 rmwxr xr x root root Slost found i agit 34016 12 12 2003 17 40 rw r r root root Smnt 3 gif 18783 121220031737 rmw r r root root p Sopt Sproc test 11 121220031412 m r r root root H test ixt 0 121220031413 rw r r root root Sroot Sishin 4 I D dr HR Ein Element Eine Datei 18 3 MB insgesamt 0 Verzeichnisse K Figure 5 34 Copying m68k elf tool 20030314 sh to the local hard disk drive SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System Run the shell script file m68k elf tool 20030314 sh from a console window at your Linux based PC The shell script creates new directories at usr local and copies many files to the new directory of your PC hard disk drive a gt ILE ns a a O Datei Sitzungen Optionen Hilfe bash 2 04 ls al m68k elf tools 20030314 sh r xr xr x 1 root root 19172830 Dez 12 17 43 m68k elf tools 20030314 sh bash 2 04 m68k elf tools 20030314 sh usr local m68k elf usr local m68k elf bin usr local m68k elf bin nm usr local m68k elf bin strip usr local m68k elf bin ar usr local m68k elf bin ranlib usr local m68k elf bin as usr local m68k elf bin ld usr local m68k elf bin flthdr usr local m68k elf bin gcc Z usr local m68k elf bin elf2flt usr local m68k elf
28. 0x00300000 0x00400000 spare 1 0x00400000 0x00800000 spare 2 NET4 Linux TCP IP 1 0 for NET4 0 IP Protocols ICMP UDP TCP kmem_create Forcing size word alignment ip dst cache IP routing cache hash table of 512 buckets 4Kbyte TCP Hash tables configured established 1024 bind 1024 NET4 Unix domain sockets 1 0 SMP for Linux NET4 0 JFFS Trying to mount a non mtd device YFS Mounted root romfs filesystem readonly Freeing unused kernel memory 24k freed 0xea000 Oxef000 ol 4 D Neu FF Konsole Nri Figure 5 20 Linux boot process After the self test sequence is done the Linux boot process will be initialized When finished you will see the following screen with a Linux prompt waiting for a user input x Oe Datei Sitzungen Optionen Hilfe Creating 4 MTD partitions on Physically mapped flash of DNP5280 0x00000000 0x00050000 dBug 0x00050000 0x00300000 uClinux 0x00300000 0x00400000 spare 1 0x00400000 0x00800000 spare 2 NET4 Linux TCP IP 1 0 for NET4 0 IP Protocols ICMP UDP TCP kmem_create Forcing size word alignment ip dst cache IP routing cache hash table of 512 buckets 4Kbytes TCP Hash tables configured established 1024 bind 1024 NET4 Unix domain sockets 1 0 SMP for Linux NET4 0 JFFS Trying to mount a non mtd device YFS Mounted root romfs filesystem readonly Freeing unused kernel memory 24k freed 0xea000 Oxef000
29. 27 0 0 1 Mask 255 0 0 0 UP LOOPBACK RUNNING MTU 3924 Metric 1 RX packets 6 errors 0 dropped 0 overruns 0 frame 0 TX packets 6 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 0 root n6g4d3 rootl J lane Figure 5 23 IP address check via ifconfig SSV EMBEDDED SYSTEMS 29 DNP 5282 Starter Kit Using a Linux based Development System 6 3 Web Server Access Once the ping was successful you are ready to start a web browser on your de velopment system This may be the Konqueror file manager or the Netscape Communicator Navigator The Konqueror file manager is normally part of the Linux installation and acts as file manager as well as web browser Konqueror is able to detect automatically when an URL is entered and shows the content Just enter the URL http 192 168 0 126 and press E The embedded web server will deliver you a small description about the DNP 5282 That s it You are now online with the Starter Kit The web browser of your de velopment system is connected to the embedded web server of the DNP 5282 and shows you a static web page with some pictures x SSV EMBEDDED SYSTEMS DIL NetPC Konqueror Zlol v Adresse Bearbeiten Ansicht Gehe zu Lesezeichen Werkzeuge Einstellungen Fenster Hilfe E EES OARS ED URL i nttp 7182 168 0 126 EE GEES EY es ur 2 wm wur Embedded Networking
30. 768 96 672 13 home Figure 5 30 Enter Linux commands via Telnet Note You can enter Linux commands in different command line interfaces CLI i e a serial console like HyperTerminal or Minicom or a Telnet client SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System Ss m 6 6 File Transfer via TFTP The DIL NetPC DNP 5282 offers a very simple way for Ethernet based file trans fers between your PC system and the DNP 5282 RAM disk drives or JFFS based flash disk drives This file transfer is using the TCP IP service TFTP Trivial File Transfer Protocol TFTP is server client based The DIL NetPC DNP 5282 Linux configuration of fers a TFTP client program Your PC needs a TFTP server program Set up an Ethernet link between the DNP 5282 10 100 Mbps Ethernet interface and the Ethernet interface of your PC system Check the IP address of the PC sys tem with the Linux command ifconfig The default IP address factory setup of the DNP 5282 is 192 168 0 126 Now run a TFTP server program on your PC system Most Linux based PCs come with a pre installed TFTP server program Some of these systems start this TFTP server program at boot time the TFTP server is a part of the inetd service In all other cases you have to edit one or more configuration files SuSE etc inetd conf See the user documentation of your Linux distribution for de tails Terminal Terminal
31. 86 suse linux Figure 5 43 Working with the DDD SSV EMBEDDED SYSTEMS 44 DNP 5282 Starter Kit Using a Linux based Development System Sass F Now the debugger waits for your debugging commands First please enter always the following command line within the DDD command line window target remote 192 168 0 126 2222 DDD home dnp5280 loop c Die Edit View Program Commands Status Source Data main 9 a An ey 9 Lookup Find Break Watch RA Display Plot show potete Set Undiep include lt stdio h gt x include lt stdlib h gt include stdli Run int main void Interrupt int i 2 Step while Ci 256 Nest printf Xdn i square i20 Until Jreturn EXIT SUCCESS i e int square int x ER return x x Undo Edit Command Line Window Copyright 1999 2000 Universit t Passau Germany gdb target remote 192 168 0 126 2222 Remote debugging using 192 168 0 126 2222 xeb8048 in start O gdb T Can A Remote debugging using 192 168 0 126 2222 Figure 5 44 Typing commands in the command line window This debugger command line sets up the Ethernet based TCP IP connection be tween the PC and the DNP 5282 Please use the same TCP IP port number 2222 The sample command line assumes that the DNP 5282 uses the IP address 192 168 0 126 Then set
32. Assigning a new IP address to the DNP 5282 SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System Probably you have to change other parameters as well The next figure shows you how to use the command set with different parameters x 7 M M 8 8 0ETEUESUUTTTUUUTUKOUSUEIT KOUSOIUT TEES EEUU UE e Datei Sitzungen Optionen Hilfe ethaddr 00 CF 52 82 CF 01 dBUG gt dBUG gt set client 192 168 0 100 dBUG gt dBUG gt show e 16 115200 192 168 0 100 gateway 0 0 0 0 netmask 255 255 255 0 filename image bin filetype Image ethaddr 00 CF 52 82 CF 01 dBUG gt dBUG gt set Valid set options Xhexldeclbinloct unknown lt 9600 119200 138400 gt lt host IP lt board IP gt ateway IP gt lt n k gt filename lt filename gt filetype lt sreclcofflelflimage gt ethaddr lt aa bb cc dd ee ff gt dBUG gt ALT Z for help 1115200 8N1 NOR Minicom 1 83 1 VT102 Offline Bi Neu F konsole Nr Figure 5 27 Command set with parameters SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System 6 5 Running Linux The DNP 5282 is delivered with a pre installed Linux When booting make sure the RCM jumper of the DNP 5282 is not set When the Linux boot process is done the system will stop with the login prompt shown in figure 5 28 The DNP 5282 Linux does not need a user login with user name and password Just en
33. COM2 For an easy connection between the Starter Kit DNP SK14 and your development system you can use the serial interfaces COMI and COM2 The COM interfaces are realized as RS232 standard compliant Sub D ports with 9 pins Please see chapter A2 1 for the exact layout of the COM interfaces Note The serial interface COM2 does not offer handshake signals CAN Connector The CAN connector is the physical interface to the MCF5282 ColdFire CAN controller There is an on board 3 3V CAN transceiver SN65HVD230 Texas Instruments between the MCF5282 CAN controller and this connector CAN Termination Jumper To switch a CAN termination resistor to the CAN signals CAN and CAN place a jumper cap on both pins of the CAN termination jumper so that it 1s short Without the jumper cap the CAN termination jumper is not set and there is no CAN termination resistor for the CAN signals CAN and CAN Prototype Area The prototype area wire wrap offers space to develop and to test your own applications and circuits on the DNP EVA6 SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Connections Ss 4 CONNECTIONS For a quick and easy start with the Starter Kit DNP SK14 there are several con nections necessary The following chapter describes how and between which components these connections have to be made 4 1 Mounting the DNP 5282 To mount the DNP 5282 on the DNP EVAO identify the pin 1 corner on the socket and the pin 1 cor
34. E EE 23 5 6 Dudes re CC NR MN coc 25 6 USING A LINUX BASED DEVELOPMENT SYSTEM RR 27 6 1 Setup th Serial Link een 2T 6 2 Checking tbe Ethernet Link an eek 29 6 3 Web Servet ACCESS ee eee ee ee anne ee mene eet Saree een nen eee ee rer 30 6 4 Assigning a new IP Address to the DNP 5282 cccsccesccssscscsssscrssecnsnavsonseetccedsersanes 3l 6 5 Emmer L qe S 33 6 6 File Trans via TP EEN 35 SSV EMBEDDED SYSTEMS EI DNP 5282 Starter Kit Content aM E 6 7 GNU Cross Fool Cham ei 37 6 8 GNU Cross De BU II 40 6 9 GNU Cross Debugger with DDD Data Display Debuggert eee eee 43 APPENDIX 1 THE DNP S282 IN DETAIL era a 47 Al l Block Dig CAI nenn 47 Al 2 Pin Assignment 40 pin DIL Connector emere 48 Al 3 DNP 5282 Function Multiplexing with 40 pin DIL Connector 49 Al 4 DNP 5282 LEDS as 49 Al PIO E e TE 50 Al 6 DNP S232 BDM Inter Bee nn nE EEEE ERTE 51 Al 7 COMMS P et Mapping c erue PUDE IEEE bU een ax Pu RENE een ee 52 A1 8 DNP 5282 Memory Mapping enable 52 APPENDIX 2 PIN ASSIGNMENT OF THE DNP EVAG ssssssemm 53 A2 1 COMI Connector san en 53 A2 2 BU MES Tir RR 53 A2 3 LAN Boso T 53 A2 4 PIC siongls d E 54 A2 5 PIO 5ignals OH 55 A2 6 10 100 Mbps Ethernet Connector oec asse eor ai es 55 A2 7 POUWEDE EE 25 APPEND
35. ECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program and you want it to be of the greatest possible use to the public the best way to achieve this is to make it free software which everyone can redistribute and change under these terms To do so attach the following notices to the program It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty and each file should have at least the copyright line and a pointer to where the full notice is found one line to give the program s name and a brief idea of what it does Copyright lt year gt name of author gt This program is free software you can redistribute it and or modify it under the terms of the GNU General Public License as published by the Free Software foundation either version 2 of the License or at your option any later version This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
36. ER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU SHOULD THE LIBRARY PROVE DEFECTIVE YOU ASSUME THE COST OF ALL NECESSARY SERVICING REPAIR OR CORRECTION 16 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER OR ANY OTHER PARTY WHO MAY MODIFY AND OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE BE LIABLE TO YOU FOR DAMAGES INCLUDING ANY GENERAL SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library and you want it to be of the greatest possible use to the public we recommend making it free software that everyone can redistribute and change You can do so by permitting redistribution under these terms or alternatively under the terms of the ordinary General Public License To apply these terms attach the following notices to the library It is safest to attach them to the start of each source file to most effectively convey
37. IX 3 MECHANICAL DIMENSIONS eren 56 APPENDIX 4 GNU GENERAL PUBLIC LICENSE nennen 57 APPENDIX 5 GNU LESSER GENERAL PUBLIC LICENSE sess 60 LIST OF Te 64 LIST OF TABLES see a een ee 65 LIST OF AP PENDIAES ses ee 65 Ps geile m 66 DOCUMENT HISTORY EE 66 SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Introduction Ss 1 INTRODUCTION Thank you for choosing an SSV Starter Kit We are confident that you will be pleased with the performance of your product Please take a few minutes to read this manual It describes how to start with the Starter Kit DNP SK14 and will help you to get out the most of your new system For further information about the individual components of the Starter Kit DNP SK14 you may follow the links from our website at http www dilnetpc com Our website contains a lot of technical information which will be updated in regular periods For specific technical information like hardware description etc please check out the DNP SK14 CD ROM which is an important part of your Starter Kit 1 1 Conventions used in this Document Convention Usage italic Filenames Internet addresses like e g www ssv embedded de bold italic User inputs command lines and pathnames bold Important terms monospace Program code E Keyboard button Table 1 1 Convention usage 1 2 Checklist Compare the content of your Starter Kit package with the checklist below If an
38. MS Internet Explorer 20 Figure 5 10 Boot process with RCM jumper set 2 Figure 5 11 Assigning a new IP address to the DNP 5282 isses eee 21 Figure 5 12 Command set with parameters sessi mene hene en nne en nre e nenne 22 Figure 5 13 DNP 5282 Linux boot process sssssssssssssssses eene hee ee hehe e rhe e ne rn r enne nnne 23 Figure 5 14 Running the MS Windows Telnet client 23 Figure 5 15 Enter Linux commands via Telnet eee e eee rne nenn 24 Figure 5 16 Running TFIPD32 u 2uuuehe e eek e ee de e Du ii ha 25 Figure 5 17 Changing the default directory for TETDBD3 eee 26 Figure 5 18 Using the DNP 5282 TFTP client within a Telnet session eseee 26 Figure 5 19 Serial port settings under Minicom ssessssssssssssseeee eee mene en eee e rnee nn nennnes 27 Figure 5 20 Linux boot process ccccescsseeeccceesseecccsteeceneasseeecannanscescnauecseecnnsneceennanteecosaneseccsensenes 28 Figure 5 21 Linux command prompt au segeln a er ee a en ni 28 Ia TEE UE 29 Figure 5 23 IP address check via ifconfig sesssssssssssssssssssseeee eene hene eh mene tenentes 29 Figure 5 24 Web page shown by the Konqueror File Manager 30 Figure 5 25 Boot process with RCM jumper set isses eene emen n mnn ene nhh nennen nnne 31 Figure 5 26 Assigning a new IP address to the DNP 5282 ee 31 Figure 5 27 Command set with parameters nenne 32 Figure 5 28 Linux boot pr cess aaa u
39. O Port B Bit 3 13 PB4 PIO Parallel I O Port B Bit 4 14 PBS PIO Parallel I O Port B Bit 5 15 PB6 PIO Parallel I O Port B Bit 6 16 PB7 PIO Parallel I O Port B Bit 7 17 RESIN RESET Reset Input 18 SPI CSI SPI QSPI Chip Select Output 1 19 SPI CS2 SPI QSPI Chip Select Output 2 20 GND Ground 21 RCM RCM Remote Console Mode Input 22 TX LAN 10 100 Mbps LAN TX Pin 23 TX LAN 10 100 Mbps LAN TX Pin 24 RX LAN 10 100 Mbps LAN RX Pin 25 RX LAN 10 100 Mbps LAN RX Pin 26 TXD2 SIO COM Serial Port TXD Pin 27 RXD2 SIO COM2 Serial Port RXD Pin 28 RII SIO COMI Serial Port RI Pin 29 DTRI SIO COMI Serial Port DTR Pin 30 DSRI SIO COMI Serial Port DSR Pin 31 DCDI SIO COMI Serial Port DCD Pin 32 RTSI SIO COMI Serial Port RTS Pin 33 CTS1 SIO COMI Serial Port CTS Pin 34 TXDI SIO COMI Serial Port TXD Pin 35 RXDI SIO COMI Serial Port RXD Pin 36 PCO PIO Parallel I O Port C Bit 0 37 PCI PIO Parallel I O Port C Bit 1 38 PC2 PIO Parallel I O Port C Bit 2 39 PC3 PIO Parallel I O Port C Bit 3 40 Vcc 3 3 Volt Power Input Table A1 1 DNP 5282 Pinout Pin 1 to 40 SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Appendix 1 The DNP 5282 in Detail a Sas o A1 3 DNP 5282 Function Multiplexing with 40 pin DIL Connector Some pins of the 40 pin DIL connector of the DNP 5282 have multiple meanings The pins have a primary and a secondary function function multiplexing The primary functions correspond w
40. OR Minicom 1 83 1 VT102 Offline F Neu i Konsole Nr 1 Figure 5 28 Linux boot process Alternatively you can use a command line interface CLI like a Telnet client to communicate with the DNP 5282 Type in the command telnet 192 168 0 126 If you have already assigned a different IP address to the DNP 5282 you need to enter this new IP address in the command line Datei Sitzungen Optionen Hilfe linux telnet 192 168 0 126 pD Neu FF Terminal Nr 1 Figure 5 29 Linux login SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System Within the Telnet client you can enter Linux commands that will be executed by the DNP 5282 The standard output will be shown in your Telnet client window as illustrated in the next figure x Terminal Terminal lt 2 gt ol wis Datei Sitzungen Optionen Hilfe BusyBox v0 60 4 2003 09 19 13 12 0000 Built in shell msh Enter help for a list of built in commands ps A TTY id Size State Command init keventd ksoftirgd_CPUO kswapd bdflush kupdated Emtdblockd C jffs_gcd portmap bin sh bin inetd bin boa bin telnetd sh U 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 ps A ooocoocooocooooooo 9o DNMNNNNNNNNNNDNYN 1k blocks Used Available Use Mounted on 947 947 0 100 947 947 0 100 115 7 108 62 var 987 1 986 0 usr
41. P 5282 SSV EMBEDDED SYSTEMS 56 DNP 5282 Starter Kit Appendix 4 GNU General Public License APPENDIX 4 GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE Version 2 June 1991 Copyright O 1989 1991 Free Software Foundation Inc 59 Temple Place Suite 330 Boston MA 02111 1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document but changing it is not allowed Preamble The licenses for most software are designed to take away your freedom to share and change it By contrast the GNU General Public License is intended to guarantee your freedom to share and change free software to make sure the software is free for all its users This General Public License applies to most of the Free Software Foundation s software and to any other program whose authors commit to using it Some other Free Software Foundation software is covered by the GNU Library General Public License in stead You can apply it to your programs too When we speak of free software we are referring to freedom not price Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software and charge for this service if you wish that you receive source code or can get it if you want it that you can change the software or use pieces of it in new free programs and that you know you can do these things To protect your rights we need to make restrictions that forbid anyone t
42. P address within the DOS window you can use the following DOS command ipconfig ex Eingabeaufforderung C gt ipconfig Windows IP Konf igurat ion Ethernetadapter LAN Verbindung Verbindungsspezifisches DNS Suffix P Adresse a 2 192 168 Subnetzmaske s 255 255 Standardgateway een 0 254 255 0 Figure 5 8 Communication check via ipconfig command Once the ping was successful you are ready to start a web browser on your development PC This browser may be the MS Internet Explorer or a different suitable web browser like Netscape or Opera or similar SSV EMBEDDED SYSTEMS 19 DNP 5282 Starter Kit Using a Windows based Development System 5 3 Web Server Access Start a web browser open the URL Attp 192 168 0 126 The embedded web server will deliver you a small description about the DNP 5282 That s it Now you are online with the Starter Kit DNP SK14 and your web browser is connected to the embedded web server of the DNP 5282 It shows you a static web page with some pictures 2 SSV EMBEDDED SYSTEMS DIL NetPC Microsoft Internet Explorer Datei Bearbeiten Ansicht Favoriten Extras ay gt 2 x E Asuen Sr Favoriten meiden O A Zi htto 192 168 0 126 v Ed wechsein zu Links Embedded Networking Networking 7 TE DIL NetPC DNP 5280 SBCs for Embedded Networking DIL NetPC DNP 5280 The DIL NetPC DNP 5280 provides a very compac
43. SBCs for Embedded Networking DIL NetPC DNP 5280 The D L NetPC DNPIS280 provides a very compact ColdFire based low power embedded controller Motorola 32 bit DIL NetPC DNP 5280 MCF5280 with TCP IP stack and web server for high speed embedded networking applications The D L MezPC offers the In deep footprint of a standard 64 pin DIL socket with 2 54mm centers and all the hardware and software features necessary to add high speed networking capabilities to any product design The D L MVetPC was developed specifically for products that need 64 pin DIL Pinout to be connected to 10 or 100 Mbps Ethernet based TCP IP networks with minimum development costs PIO Mapping Memory Mapping Embedded Web Server Embedded TCP IP 10 100 Mbps Eulemet PHY el mm The DVP 5280 comes as ready to run full programmable 32 bit embedded networking system The use of the DA P 5250 will allow youto realize a substantial time and costs savings over other chip based approaches Currently there is no other 10 100 Mbps Ethernet and TCP IP based embedded networking solution with more development time savings on the market There is also no faster Time to Market for your product with lower costs if 32 bit based 10 100 Mbps Ethernet full TCP IP a and a embedded Web server or other TCP IP based server software is required I Figure 5 24 Web page shown by the Konqueror File Manager SSV EMBEDDED SYSTEMS DNP 5282 S
44. SV EMBEDDED SYSTEMS 58 DNP 5282 Starter Kit Appendix 4 GNU General Public License published by the Free Software Foundation 10 If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different write to the author to ask for permission For software which is copyrighted by the Free Software Foundation write to the Free Software Foundation we sometimes make exceptions for this Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally NO WARRANTY 11 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE THERE IS NO WARRANTY FOR THE PROGRAM TO THE EXTENT PERMITTED BY APPLICABLE LAW EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND OR OTHER PARTIES PROVIDE THE PROGRAM AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU SHOULD THE PROGRAM PROVE DEFECTIVE YOU ASSUME THE COST OF ALL NECESSARY SERVICING REPAIR OR CORRECTION 12 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER OR ANY OTHER PARTY WHO MAY MODIFY AND OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE BE LIABLE TO YOU FOR DAMAGES INCLUDING ANY GENERAL SP
45. Spoc Simage Ssource Suev Setc Sfoppy Ir D all mB k elf tools 20030314 sh 18 3 MB Shell Skript Figure 5 33 Location of m68k elf t001 20030314 sh at the DNP SK14 CD ROM Now copy m68k elf tool 20030314 sh to your local hard disk drive Change the file attributes to executable For this task you can use the Linux command line chmod x m68k elf t001 200303 14 sh Some file managers offer simpler ways for attribute changing x file home Konqueror 2 zilol wj e Adresse Bearbeiten Ansicht Gehe zu Lesezeichen Werkzeuge Einstellungen Fenster Hilfe 2 Fy GPR i Gh ms oo jo a Tse 4690 G Xm Q9 st D ED URL Ia file home mB8Kk elf tools 20030314 sh v amp Netzwerk a Name A Gr e Ge ndert Berechtigungen Besitzer Gruppe Verkn pf Pers nliches Verzeichnis xvpics 4096 121220031740 mwxr xr x root root B Swureelverzeichnis bspll 4096 04 09 2002 15 38 mwx root root Spin bspl2 4096 04 09 2002 15 53 rwx root root Spoot bspl3 4096 050920021128 rwx root root B carom bspl4 4096 05 09 2002 15 40 mwx root root dev debug 4096 17 12 2001 16 19 rwx root root dnp 4096 121220031741 rwxr xr x root root Sete dnp5280 4096 121220031730 mer xr x root root Sroppy f kdw 4096 041220031934 nwx root root eg S home mha 4096
46. TERMS AND CONDITIONS FOR COPYING DISTRIBUTION AND MODIFICATION 1 This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The Program below refers to any such program or work and a work based on the Program means either the Program or any derivative work under copyright law that is to say a work containing the Program or a portion of it either verbatim or with modifications and or translated into another language Hereinafter translation is included without limitation in the term modification Each license is addressed as you Activities other than copying distribution and modification are not covered by this License they are outside its scope The act of running the Program is not restricted and the output from the Program is covered only if its contents constitute a work based on the Program independent of having been made by running the Program Whether that is true depends on what the Program does 1 You may copy and distribute verbatim copies of the Program s source code as you receive it in any medium provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty keep intact all the notices that refer to this License and to the absence of any warranty and give any other recipients of the Program a copy of this License al
47. a medium customarily used for software interchange or b Accompany it with a written offer valid for at least three years to give any third party for a charge no more than your cost of physically performing source distribution a complete machine readable copy of the corresponding source code to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange or c Accompany it with the information you received as to the offer to distribute corresponding source code This alternative is allowed only for non commercial distribution and only if you received the program in object code or executable form with such an offer in accord with Subsection b above The source code for a work means the preferred form of the work for making modifications to it For an executable work complete source code means all the source code for all modules it contains plus any associated interface definition files plus the scripts used to control compilation and installation of the executable However as a special exception the source code distributed need not include anything that is normally distributed in either source or binary form with the major components compiler kernel and so on of the operating system on which the executable runs unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated place then offering
48. and you will see all steps of the DNP 5282 boot process in the terminal program window at your PC If you do not see the following boot process please assure that the RCM jumper on the DNP 5282 is not set please see chapter 3 5 for detailed information DNLsk HyperTerminal Datei Bearbeiten Ansicht Anrufen bertragung nz 6 oe ee Blkmem copyright 1998 1999 D Jeff Dionne Blkmem copyright ey Kenneth Albanowski Blkmem 1 disk i 0 1033E4 Sg TVIRTUAL 1033E4 1EFFE3 RO RAMDISK driver initialized 16 RAM disks of 4096K size 1024 blocksize dnp5280map flash device 800000 at ff800000 Amd Fujitsu Fitended Query Table v1 3 at 0x0040 number of CFI chip cfi_cmdset_0002 Disabling fast programming due to code brokenness Creating 4 MID p artitions on Physically mapped flash of DNP5280 000000000 000050000 dBug 003 H uClinux H spare 1 0000 0x00800000 spare 2 Linux TCP IP 1 0 for BEI H IP Protocols ICHP UDP kmem_create Forcing size Ge alignment ip dst cache IP routing cache hash table of 512 buckets 4Kbytes TCP Hash tables configured established 1024 bind 1024 NET4 amp Unix domain sockets 1 0 SMP for Linux NET4 0 JFFS Trying to mount a non mtd device VFS Mounted root romfs filesystem readonly Freeing unused kernel memory 24k freed Oxea000 Oxef000 Verbunden 00 01 55 Auto Erkenn 115200 8 N 1 Figure 5 3 Linux boot process After the self test sequence is done the Linux boot pr
49. are not responsible for enforcing compliance by third parties to this License 1 If as a consequence of a court judgment or allegation of patent infringement or for any other reason not limited to patent issues conditions are imposed on you whether by court order agreement or otherwise that contradict the conditions of this License they do not excuse you from the conditions of this License If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations then as a consequence you may not distribute the Program at all For example if a patent license would not permit royalty free redistribution of the Program by all those who receive copies directly or indirectly through you then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program If any portion of this section is held invalid or unenforceable under any particular circumstance the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices Many people have made generous contributions to the wide range of software di
50. ary side by side in a single library together with other library facilities not covered by this License and distribute such a combined library provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted and provided that you do these two things Accompany the combined library with a copy of the same work based on the Library uncombined with any other library facilities This must be distributed under the terms of the Sections above b Give prominent notice with the combined library of the fact that part of it is a work based on the Library and explaining where to find the accompanying uncombined form of the same work You may not copy modify sublicense link with or distribute the Library except as expressly provided under this License Any attempt otherwise to copy modify sublicense link with or distribute the Library is void and will automatically terminate your rights under this License However parties who have received copies or rights from you under this License will not have their licenses terminated so long as such parties remain in full compliance You are not required to accept this License since you have not signed it However nothing else grants you permission to modify or distribute the Library or its derivative works These actions are prohibited by law if you do not accept this License Therefore by modifying or distributing the Library or any work b
51. ased on the Library you indicate your acceptance of this License to do so and all its terms and conditions for copying distributing or modifying the Library or works based on it 10 Each time you redistribute the Library or any work based on the Library the recipient automatically receives a license from the original licensor to copy distribute link with or modify the Library subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You are not responsible for enforcing compliance by third parties with this License 11 If as a consequence of a court judgment or allegation of patent infringement or for any other reason not limited to patent issues conditions are imposed on you whether by court order agreement or otherwise that contradict the conditions of this License they do not excuse you from the conditions of this License If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations then as a consequence you may not distribute the Library at all For example if a patent SSV EMBEDDED SYSTEMS 62 DNP 5282 Starter Kit Appendix 5 GNU Lesser General Public License license would not permit royalty free redistribution of the Library by all those who receive copies directly or indirectly through you then the only way you could satisfy both it and this License would be to refrai
52. bin ld real usr local m68k elf lib usr local m68k elf lib ldscripts Figure 5 35 m68k elf tool 20030314 sh creates new directories at usr local Now it 1s time for a test drive with the new GNU Cross Tool Chain Open up a console window and create a new directory home dnp5282 for DNP 5282 Linux C programming Then change to this directory and enter the following command lines cat gt hello c include lt stdio h gt include lt stdlib h gt void main void printf Hello from DNP 5282 C stops the cat command and saves the input to the file hello c These command lines create the new file hello c and put some C source code lines to this new file The command line cat hello c displays the current content of hello c For building an executable from hello c please enter the following command line m68k elf gcc Wall m5307 WI elf2flt Os o hello hello c Ic This command line runs the GNU C cross compiler and linker After a successful run you will find an executable for the DNP 5282 within the same directory SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System SS m Eg 700000 0 8 MM39990009008009EETETUTUEUTTUUUTTUTISI E 0000 ou UU UU TUE PY Datei Sitzungen Optionen Hilfe linux home dnpb280 cat gt hello c include lt stdio h gt include lt stdlib h gt void main void d printf
53. cument can change any time without announcement There is taken over no guarantee for the accuracy of the statements Copyright SSV EMBEDDED SYSTEMS 2004 All rights reserved INFORMATION PROVIDED IN THIS DOCUMENT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND The user assumes the entire risk as to the accuracy and the use of this document Some names within this document can be trademarks of their respective holders SSV EMBEDDED SYSTEMS
54. dentifiable sections of that work are not derived from the Program and can be reasonably considered independent and separate works in themselves then this License and its terms do not apply to those sections when you distribute them as separate works But when you distribute the same sections as part of a whole which is a work based on the Program the distribution of the whole must be on the terms of this License whose permissions for other licensees extend to the SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Appendix 4 GNU General Public License entire whole and thus to each and every part regardless of who wrote it Thus it is not the intent of this section to claim rights or contest your rights to work written entirely by you rather the intent is to exercise the right to control the distribution of derivative or collective works based on the Program In addition mere aggregation of another work not based on the Program with the Program or with a work based on the Program on a volume of a storage or distribution medium does not bring the other work under the scope of this License 3 You may copy and distribute the Program or a work based on it under Section 2 in object code or executable form under the terms of Sections and 2 above provided that you also do one of the following 1 Accompany it with the complete corresponding machine readable source code which must be distributed under the terms of Sections 1 and 2 above on
55. drive to the DNP 5282 RAM disk or JFFS based flash disk drive and run the executable on your DNP 5282 with the help of gdbserver Use a TFTP session and a Telnet session for this task Please enter the following command lines within the DNP 5282 Telnet session window tftp g l loop 192 168 0 1 chmod x loop gdbserver 192 168 0 1 2222 loop SSV EMBEDDED SYSTEMS 40 DNP 5282 Starter Kit Using a Linux based Development System Sass F The first command line transfers the executable oop from the PC to the DIL NetPC DNP 5282 This line assumes that your PC is using the IP address 192 168 0 1 The second line makes sure that the executable attribute is set for hello The third command line runs oop with the help of gdbserver Within this command line you need the IP address of the PC together with a TCP IP port number We use the port number 2222 for this sample Terminal Terminal Datei Sitzungen Optionen Hilfe ls al druxr xr x 1024 Nov 30 00 14 20 druxr xr x 10 32 Jan 1 1970 10 20180 Nov 30 00 16 loop rw r r chmod x loop gdbserver 192 168 0 1 2222 loop Process loop created pid 63 code at Oxeb8040 Oxebbb80 data at Oxebbb84 Remote debugging using 192 168 0 1 2222 Child exited with status 0 GDBserver exiting WI pD Neu Eleng Nr 1 Figure 5 38 File transfer and execution Run the GNU Cross Debugger m68k elf gdb on your PC U
56. e 373 usec from 192 168 0 126 icmp seq 12 ttl 255 time 383 usec from 192 168 0 126 icmp seq 13 ttl 255 time 367 usec 192 168 0 126 icmp seq 14 ttl 255 time 376 usec oooo0oo0o0o0o0o0oooooo 126 ping statistics 15 packets transmitted 15 packets received 0 packet loss round trip min avg max mdev 0 367 0 445 1 065 0 169 ms Croot n6g4d3 root Bj Dim Figure 5 22 Ping request To cancel the ping request just press the keyboard shortcut C C If an error occurs e g the DNP 5282 does not answer the ping of your development system you have to check your cable connections at first Note For a first test of the DNP 5282 you have to change the assigned IP address of your development system to 192 168 0 1 Please make sure that you do not use another IP address this could lead to different network problems For an easy check if the IP address 1s set correctly to 192 168 0 1 you can use the Linux command ifconfig UE root n6g4d3 localdomain root Terminal l t Datei Sitzungen Optionen Hilfe Croot n6g4d3 rootl ifconfig eth0 Link encap Ethernet HMaddr 00 40 05 A3 E7 49 inet addr 192 168 0 1 Bcast 192 168 0 255 Mask 255 255 255 0 UP BROADCAST RUNNING MULTICAST MTU 1500 Metric 1 RX packets 0 errors 0 dropped 0 overruns 0 frame 0 TX packets 0 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 100 Interrupt 11 Base address 0xec00 Link encap Local Loopback inet addr 1
57. e DNP 5282 To assign a different IP address e g the IP address 192 168 0 100 use the Linux command set client 192 168 0 100 DIL NetPC HyperTerminal Datei Bearbeiten Ansicht Anrufen bertragung Da ZS 26 gr dBUG gt show base 16 baud 115200 server 192 168 0 1 client 192 168 0 126 gateway 0 0 0 0 netmask 255 255 255 0 filename image bin filetype Image ethaddr 00 CF 52 82 CF 01 dBUG gt dBUG gt set client 192 168 0 100 dBUG gt dBUG gt show base 16 baud 115200 server 192 168 0 1 client 192 168 0 100 gateway 0 0 0 0 netmask 255 255 255 0 filename image bin filetype Image ethaddr 00 CF 52 82 CF 01 dBUG gt _ lt Verbunden 00 00 30 Auto Erkenn 115200 8 N 1 Figure 5 11 Assigning a new IP address to the DNP 5282 SSV EMBEDDED SYSTEMS 21 DNP 5282 Starter Kit Using a Windows based Development System Sass F Probably you have to change other parameters as well The next figure shows you how to use the command set with different parameters DIL NetPC HyperTerminal Datei Bearbeiten Ansicht Anrufen bertragung Dc 6 025 e dBUG gt set Valid set options base hex dec bin oct unknown baud 9600 19200 38400 server host IP client board IP gateway gateway IP netmask lt netmask gt filename lt filename gt filetype srec coff elf image e ethaddr lt aa bb cc dd ee ff gt gt Auto Erkenn 115200 8 N 1
58. e SFRs special function register of the Motorola ColdFire MCF5282 Microcontroller are addressable User programs can only be loaded from 0x0001 0000 into the memory The DNP 5282 comes with a ROM Monitor ex works This ROM monitor needs a memory area in Flash and SDRAM each Function Unit Startaddress Endaddress dBUG ROM Monitor Code Area OxFF80 0000 OxFF83 FFFF dBUG ROM Monitor Data Area 0x0000 0000 0x0000 FFFF Table A1 8 DNP 5282 reserved areas for the ROM monitor SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Appendix 2 Pin Assignment of the DNP EVA6 a Sas o APPENDIX 2 PIN ASSIGNMENT OF THE DNP EVA6 A2 1 COM1 Connector A2 2 COM2 Connector A2 3 CAN Connector Top view Name Function 1 DCD COMI serial port DCD pin 2 RXD COMI serial port RXD pin 3 TXD COMI serial port TXD pin 4 DTR COMI serial port DTR pin 5 GND Ground 6 DSR COMI serial port DSR pin 7 RTS COMI serial port RTS pin 8 CTS COMI serial port CTS pin 9 RI COMI serial port RI pin Table A2 1 Pinout COMI connector Top view Pin Name Function 1 DCD not connected 2 RXD COM2 serial port RXD pin 3 TXD COM2 serial port TXD pin 4 DTR not connected 5 GND Ground 6 DSR not connected 7 RTS not connected 8 CTS not connected 9 RI not connected Table A2 2 Pinout COM2 connector Top view Pin Name Function 1 r
59. e customer s own use and reverse engineering for debugging such modifications You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License You must supply a copy of this License If the work during execution displays copyright notices you must include the copyright notice for the Library among them as well as a reference directing the user to the copy of this License Also you must do one of these things Accompany the work with the complete corresponding machine readable source code for the Library including whatever changes were used in the work which must be distributed under Sections 1 and 2 above and if the work is an executable linked with the Library with the complete machine readable work that uses the Library as object code and or source code so that the user can modify the Library and then relink to produce a modified executable containing the modified Library It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions b Use a suitable shared library mechanism for linking with the Library A suitable mechanism is one that 1 uses at run time a copy of the library already present on the user s computer system rather than copying library functions into the executable and 2 will operate properly with a modified version
60. e end x De eee Din anne 33 Figure 5 29 Linux login ser neh een ih rennen 33 Figure 5 30 Enter Linux commands via Telnet nn 34 Figure 5 31 Running IFTPD32 u een unless ben nah 35 Figure 5 32 Using the DNP 5282 TFTP client within a Telnet gestion 36 Figure 5 33 Location of m68k elf tool 20030314 sh at the DNP SK14 CD ROM nen 37 Figure 5 34 Copying m68k elf tool 20030314 sh to the local hard disk drive une 37 Figure 5 35 m68k elf tool 20030314 sh creates new directories at usr local une 38 Figure 5 36 Working with the GNU Cross Tool Cham 39 Figure 5 37 Compiling a C program with the GNU Cross Debugger sse 40 Figure 5 38 File transfer and executon nnne 41 Figure 5 39 The GNU Cross Debugger at work 41 Figure 5 40 Setting breakpoints eene ete e vase aae eue pue te sh ns 42 Figure 5 41 Compiling a C program secsrriyerii oroe on Ena ene hene nnne hh EEA a en nnne trennen ai 43 Figure 5 42 File transfer and executon nn 44 SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit List of Tables no Figure 5 43 Working with th DDD 5 iue ee ee ee een ua Pes 44 Figure 5 44 Typing commands in the command line wndow sese 45 Figure 5 45 Using the command button menu window sssssssssssssssee eee eene 45 Figure A1 1 Block Diagram of the MCF5282 MCF5282 Microcontroller cceeeceeeeeeeeceeeneeeeeees 47 Figure A1 2 Block Diagram of the DNPISINI eene ee enne hee ne rn ee
61. ener 47 Figure AT 37 DNB 5282 LEDS u 02er ERREUR Eisen en AU des Reese 49 Figure A1 4 Position of the BDM interface on the DNP 5282 sss eene nnne 5 Figure A3 1 Dimensions of the DNP 5282 iissssssssssssesssssseee eene e hehe e hehe eren nenne nnne essen rennes 56 LIST OF TABLES Table 1 13 Convention Usage i uote ine ikea Eis E eM QR bv d e Read AEN 4 Table A1 1 DNP 5282 Pinout Pin ltoA0n nee e eta e cede e seen sede eee enneee dene eeea 48 Table A1 2 DNP 5282 Function Multiplexing nn 49 Table Al 37 DNP 5282 LEDS itio ttes ste eee tre ie aan en Cananoncauanedine 49 Table A1 4 DNP 5282 PIO Mappine use re ae en nal 50 Table A1 5 DNP 5282 BDM interface esssssssssssssessseseeeee ee eee eene nene nen nnns rennen nnne 51 Table A1 6 DNP 5282 COM portmanpnmng e ene he e men eh ee nennen he n rennen nennen 52 Table A1 7 DNP 5282 memory mapping ssssssssssssseeeneee emen nene he ere e nnne hne nre rrr nnne 52 Table A1 8 DNP 5282 reserved areas for the ROM monitor 52 Table A2 1 Pinout COMT connector eerte ee roten air bene edu en 53 Table A2 2 Pinout COM2 connector ene hehe e E EEEE nnne e EEEE nenne rennes en rnnn nes 53 Table A2 3 Pinout CAN connector side 53 Table A2 4 Pinout PIO signals leste peter kB eue tue Tuve t aoc dae 54 Table A2 5 Pinout PIO signals 2 iau serene ieh el 55 Table A2 6 Pinout 10 100 Mbps Ethernet connector meme menm nnne ener ees 25 Table A2 7 Pinout power connec
62. es terms for distribution of such executables SSV EMBEDDED SYSTEMS 61 DNP 5282 Starter Kit Appendix 5 GNU Lesser General Public License When a work that uses the Library uses material from a header file that is part of the Library the object code for the work may be a derivative work of the Library even though the source code is not Whether this is true is especially significant if the work can be linked without the Library or if the work is itself a library The threshold for this to be true is not precisely defined by law If such an object file uses only numerical parameters data structure layouts and accessors and small macros and small inline functions ten lines or less in length then the use of the object file is unrestricted regardless of whether it is legally a derivative work Executables containing this object code plus portions of the Library will still fall under Section 6 Otherwise if the work is a derivative of the Library you may distribute the object code for the work under the terms of Section 6 Any executables containing that work also fall under Section 6 whether or not they are linked directly with the Library itself 6 As an exception to the Sections above you may also combine or link a work that uses the Library with the Library to produce a work containing portions of the Library and distribute that work under terms of your choice provided that the terms permit modification of the work for th
63. eserved 2 GND Ground 3 CAN CAN low level 4 CAN CAN high level 200000 E GND Ground 100006 6 reserved 7 reserved 8 reserved 9 reserved 10 reserved Table A2 3 Pinout CAN connector SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Appendix 2 Pin Assignment of the DNP EVA6 SS m A2 4 PIO signals 1 Top view Pin Name Function 1 Vcc Power 2 GND Ground 3 PAO Parallel I O Port A Bit 0 4 GND Ground 5 PAI Parallel I O Port A Bit 1 6 GND Ground 7 PA2 Parallel I O Port A Bit 2 8 GND Ground 9 PA3 Parallel I O Port A Bit 3 34 33 10 not connected 11 Vec Power 12 GND Ground 13 PA4 Parallel I O Port A Bit 4 14 GND Ground 15 PAS Parallel I O Port A Bit 5 16 GND Ground 17 PA6 Parallel I O Port A Bit 6 18 GND Ground 19 PA7 Parallel I O Port A Bit 7 20 not connected 21 Vec Power 22 GND Ground 23 PBO Parallel I O Port B Bit 0 24 GND Ground 2 1 25 PBI Parallel I O Port B Bit 1 26 GND Ground 27 PB2 Parallel I O Port B Bit 2 28 GND Ground 29 PB3 Parallel I O Port B Bit 3 30 GND Ground 31 Vcc Power 32 GND Ground 33 PB4 Parallel I O Port B Bit 4 34 PBS Parallel I O Port B Bit 5 Table A2 4 Pinout PIO signals 1 SSV EMBEDDED SYSTEMS 54 DNP 5282 Starter Kit Appendix 2 Pin Assignment of the DNP EVA6 Sas o
64. ist of Figures m ss ZS LIST OF FIGURES Figure 2 1 Main components of the DNPIENVAG eee ehe ehh hne enhn hee enhn heise rennen 6 Figure 3 1 Activation of RCM on the DNDISIN eene mene nenne nne rnn nennen rene se nen 8 Figure 3 2 Position of the miniature LEDs on the DNPISIND eee eene nnne 8 Figure 4 1 Mounting the DNP 5282 on the DNPIENAG eme enhn eren ne ee nennen 10 Figure 4 2 Overview about the required cable connections esses 11 Figure 4 3 Serial link connection eeeeeeseeeeeeee eene entente tette ne tnnt heh enean e sensa thee etant aen 12 Figure 4 4 Ethernet link connection using a bubiswitch eene 13 Figure 4 5 Ethernet link connection using a crossover cable e 13 Figure 4 6 Power supply connection sssssssseesssssseeeene eene e nenne hh ene nh ee sse hr ee ss erre e nee nnne 14 Figure 5 1 Interface dialog box ns ee ash Hp ern UE e FS Eee Een nen 15 Figure 5 2 Communication parameter settings ussssssseesssnsssennnnsssnennnnennnnnenen e hene ern re nenne 16 Figure 5 3 Linux boot process ariede en ana Aa a ERE N E OA TN NEE 17 Figure 5 4 Linux command prompt 17 Figure 5 5 DNP 5282 network interface addresses sssssssssssessssseseeee eene nennen 18 Figure 5 6 Windows IP address gettmngs eee hene hne ne hh ee nennen nennen 18 Figure 5 7 Communication check via PINO 19 Figure 5 8 Communication check via ipconfig commande 19 Figure 5 9 Web page shown by the
65. ith the standard pinout of the 40 pin DIL connec tor as shown in table A1 1 The secondary functions are shown in table A1 2 below Pin Name Primary functions Secondary functions 13 PB4 Parallel I O Port B Bit 4 SCL I2C 14 PBS Parallel I O Port B Bit 5 SDA I2C 15 PB6 Parallel I O Port B Bit 6 CANTX CAN 16 PB7 Parallel I O Port B Bit 7 CANRX CAN 36 PCO Parallel I O Port C Bit 0 QSPIDO SPI 37 PCI Parallel I O Port C Bit 1 QSPIDI SPI 38 PC2 Parallel I O Port C Bit 2 QSPICLK SPI 39 PC3 Parallel I O Port C Bit 3 QSPICSO SPI Table A1 2 DNP 5282 Function Multiplexing A1 4 DNP 5282 LEDs Four miniature LEDs are placed on the DNP 5282 for a visual check of the LAN activity Name Function Description LEDO 10Act Data transmission with 10 Mbps LEDI 100Act Data transmission with 100 Mbps Table A1 3 DNP 5282 LEDs DIL NetPC DNP 5282 LEDO Figure A1 3 DNP 5282 LEDs SSV EMBEDDED SYSTEMS 49 DNP 5282 Starter Kit Appendix 1 The DNP 5282 in Detail Sas o A1 5 PIO Mapping The 20 Signals for the DNP 5282 Parallel I O PIO are realized through different function units of the MCF5282 The following table shows the assignment Pin names for the MCF5282 case 256 MAPBGA are listed in the third column Please see the MCF5282 ColdFire Microcontroller user manual R 0 1 MCF5282UM D for further details
66. long with the Linux installation 1 e Minicom Please make sure that this program is present on your development system If necessary you have to install this program from your Linux installation CD ROM Note The DNP 5282 uses exactly the same uCLinux as the DNP 5280 In some following screenshots you will find the term DNP 5280 but that does not matter The software for the DNP 5280 and for the DNP 5282 1s the same Setup the Serial Link Before you provide the DNP EVA6 with power for the first time please run a terminal program like Minicom Minicom is a simple serial communication pro gram originally written by Miquel van Smoorenburg It offers basic communica tion capabilities and integrates well with the Linux user interface Minicom is a lot like the old MS DOS program PROCOMM This program can be used to con nect a Linux based PC to embedded devices such as the DNP 5282 for initial con figurations In the following we will show you how to use Minicom and what you have to do to adjust the necessary settings Open a terminal window and type in the command minicom s to get access to the serial port settings Now you can change some configuration parameters such as the maximum baud rate Set the serial port parameters for the maximum baud rate on 115 200 bps um root n6g4d3 localdomain E Terminal e LL se Datei Sitzungen Optionen Hilfe Serial Device dev ttySO Lockfile Location var l
67. lopment system Alternatively you have to install a suitable web browser Please make sure that your web browser does not use an Internet proxy server for http requests See the web browser connection settings for further details In some cases the web browser is only configured for modem based Internet ac cess In this case please install a second web browser from your original operat ing system CD ROM SSV EMBEDDED SYSTEMS 20 DNP 5282 Starter Kit Using a Windows based Development System 5 4 Assigning a new IP Address to the DNP 5282 The following steps describe how to change the IP address of the DNP 5282 with a terminal program like the HyperTerminal program in MS Windows Note Please assure that the RCM jumper on the DNP 5282 is set for further op eration Please see chapter 3 5 how to set the RCM jumper correctly When the DNP 5282 has booted with the RCM jumper set you should see the fol lowing screen on your terminal program e DIL NetPC HyperTerminal ey Datei Bearbeiten Ansicht Anrufen bertragung Dg 6 DB IG External Reset ColdFire MCF5282 on the DNP 5280 3V Firmware v3b 1a 10 Build 5 on Sep 18 2003 10 18 24 Copyright 1995 2003 Motorola Inc All Rights Reserved SSV Embedded Systems GmbH Enter help for help dBUG gt _ Auto Erkenn 115200 8 N 1 Figure 5 10 Boot process with RCM jumper set Now enter the command show to see the current parameters of th
68. n entirely from distribution of the Library If any portion of this section is held invalid or unenforceable under any particular circumstance the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License 12 If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries so that distribution is permitted only in or among countries not thus excluded In such case this License incorporates the limitation as if written in the body of this License 13 The Free
69. nd Debug Mode Table A1 5 DNP 5282 BDM interface SSV EMBEDDED SYSTEMS 51 DNP 5282 Starter Kit Appendix 1 The DNP 5282 in Detail e Sas F COM Port Mapping The 10 signals for the two DNP 5282 COM ports are realized with different function units of the MCF5282 ColdFire MCU Table A1 6 shows the assignment Pin Name MCFS282 pinfunction MCFS282 pin Source 26 TXD2 UTXDI P7 UART 27 RXD2 URXDI R7 UART 28 RII DTIN3 K16 GPIO 29 DTRI DTOUT3 K15 GPIO 30 DSRI DTIN2 K14 GPIO 31 DCDI DTOUT2 K13 GPIO 32 RTSI DTINI J15 UART 33 CTSI DTOUTI J13 UART 34 TXDI UTXDO T7 UART 35 RXDI URXDO N6 UART Table A1 6 DNP 5282 COM port mapping The third column lists the pin names for the MCF5282 case 256 MAPBGA The fourth column shows the source of each pin The COMI port is not entirely realized through the signals of the MCF5282 UARTO The missing signals are implemented via GPIOs general purpose I O pins These MCF5282 signals have to be configured as PIO parallel I O for the COMI usage DNP 5282 Memory Mapping Function Unit Startaddress Endaddress Access Format SDRAM 0x0000 0000 OxOOFF FFFF 32 Bits SRAM intern 0x2000 0000 0x2000 FFFF 32 Bits IBSBAR 0x4000 0000 Ox7FFF FFFF 32 Bits Flash MCF5282 intern OxF000 0000 OxF007 FFFF 32 Bits Flash OxFF80 0000 OxFFFF FFFF 16 Bits Table A1 7 DNP 5282 memory mapping In memory area IBSBAR th
70. nd the DNP 5282 Please use the same TCP IP port number 2222 The sample command line as sumes that the DNP 5282 uses the IP address 192 168 0 126 Then set your breakpoints within the C source code and run your program with the remote debugging session between the PC and the DNP 5282 Use the debugger command continue for running the program The program runs to the next breakpoint The short form for this command is cont Le WEE KEE YN NN Datei Sitzungen Optionen Hilfe Breakpoint 1 at Oxeb806a file loop c line 9 gdb cont Continuing Breakpoint 1 main O at loop c 9 9 printf ZdWn i square i gdb cont Continuing Breakpoint 1 main O at loop c 9 9 printf ZdWn i square i gdb print i 1 4 gdb cont Continuing Breakpoint 1 main O at loop c 9 9 printf ZdNn i square i gdb print i 2 16 gdb li D Neu Erste Nr 1 Figure 5 40 Setting breakpoints le SSV EMBEDDED SYSTEMS 42 DNP 5282 Starter Kit Using a Linux based Development System Ss o 6 9 GNU Cross Debugger with DDD Data Display Debugger The GNU Cross Tool Chain for DNP 5282 Linux C programming offers a pre build cross version of the GNU Debugger called m68k elf gdb This debugger runs on a Linux based PC and allows you to debug DNP 5282 uCLinux executa bles with ELF layout at C source code level over a remote connection
71. ner on the DNP 5282 On the DNP 5282 a white sign marks the pin corner Matching the pin 1 corners drop the DNP 5282 down into the socket There is only a little bit force required and the DNP 5282 should seat easily into the socket This locks the DNP 5282 in place Evaluation Board DNP EVA6 Rev 1 1 e Prototype area Rss El TT T ee0e0600000000000000007 DIL NetPC DNP 5282 Figure 4 1 Mounting the DNP 5282 on the DNP EV A6 SSV EMBEDDED SYSTEMS 10 DNP 5282 Starter Kit Connections Ss 4 2 Cable Connections Before you can use your Starter Kit DNP SK14 you need a further desktop or notebook PC which acts as development system This development system should run under MS Windows or Linux in an ideal manner Between the development system and the Starter Kit DNP SK14 are two connections required At first the RS232 serial link and at second the Ethernet link The PC will act as development system in RCM Remote Console Mode for the DNP 5282 Evaluation Board DNP EVA6 Rev 1 1 Prototype area Go es host DIL NetPC DNP 5282 E Ethernet link RS232 serial link Figure 4 2 Overview about the required cable connections SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Connections 4 3 Serial Link For the serial link you need a null modemcable This cable comes along with your Starter Kit Please connect the DNP EVA6 with the COMI port of your development system b
72. not apply to those sections when you distribute them as separate works But when you distribute the same sections as part of a whole which is a work based on the Library the distribution of the whole must be on the terms of this License whose permissions for other licensees extend to the entire whole and thus to each and every part regardless of who wrote it Thus it is not the intent of this section to claim rights or contest your rights to work written entirely by you rather the intent is to exercise the right to control the distribution of derivative or collective works based on the Library In addition mere aggregation of another work not based on the Library with the Library or with a work based on the Library on a volume of a storage or distribution medium does not bring the other work under the scope of this License 3 You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library To do this you must alter all the notices that refer to this License so that they refer to the ordinary GNU General Public License version 2 instead of to this License If a newer version than version 2 of the ordinary GNU General Public License has appeared then you can specify that version instead if you wish Do not make any other change in these notices Once this change is made in a given copy it is irreversible for that copy so the ordinary GNU General Public License applies to all
73. o deny you these rights or to ask you to surrender the rights These restrictions translate to certain respon sibilities for you if you distribute copies of the software or if you modify it For example if you distribute copies of such a program whether gratis or for a fee you must give the recipients all the rights that you have You must make sure that they too receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two steps 1 copyright the software and 2 offer you this license which gives you legal permission to copy distribute and or modify the software Also for each author s protection and ours we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on we want its recipients to know that what they have is not the original so that any problems introduced by others will not reflect on the original authors reputations Finally any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses in effect making the program proprietary To prevent this we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for copying distribution and modification follow GNU GENERAL PUBLIC LICENSE
74. o proprietary programs If your program is a subroutine library you may consider it more useful to permit linking proprietary applications with the library If this is what you want to do use the GNU Library General Public License instead of this License SSV EMBEDDED SYSTEMS EIN DNP 5282 Starter Kit Appendix 5 GNU Lesser General Public License APPENDIX 5 GNU LESSER GENERAL PUBLIC LICENSE GNU LESSER GENERAL PUBLIC LICENSE Version 2 1 February 1999 Copyright O 1991 1999 Free Software Foundation Inc 59 Temple Place Suite 330 Boston MA 02111 1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document but changing it is not allowed This is the first released version of the Lesser GPL It also counts as the successor of the GNU Library Public License version 2 hence the version number 2 1 Preamble The licenses for most software are designed to take away your freedom to share and change it By contrast the GNU General Public Licenses are intended to guarantee your freedom to share and change free software to make sure the software is free for all its users This license the Lesser General Public License applies to some specially designated software packages typically libraries of the Free Software Foundation and other authors who decide to use it You can use it too but we suggest you first think carefully about whether this license or the ordinary General Public License is the bette
75. ocess will be initialized When finished you will see the following screen with a Linux prompt which is waiting for a user input DNLsk HyperTerminal Datei Bearbeiten Ansicht Anrufen bertragung De 6 om ge 0x00300000 0x00400000 spare 1 0x00400000 0x00800000 spare 2 NET Linux TCP IP 1 0 for NET4 0 IP Protocols ICMP UDP TCP kmem create Forcing size word alignment ip dst cache IP routing cache hash table of 512 buckets 4Kbytes TCP Hash tables configured established 1024 bind 1024 NET4 Unix domain sockets 1 0 SMP for Linux NET4 0 JFFS Trying to mount a non mtd device VFS Mounted root romfs filesystem readonly Freeing unused kernel memory 24k freed 0xca000 Oxef000 Using lib modules ssvhwa o ssvhwa module installed eth config auto negotiation on 100HDM 10FDM 10HDM FEC ENET rcv is not last BusyBox v0 60 4 2003 09 19 13 12 0000 Built in shell msh Enter help for a list of built in commands Auto Erkenn 115200 8 N 1 Figure 5 4 Linux command prompt SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Windows based Development System em 5 Now please enter ifconfig to see the network interface addresses of the DNP 5282 DNLsk HyperTerminal Datei Bearbeiten Ansicht Anrufen bertragung DE 3 umi BusyBox v0 60 4 2003 09 19 13 12 0000 Built in shell msh Enter help for a list of built in commands ifconfig ethd Link enca
76. ock Callin Program Callout Program z Bps Par Bits 115200 8N1 Hardware Flow Control No Software Flow Control No onmonn D LEET Change which setting E Screen and keyboard Save setup as dfl Save setup as Exit Exit from Minicom 3 Neu WT Terminar Nr 1 Figure 5 19 Serial port settings under Minicom SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System ee oz Now turn on the power for the DNP EVA6 and you will see all steps of the DNP 5282 boot process in the terminal program window at your PC If you do not see the following boot process please assure that the RCM jumper on the DNP 5282 is not set please see chapter 3 5 for detailed information EEN Datei Sitzungen Optionen Hilfe Probe number 0 with 0x0000 FEC ENET Version 0 2 00 cf 52 82 cf 01 fec PHY 0x1 ID 0x00008201 RTL8201BL Blkmem copyright 1998 1999 D Jeff Dionne Blkmem copyright 1998 Kenneth Albanowski Blkmem 1 disk images 0 1033E4 1EFFE3 CYIRTUAL 1033E4 1EFFE3 RO RAMDISK driver initialized 16 RAM disks of 4096K size 1024 blocksize dnp5280map flash device 800000 at ff800000 Amd Fujitsu Extended Query Table v1 3 at 0x0040 number of CFI chips 1 cfi cmdset 0002 abling fast programming due to code brokenness Creating 4 MTD partitions on Physically mapped flash of DNP5280 0x00000000 0x00050000 dBug 0x00050000 0x00300000 uClinux
77. ong with the Program You may charge a fee for the physical act of transferring a copy and you may at your option offer warranty protection in exchange for a fee 2 You may modify your copy or copies of the Program or any portion of it thus forming a work based on the Program and copy and distribute such modifications or work under the terms of Section 1 above provided that you also meet all of these conditions 1 You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change b You must cause any work that you distribute or publish that in whole or in part contains or is derived from the Program or any part thereof to be licensed as a whole at no charge to all third parties under the terms of this License c If the modified program normally reads commands interactively when run you must cause it when started running for such interactive use in the most ordinary way to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty or else saying that you provide a warranty and that users may redistribute the program under these conditions and telling the user how to view a copy of this License Exception if the Program itself is interactive but does not normally print such an announcement your work based on the Program is not required to print an announcement These requirements apply to the modified work as a whole If i
78. p Ethernet HWaddr 00 CF 52 82 CF 01 inet addr 192 168 0 126 Bcast 192 168 0 255 Mask 255 255 255 0 UP BROADCAST RUNNING MULTICAST MTU 1500 Metric 1 RK packets 16 errors 16 dropped overruns frame 16 TX packets errors dropped overruns carrier collisions txqueuelen 100 RX bytes 2102 2 0 kiB TM bytes 0 0 0 iB Base address 0x1000 Link encap Local Loopback inet addr 127 0 0 1 Mask 255 0 0 0 UP LOOPBACK RUNNING MTU 16436 Metric 1 RK packets errors dropped overruns frame 0 TX packets errors dropped overruns carrier collisions txqueuelen RM bytes 0 0 0 iB TM bytes 0 0 0 iB Auto Erkenn 115200 8 N 1 Figure 5 5 DNP 5282 network interface addresses Note For a first test of the Ethernet connection between the development system and the DNP 5282 you have to change the assigned IP address of your develop ment system to 192 168 0 254 To change the IP address under MS Windows just click Start Settings 2 Control Panel O Network 2 TCP IP and enter the new IP address Please make sure that you do not use another IP address this will lead to different network problems Eigenschaften von Internetprotokoll TCP IP PR Algemein IP Einstellungen k nnen automatisch zugewiesen werden wenn das Netzwerk diese Funktion unterst tzt Wenden Sie sich andemfalls an den Netzwerkadministrator um die geeigneten IP Einstellungen zu beziehen Q IP Adres
79. r Kit package you will find a plug in power supply unit to provide the sys tem with the necessary power After the connection of all cables the Starter Kit DNP SK14 is ready to run Evaluation Board DNP EVA6 Rev 1 1 Prototype area EE mom DIL NetPC DNP 5282 DH power supply Figure 4 6 Power supply connection Caution Providing the DNP EVA6 with a voltage higher than the regular 5V DC d could resolve in damaged board components SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Windows based Development System Ss m 5 USINGAWINDOWS BASED DEVELOPMENT SYSTEM The following paragraphs will help you to use the DNP 5282 with a development system running under MS Windows For these steps you need a terminal program like HyperTerminal which normally comes along with every MS Windows installation Please make sure that this program is present on your development system If this program is not installed on your development system you have to install this program manually from your MS Windows installation CD ROM Note The DNP 5282 uses exactly the same uCLinux as the DNP 5280 In some following screenshots you will find the term DNP 5280 but that does not matter The software for the DNP 5280 and for the DNP 5282 1s the same 5 1 Setup the Serial Link Before you provide the DNP EVA6 with power for the first time please run a terminal program that offers communication
80. r strategy to use in any particular case based on the explanations below When we speak of free software we are referring to freedom of use not price Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software and charge for this service if you wish that you receive source code or can get it if you want it that you can change the software and use pieces of it in new free programs and that you are informed that you can do these things To protect your rights we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it For example if you distribute copies of the library whether gratis or for a fee you must give the recipients all the rights that we gave you You must make sure that they too receive or can get the source code If you link other code with the library you must provide complete object files to the recipients so that they can relink them with the library after making changes to the library and recompiling it And you must show them these terms so they know their rights We protect your rights with a two step method 1 we copyright the library and 2 we offer you this license which gives you legal permission to copy distribute and or modify the library To protect each distributor we
81. rver 192 168 0 1 2222 loop Process loop created pid 63 code at Oxeb8040 Oxebbb80 data at Oxebbb84 Remote debugging using 192 168 0 1 2222 4 16 256 Child exited with retcode 0 Child exited with status 0 GDBserver exiting WI 5 Neu Erste Hr Figure 5 42 File transfer and execution Run the GNU Cross Debugger m k elf gdb with the help of DDD on your PC Use the following command line The parameter debugger m68k elf gdb tells DDD the name of the debugger oop gdb 1s the file name for the symbol informa tion file ddd debugger m68k elf gdb loop gdb Terminal Terminal lei Sitzungen Optionen Hilfe linux home dnp5280 ddd debugger m68k elf gdb loop gdb Die Edit View Program Commands Status Source Data Olio BS S s ze Ww We Find Break Watch Print Display Plot sho potete include lt stdio h gt include lt stdlib h gt int main void int i 2 while Ci lt 256 printf XdWn i square i Treturn EXIT SUCCESS int square int x return x x GNU DDD 3 2 1 i386 suse linux by Dorothea L tkehaus and Andreas Zeller Copyright 1995 1999 Technische Universit t Braunschweig Germany Sekt 1999 2000 Universit t Passau Germany g i Welcome to DDD 3 2 1 Liftoff i3
82. se automatisch beziehen Folgende IP Adresse verwenden IP Adresse 192 168 0 254 Subnetzmaske 255 255 255 0 a Standardgateway 3 3 Folgende DNS Serveradressen verwenden Bevorzugter DNS Server Altemativer DNS Server Figure 5 6 Windows IP address settings SSV EMBEDDED SYSTEMS 18 DNP 5282 Starter Kit Using a Windows based Development System 5 2 Checking the Ethernet Link To test the TCP IP communication we use PING a very popular TCP IP utility program Please open a DOS window you can find it in the Windows Start menu and enter ping 192 168 0 126 cx Eingabeaufforderung C gt ping 192 168 0 126 Ping wird ausgef hrt f r 192 168 0 126 mit 32 Bytes Daten Antwort von 192 168 0 126 Bytes 32 Zeit 11ms TTL 64 Antwort von 192 168 0 126 Bytes 32 Zeit lt ims TTL 64 Antwort von 192 168 0 126 Bytes 32 Zeit lt ims TTL 64 Antwort von 192 168 0 126 Bytes 32 Zeit lt ims TTL 64 Gare f r 192 168 0 126 akete Gesendet 4 Empfangen 4 Verloren B Oz Verlust Ca Zeitangaben in Millisek Minimum ms Maximum 11ms Mittelwert 2ms TR Figure 5 7 Communication check via PING The Starter Kit DNP SK14 must answer this ping Otherwise an error will occur In this case you have to check all parts of your LAN connection including the IP address of the development system The correct value of the IP address is 192 168 0 254 For an easy check of the I
83. se the following com mand line The parameter oop gdb is the file name for the symbol information file m68k elf gdb loop gdb x Terminal Terminal lt 2 gt ol sis Datei Sitzungen Optionen Hilfe linux home dnpb280 m68k elf gdb loop gdb GNU gdb 5 0 Copyright 2000 Free Softuare Foundation Inc GDB is free software covered by the GNU General Public License and you are welcome to change it and or distribute copies of it under certain conditions Type show copying to see the conditions There is absolutely no warranty for GDB Type show warranty for details This GDB uas configured as host i686 pc linux gnu target m68k bdm elf gdb target remote 192 168 0 126 2222 Remote debugging using 192 168 0 126 2222 Oxeb8048 in start O gdb list include lt stdio h gt include lt stdlib h gt int main void int i 2 while i lt 256 printf d n i square i return EXIT SUCCESS gdb break 9 Breakpoint 1 at Oxeb806a file loop c line 9 gdb Bi Des scans Figure 5 39 The GNU Cross Debugger at work SSV EMBEDDED SYSTEMS E DNP 5282 Starter Kit Using a Linux based Development System Now the debugger waits for your debugging commands First please enter always the following command line target remote 192 168 0 126 2222 This debugger command line sets up the Ethernet based TCP IP connection be tween the PC a
84. stributed through that system in reliance on consistent application of that system it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License 1 Ifthe distribution and or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries so that distribution is permitted only in or among countries not thus excluded In such case this License incorporates the limitation as if written in the body of this License 1 The Free Software Foundation may publish revised and or new versions of the General Public License from time to time Such new versions will be similar in spirit to the present version but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Program specifies a version number of this License which applies to it and any later version you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Program does not specify a version number of this License you may choose any version ever S
85. t ColdFire based low power embedded controller Motorola 32 bit MCF5280 with TCP IP stack and web server for high speed embedded networking applications The DIL NetPC offers the footprint of a standard 64 pin DIL socket with 2 54mm centers and all the hardware and software features necessary to add high speed networking capabilities to any product design The DIL NetPC was developed specifically for products that need to be connected to 10 or 100 Mbps Ethemet based TCP IP networks with minimum development costs Embedded Web Server In deep Ban DIL Pinout PIO Mapping Memory Mappin Embedded TCP IP The DNP 5280 comes as ready to run full programmable 32 bit embedded networking system The use of the DVP 5280 will allow you to realize a substantial time and costs savings over other chip based approaches Currently there is no other 10 100 Mbps Ethemet and TCP IP based embedded networking solution with more development time savings on the market There is also no faster Time to Market for your product with lower costs if 32 bit based 10 100 Mbps Ethemet full TCP IP and a embedded Web server or other TCP IP based server software is required Internet Figure 5 9 Web page shown by the MS Internet Explorer If your web browser can t establish a connection to the web server but the Ping was successful you should check your browser settings Please ensure that your browser is joined with TCP IP by using the Ethernet card in your deve
86. tarter Kit Using a Linux based Development System 6 4 Assigning a new IP Address to the DNP 5282 The following steps describe how to change the IP address of the DNP 5282 with a command line interface like Minicom in Linux Note Please assure that the RCM jumper on the DNP 5282 is set for further op eration Please see chapter 3 5 how to set the RCM jumper correctly When the DNP 5282 has booted with the RCM jumper set you should see the fol lowing screen on your terminal program Datei Sitzungen Optionen Hilfe Welcome to minicom 1 83 1 OPTIONS History Buffer F Macros Search History Buffer Compiled on Jan 20 2001 0 4 Press ALT Z for help on special keys Low Voltage Detect Reset Pouer on Re ColdFire MCF5282 on the DNP 5280 3V Firmware v3b 1a 10 Build 5 Copyright 1 o SSY Embedded Enter help dBUG B ALT Z for help 1115200 8N1 I NOR Minicom 1 83 1 I YT102 I Offline D Neu I7 Konsole nr 1 Figure 5 25 Boot process with RCM jumper set Now enter the command show to see the current parameters of the DNP 5282 To assign a different IP address e g the IP address 192 168 0 100 type in the com mand line set client 192 168 0 100 SSY Embedde Enter help dBUG gt show base baud filetype ethaddr dBUG gt 92 168 0 1 168 0 100 ALT Z for help 1115200 8N1 NOR Minicom 1 121297119271 Offline D Neu I7 Konsole nr 1 Figure 5 26
87. ter your Linux commands directly after the boot process Note On every boot process without the RCM jumper please see chapter 3 5 set there 1s a serial console available with following parameters 115 200 bps No Parity 8 Data Bits 1 Stop Bit No Handshake x MM LS Ma gt UD gt Datei Sitzungen Optionen Hilfe fec c Probe number 0 with 0x0000 eth0 FEC ENET Version 0 2 00 cf 5 fec PHY 0x1 ID 0x00008201 Blkmem copyright 1998 1999 D Jeff Blkmem c right 1998 Kenneth Albanowski Blkmem 1 disk images 0 1033E4 1EFFE3 CYIRTUAL 1033E4 1EFFE31 RO RAMDISK driver initialized 16 RAM disks of 4096K size 1024 blocksize dnp5280map flash device 800000 at ff800000 Amd Fu jitsu Ex 1 Query Table v1 3 at 0x0040 number of CFI c i cfi_cmdset_0002 abling fast programming due to code brokenness Creating 4 MTD partitions on Physically mapped flash of DNP5280 0x00000000 0x00050000 dB 0x00050000 0x00300000 uClir 0x00300000 0x00400000 spare 0x00400000 0x00800000 spar NET4 Linux TCP IP 1 0 for NET4 0 IP Protoco ICMP UDP TCP kmem create Forcing size word alignment ip_dst_cache routing cache hash table of 512 buckets 4Kbytes CP Hash tables configured established 1024 bind 1024 Unix domain sockets 1 0 SMP for Linux NET4 0 S Trying to mount a non mtd device S Mounted root romfs filesystem readonly Freeing unused kernel memory 24k freed 0xea000 Oxef000 ALT 2 for help 1115200 8N1 N
88. the Library and copy and distribute such modifications or work under the terms of Section 1 above provided that you also meet all of these conditions The modified work must itself be a software library b You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change c You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License d If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility other than as an argument passed when the facility is invoked then you must make a good faith effort to ensure that in the event an application does not supply such function or table the facility still operates and performs whatever part of its purpose remains meaningful For example a function in a library to compute square roots has a purpose that is entirely well defined independent of the application Therefore Subsection 2d requires that any application supplied function or table used by this function must be optional if the application does not supply it the square root function must still compute square roots These requirements apply to the modified work as a whole If identifiable sections of that work are not derived from the Library and can be reasonably considered independent and separate works in themselves then this License and its terms do
89. tion square linux home dnp5280 ls al loop gdb ruxr xr x 1 root root linux home dnp5280 ls al loop rwxr r 1 root root 20180 Dez 18 16 56 loop linux home dnp5280 J a Neu i Terminal Nr 1 Figure 5 41 Compiling a C program 78612 Dez 18 16 56 loop gdb Then transfer the executable from your PC hard disk drive to the DNP 5282 RAM disk or JFFS based flash disk drive and run the executable on your DNP 5282 with the help of gdbserver Use a TFTP session and a Telnet session for this task Please enter the commands on the next page within the DNP 5282 Telnet session window SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Using a Linux based Development System em 5 tftp g I loop 192 168 0 1 chmod x loop gdbserver 192 168 0 1 2222 loop The first command line transfers the executable oop from the PC to the DIL NetPC DNP 5282 This line assumes that your PC uses the IP address 192 168 0 1 The second line makes sure that the executable attribute is set for hello The third command line runs oop with the help of gdbserver Within this command line you need the IP address of the PC together with a TCP IP port number We use the port number 2222 for this sample x Terminal Terminal ol sis Datei Sitzungen Optionen Hilfe ls al druxr xr x 1024 Nov 30 00 14 druxr xr x 32 Jan 1 1970 rwu r r 20180 Nov 30 00 16 loop chmod x loop gdbse
90. tor eene hme e nene hee rhe nee rhe tiene reser nenas 55 LIST OF APPENDIXES ALI Block Diagram rere Quee ree pr ee ERR ER ee e See 47 Al 2 Pin Assignment 40 pin DIL Connector ssssssssesseee ere eene e me ene enhn enne 48 A1 3 DNP 5282 Function Multiplexing with 40 pin DIL Connector nennen 49 nur DNR PEUT L 49 ALS PIO Mappihg RETE 50 Al 6 DNP 5282 BDM Interface sches ERE E erben 51 ATIT 4GQOM Port Mapping tore oe QE Ip EAE Dare Dua lee 52 A1 8 DNP 5282 Memory Manning 52 LV GOMT Connector MEE 53 VIP NEGO PEOR 53 A2 3 CAIN Egeter Eesbech 53 A24 PIO signals Nt 54 ADD PIO SSISHAls ETE 25 A2 6 10 100 Mbps Ethernet Connector essssssssssseseseeee eee e hene ee hehe eem hn nen enhn nee nennen enis 55 A27 Power Connector eseese aeneae adhe d e nee ee ia 55 SSV EMBEDDED SYSTEMS 65 DNP 5282 Starter Kit Contact _ zm SSV Embedded Systems Heisterbergallee 72 D 30453 Hannover Tel 49 0 511 40000 0 Fax 49 0 511 40000 40 e mail sales istl de Internet www ssv embedded de Revision Date Remarks Name 1 0 2004 04 15 first version WBU 1 1 2004 04 20 error correction WBU 1 2 2004 04 26 errors in table A1 2 and A1 4 fixed WBU de 2004 07 14 features correction No Bus no CS and INT signals KDW This document is written only for the internal application The content of this do
91. using a modified version of the Library The precise terms and conditions for copying distribution and modification follow Pay close attention to the difference between a work based on the library and a work that uses the library The former contains code derived from the library whereas the latter must be combined with the library in order to run GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING DISTRIBUTION AND MODIFICATION This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License also called this License Each SSV EMBEDDED SYSTEMS EIN DNP 5282 Starter Kit Appendix 5 GNU Lesser General Public License licensee is addressed as you A library means a collection of software functions and or data prepared so as to be conveniently linked with application programs which use some of those functions and data to form executables The Library below refers to any such software library or work which has been distributed under these terms A work based on the Library means either the Library or any derivative work under copyright law that is to say a work containing the Library or a portion of it either verbatim or with modifications and or translated straightforwardly into another language Hereinafter translation is
92. verview about their respective functions PIO Signals 1 This 34 pin connector offers the following signals PAO PAI PA2 PA3 PA4 PAS PA6 PA7 and PBO PB1 PB2 PB3 PB4 PBS Please see chapter A2 4 for the complete pin assignment PIO Signals 2 This 14 pin connector offers the following signals PCO PCI PC2 PC3 and QSPI CS1 QSPI CS2 chip select output Please see chapter A2 5 for the complete pin assignment Expansion Bus Note This function is only with the DNP 5280 available The DNP 5282 does not support the expansion bus Vbat Connector Note This function is only with the DNP 5280 available The DNP 5282 does not need a battery SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Board Components Sas o 3 5 RCM Jumper The Remote Console Mode RCM realizes some basic operating modes such as a boot loader or a ROM monitor program The default firmware of the DNP 5282 starts a ROM monitor Motorola dBUG when the RCM jumper is set If the RCM jumper is not set the DNP 5282 will boot with uCLinux Note The default setting of the RCM jumper is not set Only if the RCM jumper is set you will be able to boot uCLinux on the DNP 5282 To activate RCM on the DNP 5282 place a jumper cap on both pins of the RCM jumper so that it is short If you remove the jumper cap or place it on just one pin the jumper is not set and you are not able to use RCM RCM RCM enabled JP1 set
93. want to make it very clear that there is no warranty for the free library Also if the library is modified by someone else and passed on the recipients should know that what they have is not the original version so that the original author s reputation will not be affected by problems that might be introduced by others Finally software patents pose a constant threat to the existence of any free program We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder Therefore we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license Most GNU software including some libraries is covered by the ordinary GNU General Public License This license the GNU Lesser General Public License applies to certain designated libraries and is quite different from the ordinary General Public License We use this license for certain libraries in order to permit linking those libraries into non free programs When a program is linked with a library whether statically or using a shared library the combination of the two is legally speaking a combined work a derivative of the original library The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom The Lesser General Public License permits more lax criteria for linking other
94. y item is missing or appears to be damaged please contact SSV Embedded Systems Standard items of the Starter Kit DNP SK14 Evaluation Board DNP EVA6 DIL NetPC DNP 5282 Power supply Power cable Null modemcable User manual DNP SK14 CD ROM e SNS Za ON SSV EMBEDDED SYSTEMS 4 DNP 5282 Starter Kit Introduction 1 3 Features Evaluation Board DNP EVA6 e One 40 pin DIL socket for a DIL NetPC DNP 5282 e One 64 pin DIL socket for a DIL NetPC DNP 5280 e Two serial interfaces RS232 e One 10 100Mbps Ethernet interface One reset switch One 5 VDC power input connector Prototype area e Size 140 x 120 mm 1 4 Features DIL NetPC DNP 5282 e Motorola 32 bit MCF5282 ColdFire with 66 MHz clock speed e 63 MIPS Dhrystone 2 1 16 MByte SDRAM memory 8 MByte flash memory e 10 100 Mbps Ethernet LAN interface Two LAN status LEDs e Two asynchronous serial ports one with all handshakes One I2C interchip bus interface e One queued serial peripheral interface SPI e One CAN interface supports CAN protocol specification 2 0B 20 bit general purpose high speed parallel I O Programmable general purpose timers and watchdog timer e Motorola BDM Background Debug Mode interface for in circuit debugging In system programming features e 40 pin JEDEC DIL 40 connector 2 54mm centers e 3 3 Volt low power design supply voltage 3 3 VDC 5 e Supply current 300 mA typ at 66 MHz e Size
95. y using this cable Evaluation Board DNP EVA6 Rev 1 1 Prototype area Bee FH T host DIL NetPC DNP 5282 oo null modemcable 3 RS232 serial link Figure 4 3 Serial link connection SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Connections 4 4 Ethernet Link The Ethernet link can be made on two ways First with a crossover cable and second with two standard 10 100BaseT patch cables and a hub or switch In both cases an Ethernet LAN interface for your development system is required If you use a hub or switch please connect them between your development system and the DNP 5282 like shown in the figure below Evaluation Board DNP EVA6 Rev 1 1 Prototype area ziii FH T T host DIL NetPC DNP 5282 hub switch DH patch cables Figure 4 4 Ethernet link connection using a hub switch If you want to connect your development system directly to the DNP 5282 place a crossover cable between these two components like shown in the next figure Evaluation Board DNP EVA6 Rev 1 1 Prototype area Kee FH T T DIL NetPC DNP 5282 host an crossover cable Figure 4 5 Ethernet link connection using a crossover cable SSV EMBEDDED SYSTEMS DNP 5282 Starter Kit Connections 4 5 Power Supply The Starter Kit DNP SK14 needs a supply voltage of 5V DC to work In your Starte
96. your breakpoints within the C source code and run your program with your remote debugging session between the PC and the DNP 5282 x DDD home dnp5280 00p c ol s Le Fle Edit View Program Commands Status Source Data Help x Ce I je Bo Lookup Find Clear Watch Print Display Plot Snow Rotate set Uncisp Q loop c e include lt stdio h gt include lt stdlib h gt int main void int i 2 uhile Ci lt 255 gt printf d amp d n i square i return EXIT SUCCESS int square int x eum WER Command Button Menu Window E gdb cont Continuing Breakpoint 2 main at loop c 9 gdb I LIEL O NR A Breakpoint 2 main at loop c 9 Figure 5 45 Using the command button menu window SSV EMBEDDED SYSTEMS 45 DNP 5282 Starter Kit Using a Linux based Development System DDD allows you to set breakpoints with your mouse Just put the mouse cursor over the source code line of your choice and press the right hand mouse button Then use the command button for continue from the command button menu window for running the program The program runs to the next or first breakpoint You can also use the command button step for single stepping at C language level through your program If the program exe cution stops you
Download Pdf Manuals
Related Search
Related Contents
Novell GroupWise® メゾHD カタログはこちら Ground Loop Design ETV 1000 Caponord Cooper Lighting LUMIERE CAMBRIA 290 User's Manual SCA Training Module 1 Sony CFD-V8 User's Manual 1 - 富士通 Système SecondLook Digital CAD pour Senographe Copyright © All rights reserved.
Failed to retrieve file