Home
L-1202e System Manual ECUcore-5208
Contents
1. gt lt gt B demo c X DI Be outline 8 m amp wwe gt if bRSMSwitch SWITCH RES stdio h 2 i fRunning FALSE SE S string h sys ioctl h usleep 250000 wait 250 ms H sys types h sys stat h lt B Console 33 Tasks Memory D Ex GP m Gy Pis PD Demo C C Local Application Jprojects ECUcore 5208 user demo source demo gdb 1 29 09 2 59 PM E J ne Writable Smart Insert 263 38 Figure 55 Debugging the Demo project in Eclipse Figure 56 illustrates Terminal outputs that are generated on the ECUcore 5208 during the debugging process SYS TEC electronic GmbH 2008 L 1202e 1 Page 64 System Manual ECUcore 5208 prootcin gt root cd frmt nis demo a mnt nfs demo 1 nfs dermo insmod pe5z08drw ko nfas demo gdbserwer 192 168 10 33 10000 demo Process demo created pid 761 Listening on port 10000 emote debugging from host 192 165 10 33 TTT TTT TE TTT Pee PPP PPP PPP PPP Pa aa a I O demo application for SYSTEC ECUcore 5208 ic 2009 SYSTEC electronic GmbH Version 1 00 Build Jan 29 2009 13 41 21 TET Cr Cr CC cr Cr aa I O Driver version KernelMadule 3 00 UserLib 23 0 0 Hardware CPU Board 4218 00 00H CPU PLD 0 00 00H IO Board 0048 Driver Config OO00H fic I O main loop DI 00 00 00 rO0 00 00 01 R 3 H Swuw RUNH Figure 56 Terminal outputs of the ECUcore 5208 during debugging 7 8 Configuration
2. M Sw RUN M Sw RUNM M Sw RUNM M Sw RUN M Sw RUN M Sw RUN L I 00 00 00 I 0 00 04 00 bHexSw 0 root Figure 47 Executing the demo project demo on the ECUcore 5208 Figure 47 demonstrates the execution of the demo project on the ECUcore 5208 To finish the demo project either set Run Stop Switch to position MRes or simply press Ctrl C 7 7 2 Using graphical IDE Eclipse Eclipse as graphical IDE is installed in the VMware Image of the Linux development system This allows for accomplishing work steps in the software development process such as editing compiling and debugging user programs within a comfortable development environment The following sections describe the application of IDE Eclipse using the exemplary demo project that is included in the VMware Image and filed in directory projects ECUcore 5208 user demo also compare descriptions in section 7 7 1 7 7 2 1 How to open and edit the demo project The graphical IDE Eclipse is started by clicking on the appropriate desktop symbol Dialog Workspace Launcher appears as shown in Figure 48 Enter the path for the workspace directory in SYS TEC electronic GmbH 2008 L 1202e 1 Page 57 System Manual ECUcore 5208 the project tree in area Workspace For the demo project of the Linux development system this would be orojects EC Ucore 5208 user demo workspace Workspace Launcher
3. Select a workspace Eclipse SDK stores your projects in a folder called a workspace Choose a workspace folder to use for this session Workspace projects ECUcore 5208 user demo workspace Browse Use this as the default and do not ask again Figure 48 Eclipse dialog Workspace Launcher After activating pushbutton OK the graphical surface of the IDE starts automatically and loads the workspace entered Figure 49 provides an overview of Eclipse after it started C C demo c Eclipse SDK File Edit Refactor Navigate Search Run Project Window Help a S ee Gy Ip o Q amp gt Bi Gl er Ei E amp C Ce 5 Debug Ej C C Proj 33 Navigator DEER out Mak XN H As 9 Ge v S Demo c SYSTEC electronic GmbH D 07973 Greiz August Bebel Str b LS Demo gt Binaries www systec electronic com d l b amp Includes Project Demo project for SYSTEC ECUcore 5208 gt Gm include Description Demo application for SYSTEC ECUcore 5208 P 8 demo c demonstarating the usage of the I O driver b 3X demo gdb m68kbe 222222 LLL LLL b mj demo o m68kbe Makefile 2009 01 27 ast Initial Version Bldemo f ses include lt stdio h gt include lt stdlib h gt include lt string h gt include lt sys ioctl h gt include lt sys types h gt include lt sys stat h gt include lt sys time h gt include lt fcntl bs Problems DI Console 3 Properties
4. will show help for all available commands plus the current module configuration see Figure 7 B COM1 19200baud Tera Term VT B x File Edit Setup Control Window Help flash addr 40000 size dour laadPart dour laadBaud 19700 kernel connand line defined by user root z dew ran kernel connand line passed to linus rootz dew ran sercon ttyso 19700 kernel inage in flash no start booting autonat icalu Ups Current TCPZIP configuration Board HAL OU CF 2 06 CF 06 Board IP 192 158 10 171 Board bateuau 0 0 0 0 Board Broadcast 197 168 1 255 Board Netnask bb SD da IEIR server 192 168 10 33 Inage rnane inage bir olilo gt k Figure 7 Displaying the current module configuration in the bootloader CoLilo 5 4 Ethernet configuration of the ECUcore 5208 The main Ethernet configuration of the ECUcore 5208 takes place within the bootloader CoLilo and is taken on for all other software components uClinux user software HTTP server etc The Ethernet configuration is carried out via the serial interface COMO Therefore the CoLilo command prompt must be activated as explained in section 5 2 1 Table 5 lists up CoLilo commands necessary for the Ethernet configuration of the ECUcore 5208 SYS TEC electronic GmbH 2008 L 1202e 1 Page 16 System Manual ECUcore 5208 Table 5 CoLilo configuration commands of the ECUcore 5208 MAC address set mac lt XX XX XX XX XX XX gt The MAC address
5. Afterwards complete the following steps in the Terminal program or Telnet client 1 1 1 2 1 3 1 4 Integration of directory projects tftoboot from the Linux development system into the local file system of the ECUcore 5208 via NFS see section 7 6 1 mount SE MES 0 nelcock 192 1608 10 58 amp tfbpbOoOot mn nts Use command cd to switch to NFS directory in the local file system cd mnt nfs demo Directory mnt nfs on the ECUcore 5208 is identical with directory tftoboot of the Linux development system in the VMware Image Accordingly all files copied by the Makefile to directory tftoboot demo in the Linux development system are accessible by the ECUcore 5208 in directory mnt nfs demo of its file system It is not necessary to explicitly download executables to the ECUcore 5208 The demo program needs the I O driver pc5208arv to access the in and outputs on the ECUcore 5208 Consequently command insmod must be used to explicitly load the driver insmod 5208 spidev ko insmod poo209drw kKko Starting the demo program on the ECUcore 5208 is controlled by the debug server Therefore command gdbserver is required and is called as follows gdbserver ip vmware image port program args For the example above this would be the following call gdbserver 192 168 10 33 10000 demo Use 192 168 10 33 as IP address of the Linux development system compare section 6 5 for the determinatio
6. 3x Asynchronous Serial Ports UART 6 digital inputs 6 digital outputs Externally usable SPI or SPl over I C and FC On board Peripherals RTC temperature sensor watchdog power fail input Operating system uClinux Small dimensions 70 x 40 mm Making available a complete single board computer as an insert ready core module with small dimensions reduces effort and costs significantly for the development of user specific controls The PLCcore 5208 is also very well suitable as intelligent network node for decentralized processing of process signals CANopen and UDP Additionally it can be used for motion control applications or as basic component for special assemblies in the industry The ECUcore 5208 provides 6 digital inputs DIO DI5 3 3V level 6 digital outputs DOO DO5 3 3V level 1 high speed counter input and 1 PWM PTO output Saving user programs in the on board Flash Disk of the module allows an automatic restart in case of power breakdown Das ECUcore 5208 is based on uClinux as operating system This allows for simultaneous execution of several user specific programs The uClinux applied to the ECUcore 5208 is licensed under GNU General Public License version 2 Appendix A contains the license text All sources of LinuxBSP are included in the VMware Image of the Linux development system SO 1096 If you require the LinuxBSP sources independently from the VMware Image of the Linux development system please contact o
7. 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 instead 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 to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities 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
8. adduser h home H G group username Figure 14 exemplifies adding a new user account on the ECUcore 5208 for user admin2 c 192 168 10 171 PuTTY root adduser h home H G users admin Changing password for adminz New password Retype password Password for adminz changed by root Lies Figure 14 Adding a new user account To delete an existing user account from the ECUcore 5208 Linux command deluser plus the respective user name must be used deluser lt username gt The following message if it is dispayed during user deletion can be ignored deluser can t find lt username gt in home etc group 5 8 How to change the password for user accounts Changing the password for user accounts requires login to the ECUcore 5208 as explained in section 5 5 1 To change the password for an existing user account on the ECUcore 5208 Linux command oasswa plus the respective user name must be entered SYS TEC electronic GmbH 2008 L 1202e 1 Page 23 System Manual ECUcore 5208 passwd lt username gt Figure 15 exemplifies the password change for user PlcAdmin If the user name is ommited the password of the current user will be changed A 192 168 10 171 PuTTY root gt passwd Plc dmin Changing password for Flcidmin New password Retype password Password for Plc Admin changed by root prooti gt Figure 15 Changing the password for a user account 5 9 Setti
9. EERO Weed 10 Execution rights ccccccssseeeceesseeeeeseeeneees 68 F SIS rp 27 Files Dreinstalled za 28 ISCONI Is ccn 27 i nn ee na 53 FFF E E E ee ee 13 PP SCI Cl un C 54 MOO der OU o4 INDIE gegen 53 MODULE a ie 54 G leie ee EE 25 ale GE 60 ZB sc te tht eats weno de 7 H a zilfare zin ERE 49 HTTP SOL i r E 29 DWEIOCK Sec MT ERN 24 I ICON aroe 37 MSMO near 48 49 IOGIVOGIN O ses c 67 L HENAN ER eats bet ee alec arate else aes 7 Linux VMware Image 35 EINIXBSP EE 65 M Manuals EE 6 MOUN Ss 52 N MCU USC si nana sabre aies 38 Network environment 3 NFS puede eege eegene 52 L 1202e 1 Page 76 System Manual ECUcore 5208 P PATES e A ntm 68 Predefined user accounts 22 development system 36 S Search DAME epe bo rs vd tata 68 Selling BIO 24 Setting System TMC eei enc rep d Ee ba er vk dca 24 setup ecucore 52068 sh sssus 29 DO NIE EE 34 EHNEN 45 Software update ee Em TU 33 uClinux Image iriirihia 30 EE EG 15 T TAB COMPICTION oiii dee ei 69 Telnet Login to ECUcore 52068 21 Login to Linux development system 38 Telnet cken Go nan a 13 Terminal program eese 13 Terminal settings A 14 Testing Hardware Connections 67 RH RE 30 MONG ZOMG ete tx 70 SYS TEC el
10. Makefile and environment variables to create Drolecls nennen 46 7 4 I O Driver for the ECUcore 5208 REENEN 47 7 4 1 Integration of the I O Driver into own user projects eeeeeeeeeeeeene 47 742 VO Driver demo Project vais cece a ee 48 7 5 GAN Driver for the ECUCOre 5208 eet a ne 49 7 5 1 Integration of CAN Driver into own user projects 2222unssnnnnnnnnnnnnennnnnnnnnnn nn 49 7 52 GAN driver demo Projet EE 49 7 6 Transferring programs to the ECUcore 5208 Us 51 7 5 Using Nl S ss het dto a Gangs ad Ux tU testen ttc eset 52 10 ELT OB we re ann a acetal esa eae 53 162 1 EGUCore 5208 35 F IP client ses 53 19 2 2 ECUcore 5208 as FTP server 54 7 7 Compiling and executing the demo project demo Rs 55 7 7 1 NSAQC OM MAKES E T re 55 Tie sing Orapnical IDE Gelle 57 7 7 2 1 How to open and edit the demo project sseeeeesessesssss 57 7 7 2 2 Compiling the demo project inei a nennen 59 7 7 2 3 Debugging the demo project in the IDE 59 7 8 Configuration and Compiling of uClinux Image and CoLilo 65 8 Testing the hardware connections uuusuuunennnnnnnnnennnnnnnnnnunnnnunnununnnnnnnnununnnnunnnnnennnnn 67 9 Tips amp Tricks for Handling Linux resp uClinux sese 68 Appendix A GNU GENERAL PUBLIC LICENSE 2 2222022200022000an00nnnnunnnnunnnn
11. Testing the hardware connections The ECUcore 5208 primarily is designed as vendor part for the application in industrial controls Hence the ECUcore 5208 typically is integrated in a user specific baseboard To enable trouble free inspection of correct I O activation the Testing program iodrvdemo can be used This test program is directly tied in with the I O driver and allows quick and direct access to the periphery The testing program is preinstalled as executable home bin iodrvdemo on the ECUcore 5208 Moreover the program sources are included as reference application in the I O driver project See section 7 4 Start the Testing program iodrvdemo as follows cd home bin insmod 5208 spidev ko insmod pc5208drv ko iodrvdemo Figure 58 illustrates testing the hardware connection by using iodrvdemo EP 192 168 10 171 PuTTY L Lok For further intormation check http www uclinux org x mount t nfs o nolock 182 168 10 93 tftphboot mnt nfs lt gt cd mnt nfs s5z s insmod S208 spidev ko coot mnt nis insmod pces5z sdrv ko ront mnt nfs 5208 iodrvdemo Test application for SYSTEC ElUcore 3205 board driver Version 3 00 2006 2005 SYS I O Driver version KernelModule 1 00 UserLib 1 00 Hardware CFU Board 4218 00 008 CFU PLD 0 00 00H IO Board Config aoooH application ZO test digital I O and user switches IAC menu CD menu un EEPROM test un te
12. and software development After the integration into a device or when changes extensions are made to this product the conformity to EMC law again must be assessed and certified Only thereafter products may be launched onto the market The CE conformity is only valid for the application area described in this document and only under compliance with the following commissioning instructions The ECUcore 5208 is ESD sensitive and may only be unpacked used and operated by trained personal at ESD conform work stations The ECUcore 5208 is a module for the application in automation technology It is programmable under uClinux and uses CAN bus and standard Ethernet network interfaces for various solutions in the automation industry Moreover it uses the standardized CANopen network protocol Due to all those features the module implicates shorter development times at reasonable hardware costs SYS TEC electronic GmbH 2008 L 1202e 1 Page 5 System Manual ECUcore 5208 2 Overview Where to find what The present document describes the commissioning of the ECUcore 5208 based on the Development Kit ECUcore 5208 as well as general procedures for software development of this module There are different hardware manuals for all hardware components such as the ECUcore 5208 development boards and reference circuitry Software sided the ECUcore 5208 is delivered with preinstalled uClinux a special Linux variant without MMU Hence applications that
13. be transferred between the computer and the ECUcore 5208 e g for data backups of the ECUcore 52068 or to transfer installation files for firmware updates select transfer mode Binary Advice The data transmission using FTP is done in cleartext That means login name and password are sent unencrypted 5 6 Predefined user accounts All user accounts in Table 6 are predefined upon delivery of the ECUcore 5208 Those allow for a login to the command shell serial RS232 connection or Telnet and at the FTP server of the ECUcore 5208 SYS TEC electronic GmbH 2008 L 1202e 1 Page 22 System Manual ECUcore 5208 Table 6 Predefined user accounts of the ECUcore 5208 PlcAdmin Plc123 Predefined user account for the administration of the ECUcore 5208 configuration user administration software updates etc Sys123 Main user account root of the ECUcore 5208 5 7 Adding and deleting user accounts Adding and deleting user accounts requires the login to the ECUcore 5208 as described in section 5 5 1 Adding a new user account takes place via Linux command aaduser In embedded systems such as the ECUcore 5208 it does not make sense to open a directory for every user Hence parameter H disables the creation of new directories By using parameter h home instead the given directory home is rather assigned to the new user To open a new user account on the ECUcore 5208 Linux command adduser is to be used as follows
14. comment The definition can be adjusted for other time zones e Stack sizes of programs Programs being compiled for uClinux have a standard stack size of 4KiB Because there is no MMU there is no way to handle case where the stack size is insufficient In case of program aborts or worse kernel aborts or panics a stack set too small could be the reason To increase the application size a program called flthdr of the toolchain has to be used An example is m68k uclinux flthdr s 20480 romfs bin busybox This sets the stack size of the busybox application from the directory romfs bin relative to the current working directory to 20 KiB SYS TEC electronic GmbH 2008 L 1202e 1 Page 70 System Manual ECUcore 5208 Appendix A GNU GENERAL PUBLIC LICENSE The uClinux used on the ECUcore 5208 is licensed under GNU General Public License version 2 The entire license text is specified below A German translation is available from http www gnu de documents gpl 2 0 de html Be advised that this translation is not official or legally approved Additional SYS TEC system software and programs developed by the user are not subject to the GNU General Public License GNU GENERAL PUBLIC LICENSE Version 2 June 1991 Copyright C 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
15. configuration data under uClinux using gbrdcfg By calling gbrdcfg without indicating parameters all CoLilo configuration data is shown see Figure 17 By calling gbractg help all parameters for targeted queries of configuration information are listed The above mentioned scripts illustrate the usage of gbracfg demonstrate the assignment of requested information to environment variables and show the analysis of information in the Shell script 5 11 Showing the installed uClinux Version The uClinux Version installed on the ECUcore 5208 is shown by calling command version see Figure 18 SYS TEC electronic GmbH 2008 L 1202e 1 Page 26 System Manual ECUcore 5208 GZ 192 168 10 171 PuTTY version V2 6 25 ucD LinuxBSP VO 8 Figure 18 Showing the installed uClinux Version 5 12 File system of the ECUcore 5208 Pre installed uClinux on the ECUcore 5208 provides part of the system memory in form of a file system Being usual for embedded systems most of this file system is read only which means that changes to this part can only be made by creating a new uClinux Image for the ECUcore 5208 The advantage hereby is the resistance of a read only file system against damages in case of power breakdowns Those occur relatively often in embedded systems because embedded systems are usually simply turned off without previous shutdown Table 7 lists up writable paths of the file system during runtime Path home compr
16. has to be executed once which can also be done concurrently with the variable assignment SYS TEC electronic GmbH 2008 L 1202e 1 Page 69 System Manual ECUcore 5208 e Assistance in a program By entering the program name followed by help e g mount help it is possible in Linux to call brief help and assistance in a program including description of parameters used Alternatively the so called man pages manual pages can be used To use them the command man followed by the program which man page should be opened needs to be appended e g man Is The man pages can be scrolled up and downwards using the arrow keys To exit the man program the q quit simply has to be pressed Lots of man pages are also available HTML page on the internet e Error diagnostics in shell scripts To simplify error diagnostics when executing shell scripts the script that is to analyzed can be called via command sh x script file Option x instructs the shell to output each executed line on the console Thus it can be easily reproduced which branches of a conditional execution n V If case while etc really have been taken e Setting the time zone for the ECUcore 5208 Setting the time zone for the ECUcore 5208 takes place by defining the environment variable TZ in start script home etc profile The appropriate definition for Germany UTC 1 00 including begin and end of summer time is already provided as a
17. lhIBS e lvb4pob208dfv a LEE S CbDELAGS 0 8 STOBJS S LIBS SALBLIBS Functions provided by the I O driver are listed in the header file oc5208drv h their usage is kept record of in the demo program projects ECUcore 5208 user demo also see section 7 7 The delivery status of the ECUcore 5208 includes completely generated and ready to load via insmod Kernel modules of the I O driver filed in directory home bin see section 5 13 insmod home bin 5208 spidev ko insmod home bin pc5208drv ko Loading the kernel module 5208 spidev ko is necessary so the I O driver pc5208drv ko can access SPI devices using the separate bus This separation is necessary to use a faster CAN driver see section 7 5 1 The Demo project in orojects EC Ucore 5208 user demo shows an example for the application of the I O Driver on the ECUcore 5208 see sections 7 4 2 and 7 7 7 4 2 VO Driver demo project The demo project for the I O driver is filed in directory projects ECUcore 5208 user demo of the Linux development system It illustrates the access to in and outputs of the module Therefore the demo project uses the assistance of the I O driver filed in projects ECUcore 5208 driver pc5208drv Section 7 7 in much detail describes the Demo project as reference project for software development for the ECUcore 5208 Prior to starting the Demo project command insmod is used to explicitly load the I O driver Afterwards the demo pr
18. localhost File Edit View Connection Extras Windows Help S Emo NMT PDO SDO EMCY FLYMA User Host Application tcl loaded Please press button User New connection to host localhost Bitrate kBit 13025 844 1024 0x400 6c 6f 63 61 6e 1232967320 256 0x100 03 04 05 06 07 State 13041 176 512 0x200 I 03 04 05 06 07 1232967418 0 262 0x106 44 13139 839 518 0x206 44 ASCII Dec Time on off Set Mark Status TEN DET tts TS T7 Pah rear iG Ext RTR Id Length BO B1 B2 B3 B4 B5 B6 B Repeat Time ms Message Name C TF owe fa fom fofos sein Figure 43 CAN analysis tool CAN REport 7 6 Transferring programs to the ECUcore 5208 The configuration of the module as described in section 5 4 is one requirement for transferring as well as starting programs on the ECUcore 5208 Afterwards login to the command shell of the ECUcore 5208 according to section 5 5 1 is necessary There are two possibilities for the transmission of programs on the ECUcore 5208 or data exchange between development system VMware Linux Image and the ECUcore 5208 in general Both imply advantages and disadvantages NFS Network File System NFS represents the easiest way of directly starting a user program built in the Linux Image on the ECUcore 5208 To do so a directory from the VMware Image of the Linux development system is mounted into the local file system of the ECUcore 5208 Enter th
19. on the ECUcore 5208 By default a preconfigured TFTP server is included in the VMware Image of the Linux development system To alternatively update the uCInux Image from a Windows computer the freeware JF 7PD32 downloadable from http tftpd32 jounin net is suitable The program only consists of one EXE file that needs no installation and can be executed immediately SYS TEC electronic GmbH 2008 L 1202e 1 Page 13 System Manual ECUcore 5208 For programs that communicate via Ethernet interface such as FTP client or TFTP server it must be paid attention to that rights in the Windows Firewall are released Usually Firewalls signal when a program seeks access to the network and asks if this access should be permitted or denied In this case access is to be permitted 5 2 System start of the ECUcore 5208 5 2 1 Activation Deactivation of uClinux Autorun During standard operation mode the bootloader CoLilo automatically starts the uClinux operating system of the module after Reset or Power on Afterwards the operating system loads all further software components and controls the execution of user programs see section 5 2 2 For service purposes such as configuring the Ethernet interface see section 5 4 or updating the uClinux Image see section 5 15 it is necessary to disable this Autorun mode and to switch to CoLilo command prompt instead configuration mode The automatic boot of uClinux operating system is connecte
20. on the ECUcore 5208 Since the demo program accesses in and outputs of the ECUcore 5208 it requires I O driver pc5208arv to do so Consequently the I O driver must be loaded using command insmod Afterwards the demo program can be started insmod 5208 spidev ko insmod pc5208drv ko demo SYS TEC electronic GmbH 2008 L 1202e 1 Page 56 System Manual ECUcore 5208 GC 192 168 d O xj root mount t nfs ek i1892 168 10 33 tftphbaoot mnt ntfs root gt roots lema pes5zu usdrw demo gt insmod pce5z adrv koa root mnt nts demo gt dema I O demo application for SYSTEC ECUcore 52086 c 2009 SYSTEC electronic cmbH Version 1 00 Build Jan 29 2009 13 41 21 Fr T TTP TPP FT A A A A aaa FETT FF TI FH TTT PPT I IT A FF TFT I A FF A Pa aa r I O Driver version KernelModule 3 00 UserLib 3 00 Hardware CPU Board 4218 00 008 CPU PLD 0 00 i 00H IO Board 4220 00 00H Contig OOOOH Start basic I O main loop DI 00 00 00 DO O0 O00 O01 bHexSw 0 bDipSsw Ox00 DI 00 00 00 DO 00 O00 Ue bHexSw Ox00 bDipSw x D I 00 00 00 D 00 00 04 bHexSw Ox00 DI 00 00 00 DO 00 00 08 bHex3w x DI o00 o00 00 LO 00 00 10 bHexSw O0Ox00 DI o00 00 00 DoO o00 00 20 bHexSw O0x00 DI O00 00 00 DO O00 00 40 bHexSw O0x00 DI o00 00 00 LO 00 00 60 bHexSw 0x00 DI 00 00 00 D 00 01 00 bHexSw Ox00 LE I 00 00 00 DO 00 02 00 hHexaw Ox0C M Sw RUN M Sw RUN M Sw RUN M Sw RUN M Sw RUN
21. possibilities to login e Logging in possible by using a Terminal program e g HyperTerminal or TeraTerm see section 5 1 via the serial interface COMO of the ECUcore 5208 analog to the procedure described for the Ethernet configuration in section 5 4 For the configuration of the terminal settings pay attention to only use CR carriage return as end of line character Login with user name and password is not possible for CR LF carriage return line feed e Alternatively the login is possible using a Telnet client e g PUTTY or also TeraTerm Telnet via the Ethernet interface ETHO of the ECUcore 5208 5 5 2 The Internet Service Daemon The Internet Service Daemon inetd for short can be used for starting several net services if an incoming connection is about to be established On ECUcore 5208 the inetd services Telnet and FTP By default all services beside Telnet are disabled for performance and security reasons To use FTP or Telnet the each service has to be enabled in the inetd configuration file home etc inetd conf Therefore several helping scripts for enabling disabling Telnet and FTP are supplied in the directory Ihome bin E g the FTP service can be enabled by the following command enable ftpd sh To make the changes effective the inetd service has to be restarted The following command is necessary etc rc d init d inetd sh restart Lines in home etc inetd conf starting with a sign will be considere
22. possibly be defective By the means of SO 1096 exe the VMware Image included on the DVD unpacks itself If SO 1096 exe is started all files corresponding to the VMware Image are unpacked onto the local hard disk That decompressed image requires about 10 GByte 6 3 Starting the Linux VMware Image Initially the VMware Player must be started on the host computer Open file Xubuntu ECUcore5208 vmx in the program window of the Player by using the Open symbols see Figure 24 SYS TEC electronic GmbH 2008 L 1202e 1 Page 34 System Manual ECUcore 5208 Commands Browse for available virtual machines When you select a virtual machine it opens in this VMware Player window Open m Download a virtual appliance from VMware Virtual Appliance Lp Marketplace Y ou can then open it in VMware Player Download Featured Virtual Appliance Accellion File transfer virtual appliance An on demand file transfer solution that is secure economical and easy to use for end users and IT management Download VMware Player Figure 24 Program window of the VMware Player using the Open symbol By executing an image VMware saves the Finger Print of the host computer in form of an UUID in the file vmx If the Linux VMware Image is started on another computer the dialog as shown in Figure 25 appears If the same Linux Image is not executed on another computer at the same time in the same network option I moved it sh
23. the Program 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 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 SYS TEC electronic GmbH 2008 L 1202e 1 Page 72 System Manual ECUcore 5208 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 1 and 2 above provided that you also do one of the following a 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 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 Sectio
24. the Windows program TFTPD32 is used the IP address is shown on the computer in array Server Interface set image image bin Setting the file names for the uClinux Image that must be loaded tito Ox40300000 Downloading the uClinux Image from the computer onto the ECUcore 5208 flash 0x40000 Saving the uClinux Image in the Flash of the ECUcore 5208 set kil 1 Declaring the uClinux Image saved in the Flash of the ECUcore 5208 as valid Activating the Autorun for the uClinux Image after Reset Storing the current settings in the Flash 101 x m COM1 19200baud Tera Term YT File Edit Setup Control Window Resize Help CUcore S2U8 boot oliloset server 192 108 10 33 TF Server 192 168 10 33 olilovset inage inage bin Inage inage bin alilo tftp x40300000 TP dounload ounload address 40300000 sing FEC D goard HAC OO CF 52 08 CF 087 card IP 192 168 10 171 gard netnask 255 255 255 oard gateuau 0 0 0 0 TP server 192 169 410 337 j inage bin atup FEL Initializing TIUP IP stack Ready TP transfer conpleted ead 3092484 bytes 6041 blocks Inage size 3092484 Dstt S004 bytes alilo flash O 40000 Figure 23 Downloading the uClinux Image onto the ECUcore 5208 After finishing the configuration all preconditions for the uClinux Autorun must be re established according to section 5 2 1 After Reset e g pushbutton S403 on the Development Board the ECUcore 5208 starts usin
25. the configuration of the server the file boa conf is used Upon starting the server the directory that contains this file must be given via command line parameter c The delivery status of the ECUcore 5208 includes Demo files in the directory home http The Demo files illustrate the application of the HTTP server To activate the Demo configuration the HTTP server boa must be started manually by indicating the Demo directory Therefore the user must first be logged in to the command shell of the ECUcore 5208 as explained in section 5 5 1 Afterwards the following command is entered in the Telnet or Terminal window boa c home http amp Figure 20 exemplifies starting the HTTP server boa for the Demo configuration included in the delivery status of the ECUcore 5208 192 168 10 1 71 PuTTY rooti gt hoa c home http 41 root gt Figure 20 Starting the HTTP server boa To call the pages provided by the HTTP server prefix http 7 plus the IP address of the ECUcore 5208 as set in section 5 4 e g httpz 192 168 10 171 must be entered in the address bar of the WEB Browser Figure 21 shows HTML pages for the ECUcore 5208 in the WEB Browser SYS TEC electronic GmbH 2008 L 1202e 1 Page 29 System Manual ECUcore 5208 J ECUcore 5208 Main Page Mozilla Firefox B x File Edit View History Bookmarks Tools Help am http 192 168 10 171 u SYS TED ECUcore 5208 The all rou
26. 3 On Host side use the GDB debugger that is included in the GNU crosscompiler toolchain for Freescale MCF52xx processors To select it activate Tabsheet Debugger Enter the complete path for the GDB Debugger of the Crosscompiler Toolchain in section Debugger Options in Sub Tabsheet Main area GDB debugger see Figure 53 for the above example this would be projects ECUcore 5208 toolchain uclinux 4 2 bin m68k uclinux gab SYS TEC electronic GmbH 2008 L 1202e 1 Page 62 System Manual ECUcore 5208 Create manage and run configurations t amp x G e type filter text Name Main 9 Arguments PS Environment E STEEN CG Source EI Common Debugger gdbserver Debugger M Stop on startup at Advanced Debugger Options Main Shared Libraries GDB debugger E C C Attach to Local Applicat C C Local Application c Demo E C C Postmortem debugger Eclipse Application amp Equinox OSGi Framework E Java Applet E Java Application Ju JUnit Ju JUnit Plug in Test 21 Remote Java Application Er SWT Application projects ECUcore 5208 toolchain uclinux 4 2 bin m68k uclinu x arme Warning Some commands in this file may interfere with the startup operation of the debugger for example run standard v mi Verbose console mode GDB command file GDB command set Protocol Revert Apply Close Figure 53 Selecting the GD
27. 307 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 C 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 into 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 SYS TEC
28. 9200 Baud 8 Data bit 1 Stop bit no parity no flow control Tera Term Serial port setup X Port com E Baud rate aan Data j bit Cancel Parity none sl Stop hw a BH Flow control none sl Transmit delay lo msec char n msecjline Figure 5 Terminal configuration using the example of TeraTerm 5 2 2 Autorun for user software By default the ECUcore 5208 starts running the uClinux operation system upon Power on or Reset which loads all necessary software components to execute the user software afterwards Hence the ECUcore 5208 is suitable for the usage in autarchic control systems In case of power breakdown such systems resume the execution of control programs independently and without user intervention Figure 6 shows the system start in detail Power on Reset For more details on how to Start Linux Bootloader deactivate the autarchic uClinux CoLilo start and to activate the CoLilo command prompt compare section 5 2 1 Start uClinux Operating System Load Module Drivers VO CAN RTC etc Run Boot Script Start Servers home etc autostart inetd Server Syslog Server Details about the programming of the ECUcore 5208 are covered in Start User Software section 7 Figure 6 System start of the ECUcore 5208 It is possible to configure the ECUcore 5208 so that the user software starts automatically after Reset Therefore all essential commands must be lodged in the start script h
29. B Debugger Configuring the connection to the Target see Figure 54 The configuration of the connection to the target also takes place in Tabsheet Debugger Hence enter the appropriate information in section Debugger Options in Sub Tabsheet Connection see Figure 54 In area Host name or IP address the IP address of the ECUcore 5208 as defined in section 5 4 must be entered 192 168 10 171 for the example Enter the Port number defined in point 1 4 in area Port number when command gabserver is called for this example 70000 Create manage and run configurations te x e type filter text c C C Attach to Local Applicat 7 C C Local Application c Demo Neme Main 9 Arguments BB Environment SE E Source CC Common Debugger gdbserver Debugger E C C Postmortem debugger Eclipse Application 4 Equinox OSGi Framework Fi Java Applet 3 Java Application Ju JUnit Ji junit Plug in test Z Remote Java Application Er SWT Application M Stop on startup at Advanced Debugger Options Main Shared Libraries Connection Type TCP v Host name or IP address IE gt SE AB Port number Revert Aw Close Figure 54 Configuring the connection to the Target SYS TEC electronic GmbH 2008 L 1202e 1 Page 63 System Manual ECUcore 5208 Thus the configuration of the Debuggers is completed By activating pushbutton Debug the
30. CAST RUNNING MULTICAST MTU 1500 Metric l RX packets 3259 errors 0 dropped 0 overruns frame 0 TX packets 547 errors dropped overruns carrier 0 collisions txqueuelen 1000 RX bytes 408205 408 2 KB TX bytes 173328 173 3 KB Interrupt 18 Base address 0x10a4 Link encap Local Loopback inet addr 127 0 0 1 Mask 255 0 0 0 inet6 addr 1 128 Scope Host UP LOOPBACK RUNNING MTU 16436 Metric 1 RX packets 78 errors 0 dropped 0 overruns 0 frame 0 TX packets 78 errors dropped 0 overruns carrier 0 collisions 0 txqueuelen 0 RX bytes 5776 5 7 KB TX bytes 5776 5 7 KB vmware vm xubuntu Figure 27 Determining the IP address of the Linux development system 6 6 Access to the Linux development system from a Windows computer 6 6 1 Access via Windows network environment The access to files in the Linux development system via Windows network environment is possible by using the Samba server that is installed in the VMware Image This allows for comfortable creation and editing of source codes by using any Windows editor such as the Visual Studio The file system of the Linux development system in the Windows network environment is accessible from path Workgroup under computer name Vm xubuntu also compare Table 9 in section 6 4 bk CR m xubuntu B x File Edit View Favorites Tools Help C9 Back d ER Search Folders y i X Ki EBL Address d Vwm xubuntu Go Fp boot pro
31. DE is only necessary once upon first call The configuration takes place within Eclipse via menu item Run Debug Thus a configuration dialog opens as shown in Figure 52 Hence follow the steps listed below SYS TEC electronic GmbH 2008 L 1202e 1 Page 61 System Manual ECUcore 5208 2 1 Determining the program that is to be executed in the Debugger see Figure 52 2 2 Therefore the name of the program that is to be debugged must be entered in Tabsheet Main in area C C Application this would be demo gdb for the above example Important on this step is to select the ELF file with the file extension gdb On the ECUcore 5208 the so called FLAT file format ist used while the debugger needs an ELF file Both files are created by the C compiler gcc Create manage and run configurations Ce x Name type Mies nd CE o Arguments A Environment Debugger amp Source 7 Common c C C Attach to Local Applical v c C C Local Application Project Soen E C C Postmortem debugger C C Application Eclipse Application T cb Equinox OSGi Framework E Java Applet Search Project Browse M Connect process input amp output to a terminal 3 Java Application Ju JUnit Jt JUnit Plug in Test wa Remote Java Application 5 SWT Application Figure 52 Determining the application that is to be debugged Selecting the GDB Debugger to be used see Figure 5
32. Debug m H No consoles to display at this time IL n Writable Smart Insert 4 16 Figure 49 The graphical IDE Eclipse The source code of the demo program can be edited in the editor window By double clicking an entry in the project tree left all files of the project can be opened and edited SYS TEC electronic GmbH 2008 L 1202e 1 Page 58 System Manual ECUcore 5208 7 7 2 2 Compiling the demo project To compile the demo project open entry Demo in window Make Targets by clicking on the triangle that is put in front Afterwards call the translating process by double clicking on entry Build Project see Figure 50 Hence Eclipse calls the Makefile of the demo project in directory source orojects EC Ucore 5208 user demo source Makefile This is the same Makefile that was called manually in a Terminal window as described section 7 7 1 Accordingly all messages shown in IDE window Console are identical to the ones shown in Figure 46 In the same way the demo program file demo and the I O drivers needed to execute it files 5208 spidev ko and pc5208drv ko are copied into directory tftoboot demo Consequently the demo program can be started on the ECUcore 5208 after successful completion of the Build process as explained in section 7 7 1 C C demo c Eclipse SDK File Edit Refactor Navigate Search Run Project Window Help Fi ee Gy G Ov Q amp co
33. Debugger starts with the current settings 3 Executing the Debugger in the IDE After the configuration described in point 2 is completed the Debugger can be called in Eclipse via menu item Run gt Debug Last Launched Thereby the IDE switched from C C Perspective to Debug Perspective see Figure 55 Table 10 lists up the most important Debugger commands Table 10 Overview of most important Debugger commands AN F7 e Step Return D F8 Run if necessary until the next Breakpoint Ctrl Shift B Double click Toggle Line Breakpoint Terminate Figure 55 shows the Debugging process of the Demo program within the IDE Eclipse If the mouse pointer is positioned to a variable its current value is shown e 108 Debug demo c Eclipse SDK giele alle File Edit Refactor Navigate Search Project Run Window Help et na 0 2 lee elo Be Flv x ev o ri Mac c Ss Debug Debug 33 A Variables 23 Breakpoints Registers Modules m oom m wl ao e iv amp B sx v E Demo C C Local Application D Name Value 14 v gdbserver Debugger 1 29 09 2 59 PM Suspended b 9 PC5208Digiln 1 v gf Thread 1 Suspended b 9 PC5208DigiOut da 2 AppBasiscloLoop projects ECUcore 5208 user demo source 69 dwOutData 2 Y 1 main projects ECUcore 5208 user demo source demo c 150 E El E vi projects ECUcore 5208 toolchain uclinux 4 3 bin m68k uclinux gdb lt
34. Ed C C Proj 3 Navigator O demo c 3 E ee Fa v Demo c SYSTEC electronic GmbH D 07973 Greiz August Bebel Str 2L v i Demo gt Binaries www systec electronic com amp settings d SC P amp Includes Project Demo project for SYSTEC ECUcore 5208 P include gt Gs include Description Demo application for SYSTEC ECUcore 5208 Build Project P 8 demo c demonstarating the usage of the I O driver Clean Project b Ze demo gdb m68kbel 2222222222 b demo o m68kbe Makefile LY demo ge se sie se se ee a ee ee ee ee ee EE EEE EEE EEE ooo eco ooo 2009 01 27 ast Initial Version include lt stdio h gt include lt stdlib h gt include lt string h gt include sys ioctl h include lt sys types h gt include lt sys stat h gt include lt sys time h gt include lt fcntl h gt k gt Problems EJ Console 23 Properties Debug C Build Demo Done A Copy executeable demo to destination tftpboot demo done Copy 1 0 driver lib pc5208drv ko to destination tftpboot demo done El me Figure 50 Translating the demo project in Eclipse If problems or warnings occur during translation e g as a result of modifying the demo project by the user they are clearly illustrated in IDE window Problems By double clicking an entry the IDE opens the corresponding source file and marks the row in the editor By double cl
35. Local console User vmware Predefined user account within the Linux Terminal normal user Password vmware development system rights Administrator rights Command sudo The Linux development system that is used Password vmware does not support explicit login as root to execute a command with administrator rights Linux command sudo can be put in front if required e g sudo cat etc shadow Windows network Group Workgroup Predefined user account to access the Linux environment Computer Vm xubuntu development system via Windows network User vmware environment Samba Password vmware Telnet access User vmware Predefined user account to login to the Linux Password vmware development system via a Telnet client e g Telnet client under Windows SYS TEC electronic GmbH 2008 L 1202e 1 Page 36 System Manual ECUcore 5208 6 5 Determining the IP address of the Linux development system To determine the IP address that is assigned to the Linux development system via DHCP a console window must be started in Linux symbol Terminal After entering command ifconfig among other things the IP address of the Linux Image is displayed marked with color in screenshot Figure 27 Terminal File Edit View Terminal Go Help vmware vm xubuntu sbin ifconfig eth2 Link encap Ethernet HWaddr 00 0c 29 87 f3 5c HT 192 168 10 33 TEST TS CPP ELEC ET lt P beh ee bbe inet6 addr fe80 20c 29ff fe87 f35c 64 Scope Link UP BROAD
36. OSSIBILITY OF SUCH DAMAGES END OF TERMS AND CONDITIONS SYS TEC electronic GmbH 2008 L 1202e 1 Page 74 System Manual ECUcore 5208 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 lt one line to give the program s name and a brief idea of what it does gt Copyright C lt year gt lt 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 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 1
37. PlcAdmin Password Welcome to ER m m PIU i For further information check http uuu uclinux 0rg Figure 11 Calling the Telnet client in Windows Advice The data transmission using Telnet is done in cleartext That means login name and password are sent unencrypted 5 5 4 Login to the FTP server The ECUcore 5208 has available a FTP server FTP Deamon that allows file exchange with any FTP client e g up and download of files to or from a computer Due to security and performance reasons the FTP server is deactivated by default and must be activated manually if required As the FTP service is only provided indirectly using inetd it has to be enabled in the inetd configuration The proceeding is described in section 5 5 2 WinSCP which is available as open source would be suitable as FTP client for the computer see section 5 1 It consists of only one EXE file needs no installation and may be started immediately After program start dialog WinSCP Login appears see Figure 12 and must be adjusted according to the following instructions File protocol FTP Host name IP address of the ECUcore 5208 as defined in section 5 4 User name PicAdmin for predefined user account see section 5 6 Password Pic123 for predefined user account see section 5 6 SYS TEC electronic GmbH 2008 L 1202e 1 Page 21 System Manual ECUcore 5208 Session Session Stored sessions Host name Port number Environm
38. S CROSS ar Calling Tools via an appropriate Macro such as CC takes place within the Makefile CC CFLAGS o EXEC hello c Prepared in the Makefile also is the copying of generated executeables into directory tftpboot or one of its subdirectories Through this the executable program can later on be started directly on the ECUcore 5208 without other intermediate steps also compare section 7 6 1 7 4 VO Driver for the ECUcore 5208 7 4 1 Integration of the I O Driver into own user projects Directory projects ECUcore 5208 driver pc5208drv of the Linux development system contains the source code of the I O Driver for the ECUcore 5208 including testing application Moreover it contains header files and already built libraries of the driver for the integration into own user projects Figure 41 illustrates the structure of the I O Driver for the ECUcore 5208 The driver is divided into a kernel space module pc5208arv ko which is in charge of accesses to the hardware and a static user space library pc5208arv a Both components the kernel space module and the user space library are necessary to accomplish I O accesses The creation and usage of dynamic libraries are not supported yet User Application UO Driver O O a Q pc5208drv a 2 D 0 2 O O an 5208 spidev ko d pc5208drv ko 9 x Figure 41 Structure of the I O Driver for the ECUcore 5208 The following files from the
39. SYS TEC System Manual ECUcore 5208 User Manual Version 1 00 Edition August 2009 Document No L 1202e 1 SYS TEC electronic GmbH August Bebel Stra e 29 D 07973 Greiz Telefon 49 3661 6279 0 Telefax 49 3661 6279 99 Web http www systec electronic com Mail info systec electronic com SYS TEC electronic GmbH System House for Distributed Automation Solutions System Manual ECUcore 5208 Status Changes Status Released 1 0 SYS TEC electronic GmbH 2008 L 1202e 1 Page 1 System Manual ECUcore 5208 This manual includes descriptions for copyrighted products that are not explicitly indicated as such The absence of the trademark symbol does not infer that a product is not protected Additionally registered patents and trademarks are similarly not expressly indicated in this manual The information in this document has been carefully checked and is believed to be entirely reliable However SYS TEC electronic GmbH assumes no responsibility for any inaccuracies SYS TEC electronic GmbH neither guarantees nor accepts any liability whatsoever for consequential damages resulting from the use of this manual or its associated product SYS TEC electronic GmbH reserves the right to alter the information contained herein without prior notification and does not accept responsibility for any damages which might result Additionally SYS TEC electronic GmbH neither guarantees nor assumes any liability for damages ari
40. act distribution terms individual files in usr share doc copyright Ubuntu comes with ABSOLUTELY NO WARRANTY to the extent permitted hy applicable law To aceess official Ubuntu documentation pl http help ubuntu com mwarelyvm zubuntu 35 Figure 30 Access to the Linux development system via Telnet client Figure 30 exemplifies login to the Linux developments by using the Telnet client that is included in Windows as standard 6 7 Personal configuration and actualization of the Linux VMware Image 6 7 1 Adjustment of keyboard layout and time zone By default the Linux VMware Image is set to US keyboard layout and UTC time zone Via the country symbol in the task menu it is possible to easily switch to another preinstalled keyboard layout see Figure 31 lt gt Applications B Places Es 2 ER J I l e 13 02 ur he S x E EX e Terminal Eclipse Text Editor Bl Krusader z Figure 31 Country symbol for switching keyboard layouts By clicking with the right mouse button on the country symbol in the task menu see Figure 31 and by calling entry Properties from the popup menu an alternative keyboard layout may be permanently chosen Hence dialog Configure Keyboard Layout Switcher opens and the desired layout can be set as Default Layout see Figure 32 SYS TEC electronic GmbH 2008 L 1202e 1 Page 39 System Manual ECUcore 5208 Configure Keyboard Layout Switcher Show la
41. and Compiling of uClinux Image and CoLilo All uClinux sources for the ECUcore 5208 are stored in the VMware Image of the Linux development system in directory projects ECUcore 5208 uClinux dist To modify the configuration of the uClinux kernel or of user space applications included in the Image use command cd in a console window to switch to the directory for LinuxBSP Afterwards call command make menuconfig ed lprojects ECUcore 52098 uClirmux dist make menuconfig Figure 57 shows the typical surface for the configuration of uClinux Kernel and user space applications SYS TEC electronic GmbH 2008 L 1202e 1 Page 65 System Manual ECUcore 5208 Terminal File Edit View Terminal Go Help uClinux Distribution Configuration endor Product Selection gt K lt Select gt Figure 57 User surface for the configuration of the uClinux distribution After finishing the configuration uClinux kernel user space applications are compiled by calling make Afterwards they are merged to a new Image ed proJjects ECUcore 5208 uClinux dist make By calling the following command the uClinux Image will be copied into directory tftoboot From there it can be loaded onto the ECUcore 5208 see section 5 15 cp images image bin tftpboot To rebuild the bootloader CoLilo enter the command make cd projects ECUcore 5208 colilo make SYS TEC electronic GmbH 2008 L 1202e 1 Page 66 System Manual ECUcore 5208 8
42. any Windows Editor On the contrary compiling the project is only possible within a Linux development environment Therefore it is possible to either use a console window in the Linux Image also called Terminal or access must be enabled via a Telnet client from outside by following all necessary steps analog Hence in the following there will be no difference between the console window in the Linux Image and the Telnet access from outside Switch to the appropriate project directory that contains the Makefile by using command cd in the console window To translate the demo project use directory orojects EC Ucore 5208 user demo source cd projects ECUcore 5208 user demo source Afterwards command make must be started Figure 46 shows the usage of commands cd and make for the exemplary demo program contained in the VMware Image W i Terminal Lu ee ee File Edit View Terminal Go Help vmware vm xubuntu cd projects ECUcore 5208 user demo source vmware vm xubuntu projects ECUcore 5208 user demo sources EE Make Settings CFLAGS 00 g Wall mcpu 5208 I I include D DEBUG LDFLAGS mcpu 5208 Wl elf2flt LDLIBS ek Compiling demo c Linking demo Done Copy executeable demo to destination tftpboot demo done Copy IZO driver lib pc5208drv ko to destination tftpboot demo vmware vm xubuntu projects ECUcore 5208 user demo sources Figure 46 Compiling the demo project i
43. are to be run on this module should be programmed as Linux programs The Kit contains a completely equipped Linux development system in the form of a VMware Image and therefore allows trouble free entry into the software development for the ECUcore 5208 The VMware Image can be used unmodified within different host systems Table 1 lists up all relevant manuals for the ECUcore 5208 Table 1 Overview of relevant manuals for the ECUcore 5208 Information about In which manual Basic information about the ECUcore 5208 In this manual configuration administration connection assignment software development reference designs et cetera Hardware description for the ECUcore 5208 Hardware Manual ECUcore 5208 reference designs et cetera Manual no L 1137 Development Board for ECUcore Modules Hardware Manual Development Board ECUcores Minimum version for all ECUcore Modules Manual no L 1179 CAN Driver CAN Driver Software Manual Manual Nr L 1023 Appropriate reference books about the application e Advanced Programming in the UNIX programming under Linux Environment Stevens Rago Addison Wesley e GNU Function List http www silicontao com ProgrammingGuide GNU function list Section 4 of this manual describes the electrical commissioning of the ECUcore 5208 on the basis of the Development Kit ECUcore 5208 Section 5 exemplifies details about the usage of the ECUcore 5208 such as configuration and administ
44. ceived see Figure 43 demo program hellocan uses 125kBit s as Bitrate After being started it initially generates 10 channels to receive CAN messages and 10 channels to send them Reception area CAN messages within the Identifier area 0x100 0x109 Send area CAN messages within the Identifier area 0x200 0x209 SYS TEC electronic GmbH 2008 L 1202e 1 Page 49 System Manual ECUcore 5208 After successfully completing initialization the Demo program hellocan only once sends a CAN message with Identifier 0x400 and data 68 61 6C 6C 6f 63 61 6E ASCII hellocan to the bus Afterwards it passes on to its main loop in which it waits for receiving CAN messages in the specified identifier area 0x100 0x109 When a CAN message is received it is sent back as echo increased by 0x100 identifier equals identifier area 0x200 0x209 Figure 42 shows the execution of demo project hellocan on the ECUcore 5208 The demo project can be closed by pressing Ctrl C c Telnet 192 168 10 248 ECUcore 5484 login PlcAdmin Password zh 2 H5 H mountnfs sh 192 168 10 58 mount mnt nfz done H cd mnt nfs hellocan mnt nfz hellacant ls mnt nfs hellocantt insmod candry ko mnt nfz hellacant hellocan CAN demo application for SYSTEC EGlcore 5484 fc 2669 SYSTEC electronic GmbH 3RE RE BERE EE E E E RE E RE E E E E RE E RE E E E E RE ERE E RE E E E ERE ERE E E RE FE FH RE RE RE RE HH HH Runtime configuration S
45. d as comments and will be ignored Service lines prefixed with a sign are disabled If the FTP service is activated the configuration file home etc inetd conf can also be modified using FTP remote access with appropriate access permissions like root Additionally to Telnet and FTP services a discard service is also provided which is suitable for testing TCP and UDP All packages will be received and acknowledged if necessary but the data is discarded This service can cause a high system load and it is recommended to disable it or use it only temporary for testing network connections 5 5 3 Login to the Telnet Server The Telnet server gets started indirectly by the inetd daemon To enable Telnet it has to be enabled if not already done in the inetd configuration The proceeding is described in section 5 5 2 To login on ECUcore 5208 using PuTTY the IP address configured in section 5 4 has to be entered and the Connection type has to be set to Telnet By pressing the button Open the telnet connection will be established see figure 9 SYS TEC electronic GmbH 2008 L 1202e 1 Page 19 System Manual ECUcore 5208 i amp PuTTY Configuration X Category Es session Basic options for your PuTTY session rer Specify the destination you want to connect to Termina MER Ksubsaid Host Name or IF a
46. d with the simultaneous compliance with various conditions AND relation Consequently for disabling uClinux Autorun it is sufficient to simply not comply with one of the conditions Table 4 lists up all conditions that are verified by the bootloader CoLilo All of them must be complied with to start an Autorun for the uClinux Image Table 4 Conditions for booting uClinux kfl 1 and auto 1 The uClinux Image stored in the Flash must be declared as valid during CoLilo configuration and the Autorun of the image must be activated after Reset for corresponding CoLilo commands see section 5 4 No interruption of Autorun via If all conditions are met CoLilo verifies the serial COMO of the ECUcore 5208 interface COMO of the ECUcore 5208 for about 1 second after Reset regarding the reception of SPACE signals ASCII 20H If such a signal is received within that time CoLilo will disable the uClinux Autorun and will activate its own command prompt instead After activating the Reset pushbutton e g S403 on the Development Board the CoLilo command prompt answers Communication with the bootloader CoLilo only takes place via the serial interface COMO of the ECUcore 5208 As receiver on the computer one of the terminal programs must be started e g HyperTerminal or TeraTerm see section 5 1 and must be configured as follows see Figure 5 SYS TEC electronic GmbH 2008 L 1202e 1 Page 14 System Manual ECUcore 5208 1
47. dating EE 30 5 16 Updating the bootloader ege EES 33 6 VMware Image with Linux Development System KEN 34 Bl e EE 34 6 2 Installing the Linux VMware Image ss 34 6 3 Starting the LINUX VMware Image nennen nennen nnne nnne nnns nnn 34 6 4 User accounts to log in to the Linux development system 36 6 5 Determining the IP address of the Linux development system 37 6 6 Access to the Linux development system from a Windows computer 37 6 6 1 Access via Windows network environment ssssssssennsesrresrnrrnsrrrrnrnrrrsrrrrnsrrennne 37 6 6 2 Access via Telnet client ss 38 6 7 Personal configuration and actualization of the Linux VMware Image 39 6 7 1 Adjustment of keyboard layout and time zone 39 6 7 2 Adjusting the desktop size 41 6 7 3 Setting a static IP address for the Linux VMware mage snn000nnnnnon0nnnnnnnnnnennni 42 6 7 4 System update of the Linux VMware Image nn 43 6 7 5 Changing the computer name in the Windows network environment 44 6 7 6 Shrinking the VMware Image Rs 44 7 Software Development for the ECUcore 5208 ENER EE RREEEERRE EE 45 7 1 Necessary steps after 1 start trennen na 45 7 2 Software structure of the ECUcore 5208 45 System Manual ECUcore 5208 7 3
48. ddress Part P Bel 32 168 10 171 23 Features Connection type Window C Raw Ze Telnet Boom SSH Serial Appearance he M Load save or delete a stored session Translation saved Sessions Z Selection Colours Default Settings Load Connection PT Data Save Prosy z Telnet Delete Hlogin E 55H Serial Close window on exit C Always C Never Ze Only on clean exit About Open Cancel Figure 9 PuTTY Telnet configuration for ECUcore 5208 Logging in to the ECUcore 5208 is possible in the Telnet window if connected via ETHO The following user account is preconfigured for the administration of the module upon delivery of the ECUcore 5208 also compare section 5 6 User PlcAdmin Password Plc123 c 192 168 10 171 PuTTY uclinux login Flcidmin Password Welcome ta For further information check http www uclinux org raat Figure 10 Login to the ECUcore 5208 SYS TEC electronic GmbH 2008 L 1202e 1 Page 20 System Manual ECUcore 5208 For logging in to the ECUcore 5208 alternatively via the Windows standard Telnet client the command telnet must be called by using the IP address provided in section 5 4 e g telnet 192 168 10 171 The login is done the same way as described above using PuTTY E Telnet 192 168 10 171 mClinux login
49. e 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 SYS TEC electronic GmbH 2008 L 1202e 1 Page 73 System Manual ECUcore 5208 lt 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 i
50. e 5208 Modified configurations may be verified again by entering in the CoLilo command prompt Active configurations are permanently saved in the Flash of the ECUcore 5208 by command config save Modifications are adopted upon next Reset of the ECUcore 5208 SYS TEC electronic GmbH 2008 L 1202e 1 Page 17 System Manual ECUcore 5208 M COM1 19200baud Tera Term VT B x File Edit Setup Control Window Resize Help CUcore S208 boot ress SPACE key to abort autoboot procedure Autoboot aborted olilo set ip 192 165 10 171 IP address 192 168 10 171 olilorset netnask 255 255 255 0 atHask 255 255 255 0 olilo gt config save urning 5312 bytes to flash O20000 tron Uxs0002960c tarting sector 1 120k sectorls will be erased starting fron sector 1 address Us20000 rasing sector 1 ok rograning 31 bytes uritten olilo Figure 8 Saving the module configuration of the ECUcore 5208 Advice about the application of DHCP The uClinux of the ECUcore 5208 is able to request a dynamic IP address via DHCP Therefore the local IP address is to be configured as 0 0 0 0 Sen ID E The following issues must be taken into consideration for the usage of DHCP DHCP is only supported by uClinux but not by the bootloader CoLilo For example to update the uClinux Image see section 5 15 it is necessary to assign a temporary static IP address to the module To create a Telnet or FTP con
51. e ECUcore 5208 mount SC Es o qsolock 192 168 10 32 bfopboot Zmnb7nfs The script mountnfs sh that is located in the home directory of the ECUcore 5208 is able to simplify the usage of the mount command The user is automatically located in that home directory after login to the command prompt The IP address of the Linux Image must be given to that script as parameter Hence for the example above this would lead to the following call mountnfs sh 192 168 10 33 After the mount command is executed the entire content of directory tftoboot of the Linux Image including potential sub directories is available in the local directory mnt nfs of the ECUcore 5208 Figure 44 summarizes all necessary steps to mount the Linux Image into the local file system of the ECUcore 5208 SYS TEC electronic GmbH 2008 L 1202e 1 Page 52 System Manual ECUcore 5208 m COM1 19200baud Tera Term YT _ p x File Edit Setup Control Window Resize Help tm m m tm l c Hs E l or further infornation check ttpz uuu uclinus arg server is online inage bin ont nnt nfs ff Figure 44 Mounting the Linux Image into the local file system of the ECUcore 5208 7 6 2 Using FTP As an alternative to the integration of the Linux Image into the local file system of the ECUcore 5208 via NFS data may be transferred into both directions between the development computer and the ECUcore 5208 via FTP The
52. e 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 INNO 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 SPECIAL 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 P
53. e appropriate command on the ECUcore 5208 to start the program Required data transfer from the development system to the ECUcore 5208 implicitly takes place via NFS no further commands from the user are necessary Consequently it is assured that the ECUcore 5208 is always running a current program version rather than one that is out of date Hence NFS is especially suitable during software development Files can also be copied over the Linux machine using NFS On the one hand it is disadvantageous about NFS that it only allows for connections to other Linux machines but not to a Windows computer for example On the other hand NFS only enables rudimental user administration and access control Later on this is most likely not desired if devices are used in practice Section 7 6 1 provides details about the application of NFS FTP The File Transfer Protocol is a standard and platform independent protocol that is well established in practice Both FTP server and clients are available for several operating systems such as Linux and Windows On the contrary to NFS by using FTP it is possible to transfer files from a Windows computer to the ECUcore 5208 e g program update through service technicians by using Windows laptop Moreover FTP allows for detailed access control through authentication via username and password Disadvantageous about FTP is the fact both username and password are transferred unencrypted Also the command entry that is
54. e both variants but there are chances that Windows programs cause displaying problems Especially important is the correct Linux line break on the creation of shell scripts Shell scripts using Windows line breaks will not be executed and simply raise an error Hidden files and directories Hidden file system entries are marked by a period at the beginning of a file or directory name Those entries are not displayed by a simple list e g using the command Is Nevertheless to display hidden entries an additional parameter a all has to be appended to Is This may relevant during FTP access Calling programs search path Similar to DOS Windows if a command is called Linux only searches through paths defined in the environment variable PATH It does not search through the current directory except the current directory is added to PATH which isn t done normally due to security reasons For example to call program demo which is located in the current directory it must explicitly be pointed to the current directory by adding to the call Thus program demo would be called as demo Standard commands such as Is can be called without specifying the path because they are located within a path that is defined by the environment variable PATH Calling programs execution rights To run a program in Linux the corresponding file must be explicitly marked as executable Responsible for this is the so call
55. ect sequence candrv a projects ECUcore 5208 driver candrv lib candrv a User space library of the I O driver to be statically linked to user applications candrv ko projects ECUcore 5208 driver candrv lib candrv ko kernel space module of the CAN driver to access the CAN controller This module must be loaded using Linux command insmod prior to starting the user application insmod candrv ko The CAN Driver Software Manual Manual no L 1023 includes descriptions about the interface and the usage of the CAN driver in own applications Demo project projects ECUcore 5208 user hellocan is an example for the usage of the CAN driver on the ECUcore 5208 see section 7 5 2 The delivery status of the ECUcore 5208 provides a completely generated and ready to load Kernel module of the CAN Driver filed in directory home bin see section 5 13 insmod home bin candrv ko 7 5 2 CAN driver demo project The demo project for the CAN driver is filed in directory projects ECUcore 5208 user hellocan of the Linux development system It illustrates the access to the CAN interfaces of the module Therefore the Demo program needs the CAN Driver that is filed in projects ECUcore 5208 driver candrv To demonstrate information exchange via the CAN Bus an appropriate receiver is needed Therefore the CAN analysis tool CAN REport in combination with an USB CANmodul is well suitable By using CAN REport any CAN messages can be sent and re
56. ectronic GmbH 2008 PEE 70 U DLE NALE RD ne 7 USB RS232 Adapter Cable 12 User accounts Addition and deletion 23 Changing password 23 Predefined WEE 22 predefined development system 36 V VMware Image Determining IP address 37 Determining static IP address 000 0 42 IAsStallalon ceased ceed tore mn tn Games 34 Keyboard layout 39 OVERVIEW ccccccccccsccececcccececcececcucecaucecaececes 34 SMAKI G es ale 44 ET EE 35 System update sm 43 Hime ZONE EU T 41 VMware Player HS tallo iO Ius secrete coca ar Nes 34 W Windows network environment 37 MA UNS OP RTT ns cm nee 21 L 1202e 1 Page 77 System Manual ECUcore 5208 Document System Manual ECUcore 5208 Document number L 1202e 1 1st Edition August 2009 How would you improve this manual Did you detect any mistakes in this manual Page Submitted by Customer number Name Company Address Please return your SYS TEC electronic GmbH suggestions to August Bebel Str 29 D 07973 Greiz GERMANY Fax 49 0 36 61 6279 99 Email info systec electronic com SYS TEC electronic GmbH 2008 L 1202e 1 Page 78
57. ed x Flag in the file attributes eXecuteable which are shown If Is is called e g ls 1 mountntfs sh rwXr Xr X 1 1000 users 2236 Jan 2L 200 mountnfs sh If this Flag is not set the file is not marked as being executable and the respective command cannot be called For example this is generally the case after downloading a file via FTP The x Flag can again be set by using command chmod chmod X mountnfs sh Command chmod generally enables influencing all file attributes setting and deleting Details can be obtained by calling chmod help SYS TEC electronic GmbH 2008 L 1202e 1 Page 68 System Manual ECUcore 5208 e Automatic completion of entries via TAB button The automatic completion of file or command names via TAB button is a really convenient feature in Linux AS many as being unige characters will be inserted If an input cannot be completed an additional TAB button press all possibilities will be displayed Example After enterting and the doubled TAB pressing all commands starting with will be displayed After entering an o afterwards and pressing TAB the input will expand to log because there are no other possibilities see list after 1st input on Figure 59 Adding an additionally g input is now at logg TAB will expand the input line to logger because no other candidates are left Figure 59 shows the complete example A 192 168 10 171 PuTTY roaot
58. electronic GmbH 2008 L 1202e 1 Page 75 System Manual ECUcore 5208 Index ee ee e WEE 27 POW CN 27 28 AND ttem Ne neue eee E 27 IN AM 27 MAVIMEXUDURTU see 37 A ACCES SOI eebe 12 ACCUS SE P RE 23 Administration System requirements 13 fren em EET 15 B DO M RN och area oat TTD 29 C CANNES Ep Pp 49 eroe n 10 ele iem 49 ENMIOG TROU TT 53 68 CoLilo command prompt ACHAIN EE 14 Terminal settings 14 CoLilo commands Ethernet configuration 16 Update uClinux Image 31 COMO m 10 COM OR 10 Configuration ele lun E ale anne 16 Readout and display 25 Configuration mode sss 14 Connection network drive 38 D dale Hr 24 Debugger commands 64 al 23 Demo project CAN GIVET EE 49 Development Board COnME CONS Ari 10 EEN eege 11 Development Kit 9 opm T 27 DHG EET 35 ECUCOre 5200 EE 17 DIMENSION EE ee 7 E Se 57 SYS TEC electronic GmbH 2008 Configuring Debugger 61 Debugger commands 64 DeDUGGIII arsana 59 Open DOC ans rene 58 Translating project 59 EMV AW ne ee a heu 5 Environment variables DIE OIA Re 69 cua sauna 69
59. ens up see Figure 37 II 14 38 ur he V Enable Networking 9 Connection Information IE Edit Connections lt gt About Figure 36 Network Manager for the configuration of the Ethernet interface In Tab sheet Wired in the dialog Network Connections see Figure 37 a new network environment can be created by using pushbutton Add Afterwards dialog Edit Wired Connection opens up see Figure 38 Network Connections T cadit Delete Figure 37 Adding a network connection In dialog Edit Wired Connection see Figure 38 in the choice box Method pre adjustment Automatic DHCP is to be changed to the alternative option Manual Afterwards settings for IP address network mask gateway DNS server etc can be undertaken in Tab sheet IPv4 Settings SYS TEC electronic GmbH 2008 L 1202e 1 Page 42 System Manual ECUcore 5208 Editing Wired connection 1 Connection name Wired connection 1 I Connect automatically System setting 02 1x Security IPv4 Settings Method Manual Addresses Address Netmask Gateway 192 168 10 123 255 255 255 0 192 168 10 1 DNS Servers 192 168 10 5 Dal Routes Figure 38 Configuration of the network connection After the configuration is completed and all dialogs are closed click again on symbol Network Manager in the task menu by using the left mouse button this time see Figure 39 Choose the new network connection wi
60. ent 192 168 10 171 d Directories Preferences User name Password Private kep tile Protoco File protocol FTF lnsecure Select color Advanced options About Languages Save Close Figure 12 Login settings for WinSCP After using pushbutton Login the FTP client logs in to the ECUcore 5208 and lists up the current content of directory home in the right window Figure 13 shows the FTP client WinSCP after successful login to the ECUcore 5208 Fs home PlcAdmin 192 168 10 171 WinSCP E B x Local Mark Files Commands Session Options Remote Help e uB imselmmu wESO inar dE mt Festplatte Di i4 o w iffy ch 2 i home e D ir o xg 5 t i CAE CUcore 5208 home Changed a Size Changed Rights S en Parent directory 22 01 200 c bin 29 01 2009 09 11 rwxr xr x Cete 30 11 1999 FAKE XE 0 test 26 01 2009 13 13 rwxr xr x E profile 1 751 29 01 2009 0623 arr D mountas sh 371 22 01 2009 13 53 mert D 4 a D OB of OB ini ofi OB of 2 722 B inl aF 5 P F2 Rename 4 F4Edit ES F5 Copy 3 F Move Y F7 Create Directory 2X FE Delete 7 F9 Properties E F10 Quit Figure 13 FTP client for Windows WinSCP After successful login configuration files on the ECUcore 5208 may be edited by using pushbuttons F4 or F4 Edit within the FTP client WinSCP select transfer mode Text With the help of pushbutton F5 or F5 Copy files may
61. esseoennees 9 Al COWEN TEE 9 4 2 Electric commissioning of the Development Kit ECUcore 5208 esses 10 4 3 Control elements of the Development Kit ECUcore 5208 11 4 4 Optional accessory USB RS232 Adapter Cable nennen nnnnnnnnnn nn 12 5 Application and Administration of the ECUcore 5208 13 5 1 System requirements and necessary software tools 13 5 2 System start of the ECUcore 5208 esee naar nnn nnne 14 5 2 1 Activation Deactivation of uClinux Autorun 14 922 Mei lr OP USER SOMWANC sar nes adobe Nam ei 15 5 3 Command prompt of the bootloader CoLilo nnn 16 5 4 Ethernet configuration of the ECUcore 5208 Ut enne 16 5 5 Loont tie e el EE 19 5 5 1 LOGIN io he command Shell ses ss ie E nd 19 5 52 Thelnternet Service DaemM n asien an aa goe 19 5 5 9 lLogin to the Telret Server uo engen 19 994 Logit Ine FTP SENE a TR 21 56 Predelined Ee a 22 5 7 Adding and deleting user accounts nennen nnne nnn nnn nnns 23 5 8 How to change the password for user accounts VV 23 9 9 I ein cie t x 24 5 10 Readout and displaying CoLilo configuration data 25 5 11 Showing the installed uClinux Version ss 26 5 12 Filesystem Of ie EGUCOrRS 5208 a etin cue urbe ne Elena 27 5 13 Preinstalled files in the directory home ss 28 9 14 USING the RR NEE 29 9 15 Up
62. evelopment Kit forms the ideal platform for developing user specific applications based on the ECUcore 5208 The Development Kit ECUcore 5208 contains the following components ECUcore 5208 Development Board for the ECUcore 5208 24V Power adapter Ethernet cable RS232 cable DVD with Linux development system examples documentation and other tools SYS TEC electronic GmbH 2008 L 1202e 1 Page 9 System Manual ECUcore 5208 The Linux development system included in the Kit serves as software development platform and as debug environment for the ECUcore 5208 In the form of a VMware Image the development system can be used unmodified for different host systems Section 6 exemplifies the usage of the VMware Image under Windows 4 2 Electric commissioning of the Development Kit ECUcore 5208 The power adapter necessary for running the Development Kit ECUcore 5208 and Ethernet and RS232 cables are already included in the Kit delivery For commissioning the Kit it is essential to use at least the power supply connections X600 X601 COMO X304 on top and ETHO X302 Table 2 provides an overview over the connections of the Development Kit ECUcore 5208 Table 2 Connections of the Development Kit ECUcore 5208 Connection Labeling on the Development Board Power supply X600 or X601 The 24V DC power adapter included in the delivery is intended for direct connection to X600 ETHO Ethernet X302 This interface serves as communication in
63. g the updated uClinux Image SYS TEC electronic GmbH 2008 L 1202e 1 Page 32 System Manual ECUcore 5208 Advice After the configuration is finished the serial connection between the computer and the ECUcore 5208 is no longer necessary 5 16 Updating the bootloader CoLilo Updating the CoLilo bootloader is basically possible but it involves the risk that the ECUcore 5208 will not boot anymore if an update failed or carried defective software For this reason all flash sectors in which the CoLilo is integrated are protected from accidental deletion That s why the bootloader CoLilo should only be updated if absolutely essential If required please contact our support service support systec electronic com SYS TEC electronic GmbH 2008 L 1202e 1 Page 33 System Manual ECUcore 5208 6 VMware Image with Linux Development System 6 1 Overview The ECUcore 5208 is delivered with a preinstalled uClinux Hence all applications that shall run on the module must be developed as Linux programs The Kit is equipped with a complete Linux development system in the form of a VMware Image It allows for an easy introduction into software development for the ECUcore 5208 The VMware Image may be used unmodified in different host systems Table 1 in section 2 lists well suited reference works about Linux programming The VMware Image of the Linux development system includes the following software components GNU Crosscompiler T
64. gram 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 licensee 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 along 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
65. icking entry Clean Project see Figure 50 all generated files are deleted Targets can be edited if entries Demo Project or Clean Project are clicked on with the right mouse button e g modifying the corresponding name 7 7 2 3 Debugging the demo project in the IDE One of the most considerable advantages for using Eclipse is the possibility to debug the compiled program directly on high level language within the IDE This includes for example single step execution of programs on C level setting breakpoints directly in the source code and observing variables within the IDE While on the computer Eclipse IDE runs with the Linux development environment the program to be debugged is directly executed on the ECUcore 5208 controlled by a debug server gdbserver This procedure is called remote debugging Therefore access to the Linux development environment Host computer and to the ECUcore 5208 Target is required SYS TEC electronic GmbH 2008 L 1202e 1 Page 59 System Manual ECUcore 5208 In the following all steps necessary to debug a user application are exemplarily described for the demo project included in the VMware Image of the Linux development system 1 Starting the Debug server with the user program on the ECUcore 5208 To debug simply start the demo program on the ECUcore 5208 directly from NFS directory of the Linux development system Therefore login to the command shell of the module is required see section 5 5 1
66. ime zone 6 7 2 Adjusting the desktop size The Linux VMware Image is able to automatically adjust the desktop size to the window size of the VMware Player The VMware Player runs like a normal Windows application Hence to change the desktop size for the Linux VMware Image use the mouse to adjust the window frame of the VMware Player to the desired size The maximum usable window size is defined in the configuration file SO 1096 Xubuntu ECUcore5208 vmx of the VMware Player and may be modified if required SYS TEC electronic GmbH 2008 L 1202e 1 Page 41 System Manual ECUcore 5208 FARM display Farr tt tt ti PRE EP PR Svga maxWidth 1024 Svga maxHeight 7 68 6 7 3 Setting a static IP address for the Linux VMware Image By default the dynamic configuration of the IP address via DHCP is activated in the Linux VMware Image Hence in most network environments the Linux VMware Image can be used ad hoc without setting parameters manually beforehand In networks that do not provide a DHCP server the static IP address for the Linux VMware Image must be defined by the user Otherwise an Ethernet based communication with the ECUcore 5208 is not possible To define a static IP address for the Linux VMware Image the symbol of the Network Manager in the task menu see Figure 36 must be clicked on with the right mouse button and entry Edit Connections must be called from the Popup menu Afterwards dialog Network Connections op
67. indows network environment Figure 40 illustrates the directory structure projects File Manager File Edit View Go Help v B projects i E projects ECUcore 5208 a ECUcore 5208 pa m amp gt E pc5208drv of p toolchain uclnux 4 3 ECUcore 5208 tftpboot ecucore setup b uClinux dist v B user demo tftpboot 3 items 8 1 kB Free space 7 3 GB Figure 40 Structure of directory projects in the Linux development system projects ECUcore 5208 colilo Source code of the bootloader CoLilo driver Driver Libraries for the ECUcore 5208 pc5208drv I O Driver for the integration into own user projects including source code and testing application candrv CAN Driver for the integration into own user projects toolchain uclinux 4 2 uClinux Toolchain for Coldfire 5208 uClinux Kernel and user programs linux 2 6 x Source code of the uClinux kernel for the ECUcore 5208 user Source code of the user program for the ECUcore 5208 se uClinux dist Project path for creating uClinux Images for ECUcore 5208 other components of the uClinux distribution SYS TEC electronic GmbH 2008 L 1202e 1 Page 45 System Manual ECUcore 5208 user Path to file user projects a demo Reference and UO Demo project for the ECUcore 5208 E hellocan Reference and CAN Demo project for the ECUcore 5208 a tftpboot NFS directory for the integrati
68. instead of the symbolic name the IP address of the Linux development system may be directly entered e g net use x 192 168 10 33 users user vmware persistent NO 6 6 2 Access via Telnet client Access to a console of the Linux development system is also possible via a Telnet client in Windows because the VMware Image has a Telnet server installed This allows for calling command line tools such as make to translate user projects via Windows user interface The access with Telnet client directly takes place via the IP address of the Linux development system Section 6 5 describes how the IP address of the Linux development system can be determined To login to the Linux development system via the Telnet client included in Windows by default call command te net and enter the IP address The procedure is analog to the login to the command shell of the ECUcore 5208 compare Figure 11 in section 5 5 1 e g reiner 292 163 10 23 Login as user vmware with the corresponding password vmware is possible in the Telnet window also see Table 9 in section 6 4 SYS TEC electronic GmbH 2008 L 1202e 1 Page 38 System Manual ECUcore 5208 SZ 192 168 10 33 PuTTY Ubuntu 5 10 vii xubuntu login vmware Password Last login Thu Jan 15 09 34 16 UTC 2009 from Ws sieberl systec electronic de on pts 0 Linux vm xubuntu 2 6 27 9 qgeneric 1 SMP Thu Now 20 21 57 00 UTC 2005 i666 The programs included with the Ubuntu system are the ex
69. ises a flash disk that provides part of the on board flash memory of the ECUcore 5208 as file system This path is used to store all files modifiable and updatable by the user e g configuration files user programs that have been loaded onto the module In general the RAM disk directories tmp should be used for tests during the development phase if some parts of the Linux development system are not integrated via NFS anyway see section 7 6 1 Table 7 File system configuration of the ECUcore 5208 path Sze Description Amp Determined by var RAM disk suitable as intermediate buffer for FTP downloads but no data preservation in case of power breakdown var 2048 kByte RAM disk which is used by the system to store temporary files no data preservation in case of power breakdown home 2048 kByte Flash disk to permanently store files modifiable and updatable by the user e g user software and configuration files data preservation in case of power breakdown mnt Target for integrating remote directories of other systems via NFS compare section 7 6 1 Advice Size of the file system directories var may be modified through uClinux configuration Therefore a new value for RAMFS Image has to be chosen below Miscellaneous Configuration gt The size of tmp doesn t have to be set explicitly because it is part of the var tree It requires a regeneration of the uClinux Image for the ECUcore 5208 Sizes of file
70. jects Printers and Faxes Figure 28 Linux development system in Windows network environment After double clicking the symbol users See Figure 28 login is possible as user vmware with the corresponding password vmware see Figure 29 In conclusion path wm xubuntu users is accessible SYS TEC electronic GmbH 2008 L 1202e 1 Page 37 System Manual ECUcore 5208 A x Connect to ym xubuntu Connecting bo voo xubuntu User name t vmware Password senses Remember my password ce Figure 29 Login to vm xubuntu Alternatively the VMware Image of the Linux development system may be linked directly to a drive letter via Windows command net use This could be necessary for example if problems occur due to long timeouts during searching the Windows network environment or in general during locating the virtual computer This may take place either through symbolic names or directly via the IP address of the Linux development system In the latter case the IP address of the Linux development system must first be determined as described in section 6 5 Command net use is as follows net use local device lt computername sharename gt user username options To tie the VMware Image with the Linux development system to the local drive letter X for example command net use is to be used as follows net use x vm xubuntu users user vmware persistent NO Alternatively
71. k greenend org uk sgtatham putty download html and HyperTerminal which is included in the Windows delivery or Telnet Client allows the communication with command shell of the ECUcore 5208 via Ethernet connection to ETHO of the ECUcore 5208 Using Telnet clients requires a completed Ethernet configuration of the ECUcore 5208 according to section 5 4 As alternative solution to Telnet client all commands can be edited via a Terminal program to COMO of the ECUcore 5208 Suitable as Telnet client would be PuTTY which supports SSH beside Telnet or TeraTerm which can also be used as Terminal program see above Telnet which is included in the Windows delivery An FTP client allows for file exchange between the ECUcore 5208 ETHO and the computer This allows for example editing configurations files by transferring those from the ECUcore 5208 onto the computer where they can be edited and transferred back onto to the ECUcore 5208 Downloading files onto the ECUcore 5208 is also necessary to update software components Suitable as FTP client would be WinSCP which is available as Open Source download from http winscp net It only consists of one EXE file that needs no installation and can be executed immediately Furthermore freeware Core FTP LE downloadable from http www coreftp com or Total Commander integrated in the file manager are suitable as FTP client The TFTP server is necessary to update the uClinux Image
72. l linuxre In logger logir logread ls armod log login lodgread gt logger Figure 59 Tab completion in the shell e Displaying environment variables Displaying environment variables is possible by the command echo In shells environment variables are addressed by a prepended dollar sign To display the current search path the command echo PATH is suitable e Setting environment variables When setting an environment variable consider that it is only visible within the current shell instance If for example an environment variable is defined in a shell script it will no longer be re defined after the shell script is executed The reason is for executing a script a new shell instance is started that processes the script The respective environment variable is accessible within this shell instance After finishing the script the shell instance that was started to execute the script is closed Consequently also the environment variable definition or redefinition for this shell instance gets discarded One possibility to set environment variables e g TZ permanently is to define it in script home etc profile This script is executed once when starting a login shell This implies that all variables defined in that shell instance remain valid during the entire runtime To relay environment variables to sub processes it has to be exported To relay the TZ variable to sub processes the command export TZ
73. led via its name Hence computer names must be adjusted clearly if the Linux VMware Image runs in parallel on several computers This prevents multiple use of the same name which could bring about collisions and access errors The computer name is defined via file etc hostname Enter command sudo gedit etc hostname to modify this name The modified name will be taken over after restart Command hostname brings about prompt change of the name Therefore the new computer name must be entered as parameter e g sudo hostname vm xubuntu 2 Changing the name with this command only lasts temporarily until the next restart in contrast to modifying file etc hostname 6 7 6 Shrinking the VMware Image Call the VMware Toolbox by entering command sudo vmware toolbox to shrink the VMware Image to the necessary minimal size Using the tab sheet Shrink the VMware image get be shrunk to minimal size SYS TEC electronic GmbH 2008 L 1202e 1 Page 44 System Manual ECUcore 5208 7 Software Development for the ECUcore 5208 7 1 Necessary steps after 1 start After the first start of the VMware Image the command make has to be called once inside the projects EC Ucore 5208 uClinux dist directory 7 2 Software structure of the ECUcore 5208 All components necessary to develop software for the ECUcore 5208 are filed in path projects in the VMware Image of the Linux development system or mm xubuntulusers projects in the W
74. mperature sensor test t un process image test Start basic I O main loop press ESC to abort bI 0x00 0x00 0x200 LO 0x00 0x00 0x01 bHexSwitch x bDbipSwitch x R S M Switch DI 0x00 0x00 0x00 DO O0x00 Ox00 Ox0z hHexSwitch 0x00 bDipSwitch 0x00 F M Switch Ib I 0x00 0x00 0x00 DO O0x00 0x00 0x04 hHexSwitch 0x00 bPipSwitch x R 23 H Switch Figure 58 Testing the hardware connections using iodrvdemo SYS TEC electronic GmbH 2008 L 1202e 1 Page 67 System Manual ECUcore 5208 9 Tips amp Tricks for Handling Linux resp uClinux This chapter provides a brief summary of specific features that should be paid attention to when using Linux and therewith uClinux It is only possible to address most important issues If necessary more detailed information can be gathered from appropriate Linux reference books Case sensitive Contrary to DOS Windows Linux as other Unix derivatives are case sensitive on names for directories files programs Therefore it has to be make sure that commands have the proper case Especially after using external access from windows it has to be ensured in the Linux Image that the correct case has been used Line break Windows is using different control characters for a line break than other Unix derivatives therefore also Linux Under Windows a CR LF carriage return amp line feed r n sequence is used while Linux uses just LF line feed n Most Linux programs can handl
75. n of the IP address The port number following the colon may be chosen freely here 10000 but it must correspond with the port number of the Target connection within Eclipse as described in the following section 2 3 also compare Figure 54 Figure 51 illustrates the steps to be accomplished on the ECUcore 5208 SYS TEC electronic GmbH 2008 L 1202e 1 Page 60 System Manual ECUcore 5208 192 168 10 171 PuTTY uclinux login root Password Welcome to For further information check http www uclinux arg root mount t nfs o nolock 192 168 10 33 tftpbaoot mnt nfs root cd mnt nfs demo croot nnt nts demos 1 nfas demo insmod pces5z a8drv ko nfs demo gdbserver 192 165 10 33 10000 dermo Process demo created pid 761 Listening on port 10000 Figure 51 Starting the debug server on the ECUcore 5208 To simplify this process the delivery status of the ECUcore 5208 includes a shell script called debug sh in the directory home This script summarizes all in this point 1 mentioned commands Hence the shell script must be started in the Terminal program or Telnet client so that entering commands manually is no longer necessary cd debug sh Command cd without any parameter switches to the home directory home where the shell script debug sh is located 2 Configuring the Debugger in the IDE only necessary once upon first call The configuration of the Debugger in the I
76. n the Linux Image During executing the Makefile and after completing the build process successfully the demo program itself file demo and the I O driver needed for the execution files 5208 spidev ko and SYS TEC electronic GmbH 2008 L 1202e 1 Page 55 System Manual ECUcore 5208 pc5208arv ko are copied to directory tftoboot demo compare screenshot in Figure 46 All required steps are completed after the translation and copying is finished All further steps exclusively take place on the ECUcore 5208 Therefore login to the command shell of the module is necessary see section 5 5 1 Afterwards the following steps must be executed in the Terminal program or Telnet client 1 Integration of directory orojects tftoboot via NFS from the Linux development system to the local file system of the ECUcore 5208 see section 7 6 1 mount be MES onolock 192 108 10 5234fftpbooE mat nEs Switching to NFS directory in the local file system by using command cd cd mnt nfs demo Directory mnt nfs on the ECUcore 5208 is identical with directory tftoboot of the Linux development system in the VMware Image Accordingly all files copied by the Makefile to directory tftoboot demo in the Linux development system are accessible by the ECUcore 5208 in directory mnt nts demo of its file system It is not necessary to explicitly download executable binary files to the ECUcore 5208 Starting the demo program
77. nd SBC Programmable in C C and in IEC 61131 3 Figure 21 Display of HTML pages for the ECUcore 5208 in the WEB Browser Advice By inserting the start call of the HTTP server e g start stop daemon S b x boa c home http into the start script home etc autostart starting the HTTP server upon boot of the ECUcore 5208 may be automated see section 5 2 2 5 15 Updating the uClinux Image Updating the uClinux Image takes place via TFTP Trivial FTP within the Linux bootloader CoLilo Therefore the development computer requires an appropriate TFTP server By default such a preconfigured TFTP server is already included in the VMware Image of the Linux development system To alternatively be able to run an update of the uClinux Image from a Windows computer the Freeware TFTPDS2 could be used for example see section 5 1 The Windows program only consists of one single EXE file that needs no installation and may be started immediately After the program start an appropriate work directory Current Directory should be set up by clicking the pushbutton Browse e g C ECUcore 5208 This directory must contain the uClinux Image for the ECUcore 5208 image bin SYS TEC electronic GmbH 2008 L 1202e 1 Page 30 System Manual ECUcore 5208 Tftpd3 by Ph Jounin E x Current Directory CAE CUcore 5208 Browse Server interfaces 192 168 10 30 Show Dir Titp Server Tftp Client DHCP serve
78. nd time are taken over from the RTC and set as current system time of the module 5 10 Readout and displaying CoLilo configuration data Command gbracfg under uClinux enables the access to configuration data of the bootloader CoLilo For example it is used in the start script etc rc d rcS to re use the Ethernet configuration set for the ECUcore 5208 within the CoLilo see section 5 4 to parameterize interface ethO under uClinux The same is essential for taking over the server address defined in the CoLilo into the Shell scripts home mountnfs sh and home debug sh SYS TEC electronic GmbH 2008 L 1202e 1 Page 25 System Manual ECUcore 5208 i 192 168 10 171 PuTTY root gqhrdctg CoLilo configuration Signature CoLiLo Version 1 00 SerPort ttya serBbaud 19200 Interface FEC etho Mac Lddr OO CF 52 06 CF 08 Ipiddr 192 160 10 171 0 0 0 0 Broadcast NetMask Server ImageMame DownAddr Flashiddr source Addr Dest iddr ZIer ddr 00040000 00040000 Imagesize bytes KernellnFla hi H Boot utostart CommandLine roots dew Earm Board information Signature BrdIdnt Version 1 00 BoardID L OrderNum 4001000 Serum D Info block Info block Info block Info block Info block Info block Info block Info block FingerPrint Li D n Mz tn em an rauart Figure 17 Displaying CoLilo
79. nection to the ECUcore 5208 the IP address must be known The present address that is dynamically assigned by DHCP can be determined using Terminal programs e g HyperTerminal or TeraTerm see section 5 1 via the serial interface COMO of the ECUcore 5208 Therefore logging in to the command shell of the ECUcore 5208 must be accomplished as described in section 5 5 1 Afterwards the current IP address may be queried using command ifconfig The used DHCP client has the restriction that it cannot run in background during system startup So it requests just once a dynamic IP address over DHCP which does not get renewed when the lease time is expired It has to be assured otherwise that this IP address doesn t get used for another DHCP client After completing the configuration all preconditions for a uClinux Autorun must be re established according to section 5 2 1 After Reset e g pushbutton S403 on the Development Board the module starts with current settings Advice After the configuration is finished the serial connection between the computer and the ECUcore 5208 is no longer necessary SYS TEC electronic GmbH 2008 L 1202e 1 Page 18 System Manual ECUcore 5208 5 5 Login to the ECUcore 5208 5 5 1 Login to the command shell The administration and the software development require the entry of Linux commands in the command shell of the ECUcore 5208 Therefore the user must be directly logged in at the module There are two
80. ng the system time Setting the system time requires login to the ECUcore 5208 as described in section 5 5 1 There are two steps for setting the system time of the ECUcore 5208 At first the current date and time must be set using Linux command date Afterwards by using Linux command hwclock w the system time is taken over into RTC module of the ECUcore 5208 Linux command date is structured as follows date options MMDDhhmm CC YY ss Example date DS 22 10 20 2009275 Spaces in the parameter list are only inserted to present the example above clearly All soaces do not apply when the command is actually used To set the system time of the ECUcore 5208 to 2008 09 22 and 10 20 55 as shown in the example above the following commands are necessary date O92710202008 55 hwclock w The current system time is displayed by entering Linux command date without parameter Linux command hwclock r can be used to recall current values from the RTC Figure 16 exemplifies setting and displaying the system time SYS TEC electronic GmbH 2008 L 1202e 1 Page 24 System Manual ECUcore 5208 SG 192 166 10 1 71 PuTTY rooti gt Mon Sep zz 10 20 55 root gt hwclock w rooti gt root date Mon Sep zz 10 41 11 rooti gt hwclock E Mon Sep 22 10 21 16 seconds root gt Figure 16 Setting and displaying the system time Upon start ofthe ECUcore 5208 date a
81. nnnnnnn 71 INGEX ae PU 76 SYS TEC electronic GmbH 2008 L 1202e 1 Page 4 System Manual ECUcore 5208 1 Introduction Thank you that you have decided for the SYS TEC ECUcore 5208 This product provides to you an innovative and high capacity single board computer with uClinux operating system Due to its numerous interfaces on a small manufactured size and due to its low activity input it is well suitable as communication and control processor for embedded applications Please take some time to read through this manual carefully It contains important information about the commissioning configuration and programming of the ECUcore 5208 It will assist you in getting familiar with the functional range and usage of the ECUcore 5208 This document is complemented by other manuals e g for the hardware of the module Table 1 in section 2 provides a listing of relevant manuals for the ECUcore 5208 Please also refer to those complementary documents For more information optional products updates et cetera we recommend you to visit our website http www systec electronic com The content of this website is updated periodically and provides to you downloads of the latest software releases and manual versions Explanatory notes about EMC law for the ECUcore 5208 The ECUcore 5208 has been designed to be used as vendor part for the integration into devices further industrial processing or as Development Board for laboratory development hard
82. ns 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 noncommercial 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 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 co
83. nslated in section 7 3 and copied into directory tftoboot demo the following command is required to transfer the program via FTP from that directory to the local directory tmp of the ECUcore 5208 ftpget u vmware p vmware 192 168 10 33 tmp demo tftpboot demo demo FTP Upload Uploading files of the ECUcore 5208 into the Linux Image happens via command ftpput Parameters u for username and p for password are needed to authenticate at the host system Command ftoput is called as follows ftpput u username p password ip vmware image remote dir local file The following command is required for example to transfer the log file var log messages via FTP from the ECUcore 5208 into directory tftoboot of the host system ftpput u vmware p vmware 192 168 10 33 tftpboot messages var log messages Figure 45 exemplifies the usage of commands ftpget and ftoput to download and upload files via FTP M COM1 19200baud Tera Term VT E x File Edit Setup Control Window Resize Help Clinus login root u or further information check ttps fauu uclinus org D le trp ftpget u wnuare p wnuare 192 168 10 33 stip dena tftpbaat deno deng 2 le tnp 2 Vi u vHuare p wnuare 192 168 10 33 tftpboot nessages war log hassages m Figure 45 Download and upload via FTP 7 6 2 2 ECUcore 5208 as FTP server The ECUcore 5208 provides a FTP server using the Interne
84. ogram can be executed insmod 5208 spidev ko insmod pe 52098drv ko demo Figure 47 in section 7 7 1 exemplifies the execution of the Demo project on the ECUcore 5208 The Demo project can be closed either by setting the Run Stop Switch to position MRes or by pressing Ctrl C SYS TEC electronic GmbH 2008 L 1202e 1 Page 48 System Manual ECUcore 5208 7 5 CAN Driver for the ECUcore 5208 7 5 1 Integration of CAN Driver into own user projects For the integration into own user projects directory projects ECUcore 5208 driver candrv of the Linux development system contains header files and completely generated libraries of the CAN driver for the ECUcore 5208 The structure of the CAN driver is identical to the I O Driver structure as specified in section 7 4 1 Hence the CAN driver also is divided into a kernel space module canarv ko that is in charge for accesses to the CAN controller and a user space library candrv a Both components kernel space module and user space library are necessary to access the CAN bus From the CAN Driver project directory the following files are relevant for the integration into own user projects carvinc h projects ECUcore 5208 driver candrv include cdrvinc h header file to describe driver interfaces This header file has to be integrated into the source code c of the user project using Zinclude It then includes all further header files in directory include according to the corr
85. ome etc autostart If required all necessary environment variables can be set and needed drivers can be loaded as well SYS TEC electronic GmbH 2008 L 1202e 1 Page 15 System Manual ECUcore 5208 The start script home etc autostart must be adjusted according to desired functionality The script can be edited directly on the ECUcore 5208 in the FTP client WinSCP see section 5 1 using pushbuttons F4 or F4 Edit It has to be regarded that the start of background processes using amp at the end of the command but those child process also get terminated when home etc autostart exits To run a prgram in background which don t detach themself from the parent process it is possible to use the program start stop daemon instead 5 3 Command prompt of the bootloader CoLilo After hardware reset of the ECUcore 5208 the bootloader CoLilo is the first software component to start immediately During standard operation mode the bootloader automatically loads the uClinux operating system that brings about the executions of other user applications Basic configuration settings for the ECUcore 5208 are determined within the bootloader CoLilo The command prompt of the bootloader CoLilo is primarily needed for the following tasks e Ethernet configuration of the ECUcore 5208 see section 5 4 and e Update of the uClinux Image see section 5 15 Section 5 2 1 describes the procedure to activate the CoLilo command prompt Entering
86. on by the ECUcore 5208 ecucore setup Shell script to set environment variables Path projects ECUcore 5208 uClinux dist contains all uClinux sources for the ECUcore 5208 Directory projects ECUcore 5208 driver pc5208drv contains the source code of the I O Driver of the ECUcore 5208 also testing application as well as Header files and complete libraries of the UO Driver for the integration into own user projects see section 7 4 1 Directory projects ECUcore 5208 driver candrv contains Header files and complete libraries of the CAN Driver for the integration into own user projects see section 7 5 1 Directory projects ECUcore 5208 user demo provides a Demo program that describes access to in and outputs of the ECUcore 5208 on the one hand section 7 4 1 includes details and serves as template for own projects on the other In the following all further descriptions about the software development refer to this Demo project specifically in section 7 7 Directory projects ECUcore 5208 user hellocan includes a Demo program that describes access to the CAN interface of the ECUcore 5208 on the one hand and serves as template for own projects on the other Path projects tftpboot is the root directory for the integration of the Linux development system into the local file system of the ECUcore 5208 via NFS see section 7 6 1 The shell script projects ecucore setup sets the required environment parameters that are necessar
87. oolchain for Freescale MCF52xx Processors Linux Sourcecode for the ECUcore 5208 LinuxBSP Eclipse graphic IDE to simplify the software development Samba server enables the access from outside via Windows network environment FTP server enables the usage of Linux Console from outside in the form of a Telnet client under Windows as well as data exchange between the ECUcore 5208 and the development computer e TFTP server enables downloading the uClinux Image for the ECUcore 5208 from the development computer e NFS server enables the integration of the development computer into the local file system of the ECUcore 5208 6 2 Installing the Linux VMware Image The Development Kit ECUcore 5208 contains the DVD SO 1096 which includes the VMware Image for the Linux development system of the ECUcore 5208 as well as the VMware Player for Windows The VMware Player is free of charge software for a desktop virtualization so that the VMware Image of the Linux development system may be executed on a Windows or Linux computer If required active versions of the VMware Player or Players for other host systems can be downloaded directly from the manufacturer s website hitp www vmware com Execute the appropriate setup program to install the VMware Player Advice During installation of the VMware Player standard setup Bridged Mode should be retained for the Ethernet interface Otherwise the communication to the ECUcore 5208 could
88. ould be selected In doing so the MAC address of the virtual network card that was used so far remains valid in the host system If copied it is set the VMware generates a new MAC address for the host system This may involve that a new IP address is assigned to the development system The Linux Image is configured in a way so that it dynamically requests an IP address via DHCP client Xubuntu DevSystem ECUcore 5208 Xubuntu DevSystem EC gt This virtual machine may have been moved or copied U In order to configure certain management and networking features VMware Workstation needs to know which Did you move this virtual machine or did you copy it If you don t know answer copied it C moved it copied it Figure 25 VMware selection dialog to generate or remain the MAC address Figure 26 shows the desktop of a Linux development system after starting the Linux Image in the VMware Player SYS TEC electronic GmbH 2008 L 1202e 1 Page 35 System Manual ECUcore 5208 CD ROM IDE 0 0 YF GB Ethernet Le 2 Applications Places HS 2 Pe QUE 13 50 uT Be To direct input to this virtual machine press Ctrl G Figure 26 Desktop of the Linux development system 6 4 User accounts to log in to the Linux development system Table 9 lists up all predefined user accounts for logging in to the Linux development system Table 9 Predefined user accounts of the Linux development system
89. project directory of the I O Driver are relevant for the integration into own user projects pc5208arv h projects ECUcore 5208 ariver pc5208arv include pc5208arv h header file to describe the driver interface This header file has to be integrated into the Source code c of the user project using Zinclude SYS TEC electronic GmbH 2008 L 1202e 1 Page 47 System Manual ECUcore 5208 pc5208arv a projects ECUcore 5208 ariver pc5208arv lib pc5208arv a User space library of the I O Driver to be statically linked to the user application similar to static standard libraries of the C development environment If statically linked the User space library is intrinsically linked to the user application and cannot be separated pc5208arv ko projects ECUcore 5208 ariver pc5208arv lib pc5208arv ko 5208 spidev ko projects ECUcore 5208 driver pc5208drv lib 5208 spidev ko Kernelspace modules of the I O Driver for accesses to hardware PLD and Port pins This modules must be loaded using Linux command insmod prior to starting the user application insmod 5208 spidev ko insmod pc5208drv ko In the exemplary demo program in section 7 7 the user space library of the I O Driver is strongly attached to the user application Therefore upon calling GCC the static library pc5208drv a must be added to the list of objects to be linked Variable L BS is set in the Makefile of the demo project and is transferred to the linker via GCC call
90. py 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 are not responsible for enforcing compliance by third parties to this License 7 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 Licens
91. r Syslog server Log viewer start time Figure 22 TFTP server for Windows TFTPD32 One requirement for the TFTP download of the uClinux Image is a completed Ethernet configuration of the ECUcore 5208 according to section 5 4 In addition to the Ethernet connection a serial connection to the ECUcore 5208 is necessary to update the uClinux Image Therefore all setups for the terminal program as described in section 5 2 1 are valid 19200 Baud 8 Databit 1 Stopbit no parity no flow control An update of the uClinux Image on the ECUcore 5208 is only possible if uClinux is not yet running Hence prior to updating the uClinux Image the uClinux Autorun must be prevented and it must be switched to the CoLilo command prompt instead All necessary steps are covered in section 5 2 1 After Reset e g pushbutton S403 on the Development Board the CoLilo command prompt answers To update the uClinux Image all commands explained in the following table must be entered in the same sequence as provided below SYS TEC electronic GmbH 2008 L 1202e 1 Page 31 System Manual ECUcore 5208 Table 8 Command sequence to update the uClinux Image on the ECUcore 5208 command wenn OOO O set server lt host_ip_addr gt Setting the IP address of the TFTP server If the TFTP server is used in the VMware Image of the Linux development system the necessary IP address must be determined using Linux command ifconfig see section 6 5 if
92. r Cable SYS TEC electronic GmbH 2008 L 1202e 1 Page 12 System Manual ECUcore 5208 5 Application and Administration of the ECUcore 5208 5 1 System requirements and necessary software tools The administration of the ECUcore 5208 requires any Windows or Linux computer that has available an Ethernet interface and a serial interface RS232 As alternative solution to the on board serial interface SYS TEC offers a USB RS232 Adapter Cable order number 3234000 see section 4 4 that provides an appropriate RS232 interface via USB port All examples referred to in this manual are based on an administration of the ECUcore 5208 using a Windows computer Procedures using a Linux computer would be analogous To administrate the ECUcore 5208 the following software tools are necessary Terminal program Telnet client FTP client TFTP server A Terminal program allows the communication with the command shell of the ECUcore 5208 via a serial RS232 connection to COMO of the ECUcore 5208 This is required for the Ethernet configuration of the ECUcore 5208 as described in section 5 4 After completing the Ethernet configuration all further commands can either be entered in the Terminal program or alternatively in a Telnet client see below Suitable as Terminal program would be TeraTerm which is available as Open Source and meets higher demands downloadable from http ttssh2 sourceforge jp PuTTY downloadable from http www chiar
93. ration of the module login to the system Ethernet configuration the start process and the file system Section 6 describes the VMware Image with the Linux development system Section 7 outlines the software development for the ECUcore 5208 and explains the integration of the I O Driver into own applications as well as the procedure for translating user specific programs and their transfer onto the module and debugging Section 9 provides tips amp tricks to simplify the usage of Linux This section is especially helpful for newcomers of using Linux SYS TEC electronic GmbH 2008 L 1202e 1 Page 6 System Manual ECUcore 5208 3 Product Description The ECUcore 5208 is another innovative product that extends the SYS TEC electronic GmbH product range within the field of control applications In the form of an insert ready core module Core it provides to the user a complete single board computer that is programmable under uClinux and has available several extension interfaces Due to CAN and Ethernet interfaces the ECUcore 5208 is best suitable to perform decentralized control tasks Figure 1 Top view of the ECUcore 5208 These are some significant features of the ECUcore 5208 High capacity CPU Kernel Freescale 32 Bit MCF5208 ColdFire 166 MHz CPU Tact 159 MIPS 32 MByte SDRAM Memory 4 MByte NOR FLASH Memory 64 MByte NAND Flash Memory 1x 10 100 Mbps Ethernet LAN Interface with on board PHY 1x CAN 2 0B Interface
94. re the ECUcore 5208 can function as both server and client When executable programs are transferred via FTP connection it must be kept in mind that the x Flag in file attributes eXecuteable is always deleted Hence after each FTP transfer the X Flag must be set again by using command chmod also compare chapter Calling programs in section 9 Tips amp Tricks for Handling Linux chmod TX mountnfs sh 7 6 2 1 ECUcore 5208 as FTP client If the ECUcore 5208 is used as FTP client the Linux development system acts as server This option implies the advantage that there will be no safety risk if the device is applied in practice later on The reason for this is that the FTP service on the module does not have to be activated and explicit user administration is not necessary For using the ECUcore 5208 as FTP client the IP address of the Linux development system assigned via DHCP must first be determined The procedure is given explanation in section 6 5 FIP Download Downloading files from the Linux Image onto the ECUcore 5208 takes place via command ftpget Parameters u for username and p for password are necessary for an authentication at the host system Command ftpget is called as follows ftpget u username p password ip vmware image local file remote file SYS TEC electronic GmbH 2008 L 1202e 1 Page 53 System Manual ECUcore 5208 When looking at program demo for example that was tra
95. required for each data transmission may be considered bothersome or may be even forgotten especially during development phase It then may occur that an old program version is run on the ECUcore 5208 without noticing it Section 7 6 2 describes the usage of FTP SYS TEC electronic GmbH 2008 L 1202e 1 Page 51 System Manual ECUcore 5208 7 6 1 Using NFS The easiest way of starting a user program on the ECUcore 5208 that was first translated within the Linux Image is a direct integration mounting of a directory from the VMware Image of the Linux development system into the local file system of the ECUcore 5208 Therefore directory tftoboot including all sub directories are exported by the VMware Image of the Linux development system The following steps are necessary to mount this file directory tree of the development system into the local file system of the ECUcore 5208 1 Determining the IP address of the Linux development system Section 6 5 describes the procedure to determine the IP address of the Linux Image 2 Mounting the Linux development system onto the ECUcore 5208 To mount directory tftpboot of the Linux Image into the local file system of the ECUcore 5208 command mount must be used as follows mount t nfs o nolock ip vmware image tftpboot mnt nfs For example to attach the ECUcore 5208 to the Linux development system via the IP address defined in section 6 5 the following command must be entered on th
96. s intended to make thoroughly clear what is believed to be a consequence of the rest of this License 8 If the 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 9 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 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 Fre
97. s the control elements of the Development Board and describes their meaning Table 3 Control elements of the Development Board for the ECUcore 5208 LED 2 D502 Digital Output DO2 LED 3 D503 Digital Output DO3 LED 4 D504 Digital Output DO4 SYS TEC electronic GmbH 2008 L 1202e 1 Page 11 LED 1 D501 Digital Output DO1 System Manual ECUcore 5208 Poti ADC R407 Analog Input AIO dimmable LED DAC D405 Analog Output AOO Run Stop Switch 405 Control element can be used freely for the user program e g Run Stop to operate the control program Run LED D403 Control element can be used freely for the user program e g Display of activity state of the control program Error LED D402 Control element can be used freely for the user program e g Display of error state of the control program Hex Encoding Switch S401 402 Control element can be used freely for the user program e g Configuration of node address CANO DIP Switch S400 Control element can be used freely for the user program e g Configuration bitrate and master mode CANO 4 4 Optional accessory USB RS232 Adapter Cable The SYS TEC USB RS232 Adapter Cable order number 3234000 provides a RS232 interface via an USB Port of the PC Together with a terminal program it enables the configuration and diagnosis of the ECUcore 5208 from PCs e g laptop computers which do not have RS232 interfaces themselves see section 5 Figure 4 SYS TEC USB RS232 Adapte
98. 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 SYS TEC electronic GmbH 2008 L 1202e 1 Page 71 System Manual ECUcore 5208 GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING DISTRIBUTION AND MODIFICATION 0 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 Pro
99. sing from the improper usage or improper installation of the hardware or software SYS TEC electronic GmbH further reserves the right to alter the layout and or design of the hardware without prior notification and accepts no liability for doing so Copyright 2009 SYS TEC electronic GmbH rights including those of translation reprint broadcast photomechanical or similar reproduction and storage or processing in computer systems in whole or in part are reserved No reproduction may occur without the express written consent from SYS TEC electronic GmbH Inform yourselves Directly Your local distributor Address SYS TEC electronic GmbH August Bebel Str 29 D 07973 Greiz GERMANY Ordering 449 0 36 61 62 79 0 Please find a list of our Information info systec electronic com AE stec electronic com distributors under Technical Support 49 36 61 62 79 0 E electronic com distributors i support systec electronic com Web Site http www systec electronic com 1st Edition August 2009 SYS TEC electronic GmbH 2008 L 1202e 1 Page 2 System Manual ECUcore 5208 Table of Contents SYS TEC electronic GmbH 2008 L 1202e 1 Page 3 t o de Ve Te te EE 5 2 Overview Where to find What ccccccesseesessesseeseeseeneeseenseeseesseneneeseensessonseesoeneessens 6 3 PFOGUCTIDESCHIDUON eMe 7 4 Development Kit ECUCore 5208 ccccccecseeseeeeceeneeeeceeneeeeeeesseeecoenseeeeeeneeeeeeese
100. system paths that are configured or still available can be identified by using the Linux command df DiskFree see Figure 19 SYS TEC electronic GmbH 2008 L 1202e 1 Page 27 System Manual ECUcore 5208 Si 192 158 10 171 PuTTY root gt eh Filesystem lk hlacka de mtdhblock 1275 deyv raml 1979 fdev mtdb lock4 2048 eS Mounted on 25 home root Figure 19 Display of information about the file system 5 13 Preinstalled files in the directory home A Flash disk is mounted to the directory home It provides part of the on board Flash memory of the ECUcore 5208 as file system This path is writable during runtime and serves as permanent storage for modifiable and updatable files such as configuration files or user programs see section 5 12 Upon delivery the ECUcore 5208 includes the following files in the directory home home etc autostart Script that automatically starts user software see section 5 2 2 rc usr Optional user specific configuration script profile Script is run upon start of a login shell e g it allows for setting environment variables resolv conf DNS configuration file it must be adjusted to allow the ECUcore 5208 to resolve DNS names passwd Files for the user administration that are used by programs group such as login adduser deluser passwd tftod and should only be executed indirectly
101. t Service Daemon that makes possible data exchange with any FIP client e g up and download of files to or from a computer For security or performance reasons this FTP server is deactivated by default and must be started manually if needed The advantage of using the FTP server on the ECUcore 5208 is that client sided there are comfortable graphical programs which enable simplified data exchange without knowing Linux commands For example if the device is applied in practice later on this would enable a service technician to transfer a firmware update to the ECUcore 5208 or to select log files from this module via a graphic FTP client on his laptop SYS TEC electronic GmbH 2008 L 1202e 1 Page 54 System Manual ECUcore 5208 Section 5 5 4 explains the activation of the FTP server on the ECUcore 5208 and the login to the module via a FTP client Section 5 1 specifies suitable FTP client programs 7 7 Compiling and executing the demo project demo 7 7 1 Usage of make Directory projects ECUcore 5208 user demo in the VMware Image of the Linux development system contains a demo program that illustrates accesses to in and outputs The I O driver stored in projects ECUcore 5208 driver pc5208drv is used by the demo program to access the l O It is recommended that the demo project or at least its Makefile should be referred to as template for own projects The source code can be created or edited via Windows network environment in
102. terface with the Linux development system Programming PC and can as well be used freely for the user program COMO RS232 X304 on top This interface is used for the configuration of the unit e g setting the IP address and for the diagnosis or debugging It can be used freely for general operation of the user program COM 1 RS232 X304 below Interface can be used freely for the user program CANO CAN X303 Interface can be used freely for the user program Figure 3 shows the positioning of the most important connections of the Development Board for the ECUcore 5208 Instead of using the 24V DC power adapter included in the Kit the power supply may optionally take place via X600 with an external source of 24V 1A SYS TEC electronic GmbH 2008 L 1202e 1 Page 10 System Manual ECUcore 5208 Power 24V 1A ETHO COMO RS232 CANO Figure 3 Positioning of most important connections on the Development Board for the ECUcore 5208 Advice Upon commissioning cables for Ethernet ETHO X302 and RS232 COMO X304 on top must be connected prior to activating the power supply X600 X601 4 3 Control elements of the Development Kit ECUcore 5208 The Development Kit ECUcore 5208 allows for easy commissioning of the ECUcore 5208 It has available various control elements to configure the module and to simulate in and outputs for the usage of the ECUcore 5208 as the main component of an industrial control Table 3 list
103. terms of Section 1 above provided that you also meet all of these conditions a 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 identifiable 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
104. th the static IP address as active connection LL 14 58 utc Be Wired Networks 4 ei Wired connection 1 O Auto eth VPN Connections gt Figure 39 Changing the network configuration in the Network Manager 6 7 4 System update of the Linux VMware Image The automatic update of packet lists is deactivated in the Linux VMware Image Hence it is assured to retain a defined system revision Although the user will not receive information if updated packets are available that close security gaps Nevertheless it is possible to re activate the automatic update of packet lists or to initiate an update manually This is possible via program Synaptic Package Manager from the menu system and the console program aptitude After updating packet lists it is also possible to install new packet lists with those programs SYS TEC electronic GmbH 2008 L 1202e 1 Page 43 System Manual ECUcore 5208 The user is expressly advised It can not be guaranteed that the Linux development system of the ECUcore 5208 maintains complete functionality after an update is accomplished It is strongly recommended to make a backup copy of the Linux development system prior to the update 6 7 5 Changing the computer name in the Windows network environment By default in the Windows network environment the Linux VMware Image uses the computer name vm xubuntu also see Table 9 in section 6 4 The access to a computer in the Windows network is control
105. through those programs inetd conf configuration file for inetd motd Message of the Day Will be displayed after each shell login bin pc5208drv ko Kernelspace Module of the I O Driver see section 7 4 1 5208 spidev ko Kernelspace Module for the I O Driver candrv ko Kernelspace Module of the CAN Driver see section 7 5 1 http Demo files for the HTTP server compare section 5 14 mountnfs sh Script for a simplified integration of NFS directories into the file system of the ECUcore 5208 see section 7 6 1 debug sh Script to simplify the start of Demo programs under the control of the Debug server see section 7 7 2 3 profile user specific configuration script that is executed with every SYS TEC electronic GmbH 2008 start of a login shell L 1202e 1 Page 28 System Manual ECUcore 5208 If necessary the delivery status of all files in the directory home may be restored by executing the setup script setup ecucore 5208 sh The setup script setup ecucore 5208 sh is located in the directory SetupFlashdisk ECUcore 5208 of the DVD SO 1096 Section 7 6 describes several possibilities to transfer this file onto the ECUcore 5208 5 14 Using the HTTP server HTTP server boa is installed on the ECUcore 5208 Hence the access to the module is possible via any WEB Browser e g Mozilla Firefox Microsoft Internet Explorer Opera etc For
106. upported instances 2 DevNumbe r H Bitrate 125kBaud Initialize CAM Device Number A Register Rx CAN ID pool Register Hx CAN ID HxiHH CAN ID Hxibi CAN ID Hx1H2 CAN ID Hx1H3 CAN ID Hxib4d CAN ID HxifS CAN ID Axio Register CAN ID Axi Register CAN ID HxiH8 Register Hx CAN ID Axl Register Tx CAN ID pool Register CAN ID Register CAN ID Register CAN ID Register CAN ID Register CAN ID Register CAN ID Register CAN ID Register CAN ID Register CAN ID Register Tx CAN ID Hx2H7 Register Tx CAN ID for hello message Register Tx CAN ID HxdHBH ok Send hello message ok Register Register Register Register Register Register Hx2HH Hx261 Hx2H2 Hx2H3 Hx2H4 Hx2H5 Hx2Hb Hx2H7 Hx2H8 Hu nu nm m m m Hu m Hn He n n u m n Hn H m iH I Enter Main Loop Message 1 received ICHMID Hx1HH Size 8 Ba Hi H2 AS Echo Message BH Hi H2 H3 ok CANID 6x106 Size 4 Echo Message mit edt Size 4 Send Echo Message 0 11 22 33 44 11 22 33 44 k Check reachability of nfs server 192 168 10 58 Server is online Figure 42 Execution of Demo project hellocan on the ECUcore 5208 Figure 43 shows data exchange with the demo program hellocan in the CAN bus analysis tool CAN REport SYS TEC electronic GmbH 2008 L 1202e 1 Page 50 System Manual ECUcore 5208 CAN REport V3 3
107. ur support support systec electronic com SYS TEC electronic GmbH 2008 L 1202e 1 Page 7 System Manual ECUcore 5208 SYS TEC electronic GmbH 2008 L 1202e 1 Page 8 System Manual ECUcore 5208 4 Development Kit ECUcore 5208 4 1 Overview Due to the Development Board contained in the Kit the Develooment Kit ECUcore 5208 allows for a quick commissioning of the ECUcore 5208 and simplifies the design of prototypes for user specific applications that are based on this module Among other equipment the Development Board features several possibilities for power supply Ethernet interfaces the connection of 1 CAN buses 6 push buttons and 5 LED as control elements for the digital in and outputs Moreover it contains a potentiometer for analog input Signals that are available from plug connectors of the ECUcore 5208 are linked to pin header connectors and enable easy connection of own peripheral circuitry Hence the Development Board forms an ideal experimentation and testing platform for the ECUcore 5208 Figure 2 Development Kit ECUcore 5208 The Development Kit ECUcore 5208 ensures quick and problem free commissioning of the ECUcore 5208 Therefore it combines all hard and software components that are necessary to create own applications the core module ECUcore 5208 itself the corresponding Development Board containing I O periphery and numerous interfaces the Linux development system as well as further accessory Thus the D
108. worldwide is a clear identification oft he module and is assigned by the producer It should not be modified by the user IP address of the set ip lt XXX XXX XXX XXX gt This command sets the local IP address of the ECUcore 5208 ECUcore 5208 The IP address is to be defined by the network administrator To assign a dynamic IP address to the ECUcore 5208 via DHCP value 0 0 0 0 must be entered as address Compare the advice about DHCP in the text below Network mask set netmask Xxxx XXx XXx xxx This command sets the network mask of the ECUcore 5208 The network mask is to be defined by the network administrator Gateway address set gw lt XXX XXX XXX XXX gt This command defines the IP address of the gateway which is to be used by the ECUcore 5208 The gateway address is set by the network administrator Advice If ECUcore 5208 and Programming PC are located within the same sub net defining the gateway address may be skipped and value 0 0 0 0 may be used instead IP address of the set server lt XXX XXX XXX XXX gt This command defines the IP address of the Linux Linux development system It is used for development example to update the uClinux Image see system section 5 15 as well as to include the Linux development system via NFS into the local file system of the ECUcore 5208 see section 7 6 1 Saving the config save This command saves active configurations in configuration the flash of the ECUcor
109. y Intl PC v Es Keyboard layouts SE l Screensaver Sd Layout Variant us i User interface Figure 34 Adding keyboard layouts in the Xfce Settings Manager Setting the time zone takes place via a control panel of the system configuration which is as well directly callable from the start menu Applications gt System Time and Date see Figure 35 Since changing the time zone is an administrative activity the dialog must first be released by using pushbutton Unlock also see Figure 35 Therefore the administrator password will be asked analog to the console command sudo By default password vmware must be entered also compare Table 9 in section 6 4 Afterwards the capital and the corresponding time zone can be chosen via path Time zone lt Applications Bj Places Settings Terminal gt rminal Go Help ntu dij Accessories Development Graphics gt lr Add Remove Authorizations We Hardware Drivers t Language Support LJ Services Ca Shared Folders Software Sources Q About Xfce De Quit mrar Time and Date Settings Fe rz Synaptic Package Manager DN System Monitor 64 Time and Date e zone pnfiguration Manual Q Update Manager amp Users and Groups Time 14 13 Date lt January gt Mon Unlock 2 Close Figure 35 Adjusting the t
110. y to execute the build system see section 7 3 This shell script is automatically executed if a console Terminal is opened via file bashrc In the same way if the graphical IDE Eclipse is started via the appropriate desktop symbol 7 3 Makefile and environment variables to create projects Creating user programs for the ECUcore 5208 requires the usage of GNU Crosscompiler Toolchain for Freescale MCF52xx processors This is completely installed and configured in the VMware Image of the Linux development system Environment variables defined in the Shell script projects ecucore setup are relevant in this matter export M68K LINUX BSP PATH projects ECUcore 5208 export M68K PATH M68K LINUX BSP PATH toolchain 4 2 bin add toolchains to PATH export PATH SM68K_ PATH PATH The template in path orojects EC Ucore 5208 user demo should be the initial point to develop own programs or vm xubuntu projects EC Ucore 5208 user demo in the Windows network environment Hereby variables defined in Makefile demo source Makefile and references to GNU Crosscompiler Toolchain for Freescale MCF52xx processors based on definitions in projects ecucore setup are especially relevant SYS TEC electronic GmbH 2008 L 1202e 1 Page 46 System Manual ECUcore 5208 GDREES S M68K DBG MODE CFLAGS 00 g Wall mcpu 5208 INCLUDES CDEFS LDFLAGS mcpu 5208 Wl elf2flt CROSS m68k uclinux CC CROSS gcc AR
111. yout as image Per application settings Remember layout for each application Figure 32 Choosing a permanent keyboard layout Adding more keyboard layouts is possible by using Xfce Settings Manager which can be directly called from the start menu Applications gt Settings gt Settings Manager see Figure 33 Applications B Places Settings a Settings Manager Bi Calendar Settings al Accessories d i Default Printer Development e P ya Encryption and Keyrings E Login Window Menu Editor Open DK Java 6 Policy Tool E Power Management Graphics G Network i Office System Help Printing About Xfce Al SCIM Input Method Setup a Quit Sun Java 6 Plugin Control Panel Sun Java 6 Policy Tool Figure 33 Calling Xfce Settings Manager from the start menu More keyboard layout can be added or deleted within the Xfce Settings Manager by using option Keyboard and sub option Layouts see Figure 34 SYS TEC electronic GmbH 2008 L 1202e 1 Page 40 System Manual ECUcore 5208 Applications B Places Xfce Settings Manager Xfce Settings Manager Customize your Xfce desktop E m ei A La SS E Keyboard Preferences FER Keyboard Preferences Keyboard Settings Shortcuts Accessibility Layouts 5 O Use X configuration oO Keyboard model Preferred Applications Generic 105 ke
Download Pdf Manuals
Related Search
Related Contents
VIPowER VP-9059 Network Router User Manual Manuel d`utilisation Compact Prime and Zoom lenses ZEISS Mount Change Instructions Copyright © All rights reserved.
Failed to retrieve file