OS (Operating System) involved. This manual is divided into two parts. The first part describes how to run KSZ8851 BSP with OpenTCP 1.0.4 on Micrel KSZ8851-16MQL demo board. The second part describes how to install, and build KSZ8851 BSP by using the Renesas SKP16C62P StarterKit Plus (SKP).
KSZ8851 hardware driver version. KSZ8851 Chip ID. KSZ8851 Device Revision. MAC address of KSZ8851 station. IP address of KSZ8851 target. Port Link Status. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 2008 Micrel Semiconductor...
2.3 CLI Commands Descriptions From CLI command prompt, type hwhelp, will display all the CLI commands that the BSP provides (Figure 2-3-1). hwhelp Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 2008 Micrel Semiconductor...
Page 6
KSZ8851 16Bit BSP User’s Manual Figure 2-3-1 hwhelp display Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 2008 Micrel Semiconductor...
Page 7
Polling register 2, bit 1 if it match 0b pattern, in 10 ms. BYTE is 8-bit, WORD is 16-bit, and DWORD is 32-bit data width. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 2008 Micrel Semiconductor...
Page 8
If you already prepare the six buffers with different Ethernet packets data, it will transmit data buffer from 0 to 5 one by one. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 2008 Micrel Semiconductor...
Page 9
The following CLI commands are used to access the device indirect access registers for the VLAN table, static MAC table, dynamic MAC table, and MIB counters. =>hwreadmib 0 4 Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 2008 Micrel Semiconductor...
Page 10
-- Clear software MIB counter database Clear all the MIB counters The following CLI commands are used to get\set device PHY link status. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 10 - 2008 Micrel Semiconductor...
Page 11
=>reg.01 : 1234 Modify EEPROM register 1 value to from 0x4401 to 0x1234. hwsetip -- Set system IP address. =>hwsetip 192.168.1.34 Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 11 - 2008 Micrel Semiconductor...
Page 12
-- Set system MAC address. =>hwsetmac 00:11:22:33:44:55 hwgetip -- Display system IP address. =>hwgetip =>^[192.168.1.34]$ hwgetmac -- Display system MAC address. =>hwgetmac =>^[00:11:22:33:44:55]$ Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 12 - 2008 Micrel Semiconductor...
You can use the PING command from your laptop Windows Command Prompt to test whether the KSZ8851 is accessible over the network (Figure 3-3-1). Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 13 - 2008 Micrel Semiconductor...
IP address button (Figure 3-4-1). → NOTE: You should change the IP address to the one that you assigned to your board. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 14 - 2008 Micrel Semiconductor...
Page 15
Also, when the slider bar on the GUI is moved, the new value is send to the target board via UDP packets and the value is displayed on the LCD. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 15 - 2008 Micrel Semiconductor...
PHY’s link status and capabilities; perform cable diagnostics and integrity check on transmit and receive datapaths. To launch the LinkMD program, navigate to the directory with the Micrel LinkMD software (OpenTCP_104\LinkMD GUI Demo) and double click on the LinkMD.exe file.
Page 17
To read the latest PHY status, press the Refresh button. To configure the PHY, set the desired settings and press the Update button. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 17 - 2008 Micrel Semiconductor...
4 meters short and 3 meters open were found on the differential pairs connected to pins {1,2} and {3,6} of the RJ-45 jack, respectively. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 19 - 2008 Micrel Semiconductor...
PC is sending ARP packets or other Ethernet traffic is present, the transmit count and receive count may differ. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 21 - 2008 Micrel Semiconductor...
LCD on KSZ8851 demo board. 5.1 Running Wake-on-LAN Demo Program The Micrel LinkMD program also provides the magic packet Send button to generate and transmit a network Magic Packet™ to the network. Connect an Ethernet cable between the laptop and KSZ8851 demo board as Figure 3-2-1, and RS-232 serial cable between the laptop and KSZ8851 as Figure 2-1.
Page 24
When you click on Clear button, the Wake-on-LAN Tab sends out a CLI to KSZ8851 UART port clear KSZ8851 PME_Status to dessert PMEN pin. The M16C/62P demo board LED7 is turned off. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 24 - 2008 Micrel Semiconductor...
The most of subdirectories and files are the same as you download from OpenTCP website, the KSZ8851 BSP only add or modify following subdirectories and files: Directory Status Description ks8851\OpenTCP_104\ks8851\ethernet_ks8851.c OpenTCP Ethernet Driver for Micrel KSZ8851 device. ks8851\OpenTCP_104\gui_demo.c Modify Change target IP to 192.168.1.1. Init UART driver, and polling UART receive.
Figure 7-1-1: HEW Main Window Then click on Browse, selection of Hew3 under MTOOL\ks8851\OpenTCP_104\arch\M16C directory from the Workspace Browse window (Figure 7-1-2). Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 26 - 2008 Micrel Semiconductor...
Page 27
KSZ8851 16Bit BSP User’s Manual Figure 7-1-2: HEW Workspace Browse Window HEW workspace should look like the figure 7-1-3 below. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 27 - 2008 Micrel Semiconductor...
Status, errors, messages, etc during a build process is displayed on the Output window (Figure 7-2-1). Figure 7-2-1: HEW Workspace with Output window Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 28 - 2008 Micrel Semiconductor...
> FoUSB Programmer and a screen similar to Figure 8-1-1 will be displayed. Please reference the RTA-FoUSB-MON_Users_Manual for how to install FoUSB ICD. Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 29 - 2008 Micrel Semiconductor...
Click on EXIT button on the lower right corner of the main GUI to exit FoUSB Programmer. → Note: Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 30 - 2008 Micrel Semiconductor...
Page 31
Select Erase Only Needed Blocks option from Erasing Options. Figure 8-2-1 Dialog box for file selection Figure 8-2-2 FoUSB main GUI after file selection Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 31 - 2008 Micrel Semiconductor...
Page 32
KSZ8851 16Bit BSP User’s Manual Figure 8-2-3 Menu options for programming flash Confidential Information Rev. 1.1 1849 Fortune Drive, San Jose CA95131, USA• (408)955-0800 • http://www.micrel.com Page 32 - 2008 Micrel Semiconductor...
Need help?
Do you have a question about the KSZ8851 16Bit Bus BSP and is the answer not in the manual?
Questions and answers