========================================================================= 7400WinCmd.exe, LAN7400 command line Utility Ver. 1.4.0.0 ========================================================================= 1. Overview =========== The 7400WinCmd command line Utility runs in a Windows Command prompt providing support for programming the EEPROM/OTP, setting link parameters, performing LinkMD cable diagnostics, and allowing low level basic register access to the LAN7430/LAN7431 devices. 2. Device support ================= This utility supports the LAN7430/LAN7431 PCIe Ethernet devices. 3. Files Manifest ================= 7400WinCmd.EXE: Utility executable. readme: This document lan7430e.bin: Sample LAN7430 binary EEPROM image (used by the EVB_LAN7430 evaluation board) lan7430o.bin: Sample LAN7430 binary OTP image lan7431e.bin: Sample LAN7431 binary EEPROM image (used by the EVB_LAN7431-EDS + KSZ9x31 evaluation boards combo) lan7431o.bin: Sample LAN7431 binary OTP image 4. Starting LAN7400 Utility =========================== IMPORTANT PRE-REQUISITE: the LAN7400 Windows drivers must be installed and running for 7400WinCmd to operate. Open a Windows Command prompt and run this utility with the desired Parameters. 5. Utility Command Line Parameters Details ========================================== 7400WinCmd [-X ] [(-b )(-w -r)] [-O] [-C ] [-l ] [-p ] [-L] [-h] [-R ] [-W -v ] [-y ] [-Y -v ] [-e ] [-E -v ] [-j ] [-J -v ] [-V] [-G (v b l k p o)] -X Support for multiple adapters. If more than one LAN7400 is plugged in, all commands can be directed to a specific LAN7400. The index is a zero based number associated with the adapter. See -G commands for more info. -b Uses the binary file as "base" for the EEPROM contents and must be present when operate write (-w) action. -w Write the EEPROM Contents specified in the file + overwrites to the device and verify them. The input file specified with the -b option -r Read the current EEPROM Contents in the device and write to the 7400eep_256/7400eep_512.bin binary file (depending on the device) under the current folder. -O OTP Operation. -O option must accompany with -w (write) or -r (read) option. The -w option also include -b or -i option. -C Suppress the user confirmation before writing OTP. Must be "YES" (all upper case letters). -p Ping option. IP address must must be specified when the "-p" option is present. -l The utility will attempt to autonegotiate using one of the following restricted negotiation capabilities "10hd", "10fd", "100hd", "100fd" or "1000fd". -L External loop back test. The -l option with "100fd" or "1000fd" need to be specified. If -l option is not specified assumes 1000fd. No need to specify IP address. Will ignore it. -R Read Control and Status register. The Register address as hex value. -W Write Control and Status register. Register address as hex value. The -v option should be used along with this option. -y Read PHY register. The PHY register index in hex. -Y Write PHY register. the PHY register index in hex. The -v option should be along with this option. -e Read dword from PCI Config Space at offset (as hex) -E Write dword to PCI Config Space at offset (as hex) The -v option should be used along with this option. -j Read PCIe PHY register. The Register address is in hex. -J Write PCIe PHY register. The Register address is in hex. The -v option should be used along with this option. -V Perform LinkMD Cable Diagnostics tests -G -G commands cannot be used with any other commands except for -X. -G v Get driver version -G b Get adapter bits. Each bit represents an adapter. If 2 adapters are plugged in, you might see 0x03. That can be used to set the index with -X. -G k Get adapter registry key. For multiple adapters, this command returns the registry key for the adapter. An example is: "{4d36e972-e325-11ce-bfc1-08002be10318}\0015" If that is appended to: "HKLM\SYSTEM\CurrentControlSet\Control\Class\" You would have a full path to the registry key. -G p Get adapter address. While useful for USB this does not seem to have defined useful values for PCI -G o Get adapter PDO name. For multiple adapters, this command returns the PDO name for the adapter. An example is: "\Device\USBPDO-9" -h Displays help menu. ---------------------------------------------------------------------------- 6. Return Error codes ===================== SUCCESS 0 ERROR_FAIL 1 ERROR_NOMEM 2 ERROR_PARAMETER 3 ERROR_LINK 4 ERROR_EEPROMACCESS 5 ERROR_INVALIDEEPROMSIZE 6 ERROR_PING 7 ERROR_LOOPBACK 8 ERROR_EEPROMWRITE 9 ERROR_UPDATE 10 ERROR_OTPACCESS 11 ERROR_OTPWRITE 12 ERROR_OTP_FULL 13 ERROR_OTP_SIZE 14 7. Release history =================== v1.4.0.0 (01/23/2019) - Repackage adding sample EEPROM/OTP binaries v1.4.0.0 (11/02/2018) - Fix some issues in Cable Diagnostics tests that could result in negative lengths and other failures in some cases. v1.3.0.0 (10/25/2018) - Add support for LinkMD Cable Diagnostics v1.2.0.0 (01/14/2018) - Add support for PCIePHY registers Read and Write v1.1.0.0 (11/02/2017) - Add support for PCI Cfg Space Read and Write v1.0.1.0 (9/11/2017) - Add support for LAN743F engineering debugging SKU of the device. v1.0.0.0 (7/24/2017) - Pruned all file options/functionality except binary read and write - Pruned all veriphy supporte and 8051 related options/functionality v0.1.0.0 (12/01/2016) - Initial release. 8. Known Issues =============== - ini file support previously present in WinCmd utilities of USB devices is not supported in 7400WinCmd. All those operations are supported via MPLab Connect Configurator.