ST STMC2 Manual Download Page 25

ST Micro Connect 2

Configuration using the stmcconfig utility

7912386 Rev 12

25/58

Example

% stmcconfig --identify-all

Ethernet: brie0310 thetis * [164.129.14.239]; USB: [192.168.2.1]; 

STMC booted successfully

STMC in use with TargetPack mb411 by user products from host dingly

Ethernet: brie0029 marin * [164.129.15.135]; USB: [192.168.2.1]; 

STMC booted successfully

5.8 

Configure an ST Micro Connect 2 network interface 
(--ifconfig-eth and --ifconfig-usb)

An ST Micro Connect 2 has two network interfaces, 

eth0

 and 

usb0

. The options 

--ifconfig-eth

 and 

--ifconfig-usb

 enable these interfaces to be configured or their 

configuration to be reported. If no arguments are specified to the 

--ifconfig-eth

 or 

--ifconfig-usb

 options, the command reports the current configuration of the interface.

Note:

When used to make configuration changes, the last action of 

--ifconfig-eth

 and  

 

--ifconfig-usb

 is to reboot the ST Micro Connect 2.

Syntax

stmcconfig --ip <

ip address

> --ifconfig-eth [

Ethernet arguments

]

stmcconfig --ip <

ip address

> --ifconfig-usb [

USB arguments

]

USB or Ethernet arguments

<

ip address

> [netmask <

net mask

>] [broadcast <

broadcast address

>]

Section D.1: Factory default configuration on page 44

 lists both the USB and Ethernet 

factory default configuration.

Examples

The following example configures the USB network interface:

% stmcconfig --ip 192.168.1.1 --ifconfig-usb 169.254.14.239 netmask 255.255.0.0

The next example, where no arguments are specified, lists the current configuration of the 
Ethernet network interface:

% stmcconfig --ip 192.168.1.1 --ifconfig-eth

eth0      Link encap:Ethernet  HWaddr 00:80:E1:42:06:75  

          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:60009 errors:0 dropped:0 overruns:0 frame:57773

          TX packets:92 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:4370186 (4.1 MiB)  TX bytes:37458 (36.5 KiB)

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Summary of Contents for STMC2

Page 1: ...Package Description The ST Micro Connect 2 STMC2 can be connected to a local host or LAN using the 10 100 Mbit Ethernet connection or to a local PC host using the USB 2 0 connection USB 1 1 compatibl...

Page 2: ...ress 14 3 USB connection 15 3 1 Default USB IP address 15 3 2 Configure ST Micro Connect 2 USB IP address 15 3 3 Connection to the host 16 3 4 Windows installation 16 3 4 1 Host driver installation 16...

Page 3: ...config usb 25 5 9 Specifying a gateway address gateway 26 5 10 Display message on LCD lcd message 26 5 11 Redirect stmcconfig output to a file output 26 5 12 Reset reset 27 5 13 Restore network config...

Page 4: ...ppendix C LEDs 43 Appendix D Choosing an IP address 44 D 1 Factory default configuration 44 D 1 1 USB 44 D 1 2 Ethernet 44 D 2 Selecting an Ethernet IP address 44 D 3 Selecting a USB IP address 45 D 3...

Page 5: ...ies in the European Union EU 50 F 3 2 Countries outside the European Union EU 50 Appendix G Ordering information 51 Appendix H Glossary 52 Acknowledgements 53 Revision history 54 Downloaded from Arrow...

Page 6: ...1 Figure 1 shows how the ST Micro Connect 2 is used in a system Figure 1 System overview Note The STMC2 40 200 includes an STMC I O convertor Type A the STMC2 JTAG includes an STMC I O convertor Type...

Page 7: ...hielded 68 wire SCSI V cable see Figure 1 on page 6 The connection depends on the type of connector pinout present on the development board Some boards require an STMC I O convertor to be connected be...

Page 8: ...ding existing ST Micro Connect 2 units if required a host utility stmcconfig that provides remote system configuration reporting and scripting facilities see Chapter 5 on page 21 a host utility sttpde...

