UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 62652

Zynq 7000, GEM - How do I generate WOL interrupts?

Description

How do I generate Wake-on-LAN (WOL) interrupts from the PS GEM?

Solution

The attached source code is an example of WOL interrupt by detection of a Magic Packet.
 

It is based on the lwIP echo server application in SDK 2014.3.
 
By comparing it with the original source code, you can see the necessary settings for WOL.
 
A magic packet event is detected if all of the following are true:
 
  • Magic packet events are enabled through bit [16] of the Wake-on-LAN register
  • The frame's destination address matches specific address 1
  • The frame is correctly formed with no errors
  • The frame contains at least 6 bytes of 0xFF for synchronization
  • There are 16 repetitions of the contents of the Specific Address 1 register immediately following the synchronization
 
To send Magic Packet from a Host PC, you can use this software.

Settings:
WOL_MagicPacketSender.png


Attachments

Associated Attachments

Name File Size File Type
lwip_2014.3.zip 4 KB ZIP
AR# 62652
Date Created 10/29/2014
Last Updated 03/16/2015
Status Active
Type General Article
Devices
  • Zynq-7000
IP
  • Processing System 7