Page 9: ...nd the DISPLAY environment variable On Linux hosts set the DISPLAY environment variable to specify the X server being used otherwise the installer will fail Locale The ST Micro Connection Package uses...

Page 10: ...rectory of the ST Micro Connection Package in the PATH environment variable Note On Windows the ST Micro Connection Package installer sets up the PATH unless this option is de selected LD_LIBRARY_PATH...

Page 11: ...then cycle for a few seconds to indicate that the ST Micro Connect 2 software is running For a description of the status LEDs see Appendix C LEDs on page 43 On boot up the LCD displays a ready message...

Page 12: ...o Connect refers to the family of ST Micro Connect devices In some instances these names are abbreviated to STMC STMC1 and STMC2 and STMCLite as described in Appendix H Glossary on page 52 Downloaded...

Page 13: ...tton can be used in both displays to navigate the various pages Note The LCD can also be used to display messages using the host utility stmcconfig see Section 5 10 on page 26 Messages that are longer...

Page 14: ...r Yes to execute the action and reboot the ST Micro Connect 2 If the cursor is over No when Select is pressed the action is aborted and LCD menu is displayed 2 2 2 Setting an IP address When setting a...

Page 15: ...nd USB interfaces Consult your network administrator for details of local IP addressing policy and network mask values 3 2 Configure ST Micro Connect 2 USB IP address If the default USB IP address of...

Page 16: ...und New Hardware wizard On Windows XP the Found New Hardware Wizard offers three options to proceed 1 Select No not at this time and click on Next 2 The second page of the Found New Hardware Wizard fo...

Page 17: ...n the ST Micro Connect 2 is connected to the Linux host Linux detects the event and automatically creates a network interface The interface is configured by the ST Micro Connect 2 using the DHCP proto...

Page 18: ...n is enabled the ST Micro Connect 2 will automatically attempt to find a new address when it is connected to the network as described in Section 4 2 Appendix D Choosing an IP address on page 44 provid...

Page 19: ...d to always serve the same IP address to your ST Micro Connect 2 This can be setup by your network administrator To disable DHCP IP address acquisition navigate to the LCD menu option Disable DHCP and...

Page 20: ...the target system Connection to the target development system is described in Appendix B Target interface on page 40 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Down...

Page 21: ...of any ST Micro Connect 2s connected to the network identify MAC Report network addresses of the ST Micro Connect 2 with MAC address MAC ifconfig eth 1 Ethernet arguments Report or configure Ethernet...

Page 22: ...fig ip 192 168 1 1 dhcp enable 5 2 Select alternate firmware partition firmware downgrade Section 5 3 describes Flash partition organization The option firmware downgrade switches the Flash partition...

Page 23: ...te 1 The firmware upgrade option reboots the ST Micro Connect 2 2 Restoring the previous firmware from the alternate partition is described in Section 5 2 Syntax stmcconfig ip ip address firmware upgr...

Page 24: ...tify option described in Section 5 6 All ST Micro Connect 2s on the LAN are detected Note The identify operation only discovers ST Micro Connect 2s on the local network Any ST Micro Connect 2s on sepa...

Page 25: ...USB and Ethernet factory default configuration Examples The following example configures the USB network interface stmcconfig ip 192 168 1 1 ifconfig usb 169 254 14 239 netmask 255 255 0 0 The next ex...

Page 26: ...cross reset If the message is longer than 16 characters the message scrolls If the message parameter is omitted then any message displayed on the LCD is cleared Syntax stmcconfig ip ip address lcd mes...

Page 27: ...need to access the serial port on the target board The sequence of actions that must be carried out are 1 Connect the target board to the ST Micro Connect 2 rear panel connector with a NULL modem cab...

Page 28: ...e telnet client should be set up to send just CR To do this 1 Start telnet telnet 2 Escape to command mode by pressing control key and right square bracket Table 3 stmcconfig serial relay arguments Ar...

Page 29: ...ST Micro Connect 2 log file show log The ST Micro Connect 2 reports its activity to a log file called messages Toolsets can also log their activity to log files To display the log files use the show...

Page 30: ...development targets are stored together and identifying a specific ST Micro Connect is difficult The n flashes argument to this command is the number of times to flash the LEDs The default is 10 Synt...

Page 31: ...pports both methods of programming EPLDs It operates on Altera Jam byte code jbc files and provides information program and verify operations The epldprog command line is described in Section 6 2 on p...

Page 32: ...he ST Micro Connect 2 Users must make up a cable with direct one to one pin connectivity 10 way IDC connector Altera ByteBlaster ISP LVDS cable I O convertor 10 way IDC connection programming connecto...

Page 33: ...0 1 2 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded f...

Page 34: ...directly to a Type K format LVDS convertor on the target board Convertors are described in detail in Appendix B Target interface on page 40 help Displays help for epldprog parameters TargetString par...

Page 35: ...by using an additional option parameters module_function mb628_power This specifies the Python module that powers up the board epldprog parameters module_function mb628_power my_stmc2 VERIFY mb628_02...

Page 36: ...ed from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 37: ...m Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 38: ...om Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 39: ...power connector 1 35 68 34 On front panel DC IN 0 V 5 V On rear panel Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 40: ...of ST s SoC validation platforms provide direct connection using an SCSI V cable to the target board Connect these products as shown in Figure 13 A 68 way SCSI V cable provides the interface between...

Page 41: ...that support the 20 way mini IDC to 20 way mini IDC ribbon cable This is described in Section B 2 2 on page 42 Figure 15 STMC I O convertor Type A board layout 68 way female VHDCI connector 20 way mal...

Page 42: ...STMC I O convertor Type A to a customer board Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow c...

Page 43: ...operating at 10 Mbits Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow...

Page 44: ...all hosts on that LAN It is possible to use the default Ethernet IP address on any network where the address does not conflict with other equipment but this is discouraged for anything other than the...

Page 45: ...ss D 4 Possible network conflicts This section describes some possible network conflicts Each ST Micro Connect 2 has two network interfaces Ethernet and USB with no possibility in the user interface t...

Page 46: ...IP addresses are not suitable you may also wish to consider using an alternative private address for the USB in the 172 16 0 0 to 172 31 255 255 range Ethernet subnet Gateway Ethernet subnet USB subn...

Page 47: ...ress 11000000101010000001000100010100 Mask 11111111111111111111100000000000 Subnet 11000000101010000001000000000000 bitwise AND The results show that for the classful network mask the addresses A and...

Page 48: ...your ST Micro Connect 2 for example stmcconfig identify 00 80 e1 42 06 71 Ethernet 192 168 1 1 USB 192 168 2 1 The ST Micro Connect 2 is now available to this host Note Step 3 must be repeated if the...

Page 49: ...power supply with pre fitted EMC ferrite 2 Because of the highly configurable and flexible nature of the ST Micro Connect 2 product any change in mode of operation outside of that provided as part of...

Page 50: ...recovery and recycling in accordance with your national legislation F 3 2 Countries outside the European Union EU Customers wishing to dispose of this product should do so in accordance with any nati...

Page 51: ...also available separately the order code is TYPEH IO Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 52: ...com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fro...

Page 53: ...IX is a registered trademark of The Open Group RED HAT is a registered trademark of Red Hat Inc Linux is a registered trademark of Linus Torvalds Python is a registered trademark of the Python Softwar...

Page 54: ...oC debug interfaces technical note 8339250 Added Type K information to Appendix B Target interface on page 40 Reworded Section B 1 Connection to ST s validation boards on page 40 Reworked Section B 2...

Page 55: ...e 21 and Section 5 9 Specifying a gateway address gateway on page 26 Removed the option route and all references to it Replaced previous Section 5 14 2 with new Section 5 14 2 Telnet connections to th...

Page 56: ...m rather than Telnet In particular updated Section 5 14 Configure serial redirect serial relay and Section A 4 RS 232 serial data connector on page 38 Updated Appendix G Ordering information on page 5...

Page 57: ...rrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloade...

Page 58: ...es set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of...

Reviews: