15.12.2012 Views

Implementing an IEEE 1588 V2 Node on the ColdFire MCF5441x ...

Implementing an IEEE 1588 V2 Node on the ColdFire MCF5441x ...

Implementing an IEEE 1588 V2 Node on the ColdFire MCF5441x ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Detailed descripti<strong>on</strong> of <strong>the</strong> <str<strong>on</strong>g>IEEE</str<strong>on</strong>g><str<strong>on</strong>g>1588</str<strong>on</strong>g> demo software<br />

3.2.3 MQX RTCS full-featured TCP/IP stack<br />

Freescale MQX Real-Time TCP/IP Communicati<strong>on</strong> Suite (RTCS) is a fast <str<strong>on</strong>g>an</str<strong>on</strong>g>d low-footprint embedded<br />

internet stack that supports a rich set of st<str<strong>on</strong>g>an</str<strong>on</strong>g>dard protocols that sp<str<strong>on</strong>g>an</str<strong>on</strong>g> from data link to applicati<strong>on</strong> layer<br />

such as FTP, Telnet, DHCP, DNS servers <str<strong>on</strong>g>an</str<strong>on</strong>g>d clients, <str<strong>on</strong>g>an</str<strong>on</strong>g>d SNMP clients. It provides great flexibility<br />

r<str<strong>on</strong>g>an</str<strong>on</strong>g>ging from simple applicati<strong>on</strong> such as E<strong>the</strong>rnet-serial to complex gateway systems. It also allows<br />

developers to add Web servers, e-mail, network m<str<strong>on</strong>g>an</str<strong>on</strong>g>agement, security, <str<strong>on</strong>g>an</str<strong>on</strong>g>d routing to <strong>the</strong>ir designs.<br />

For more informati<strong>on</strong>, refer to Freescale MQX RTCS User’s Guide, MQXRTCSUG.<br />

4 Detailed descripti<strong>on</strong> of <strong>the</strong> <str<strong>on</strong>g>IEEE</str<strong>on</strong>g><str<strong>on</strong>g>1588</str<strong>on</strong>g> demo software<br />

A dem<strong>on</strong>strati<strong>on</strong> applicati<strong>on</strong> has been created to show <strong>the</strong> functi<strong>on</strong>ality <str<strong>on</strong>g>an</str<strong>on</strong>g>d usage of <strong>the</strong> MQX<str<strong>on</strong>g>1588</str<strong>on</strong>g> library.<br />

This demo applicati<strong>on</strong> provides <str<strong>on</strong>g>an</str<strong>on</strong>g> example of how to:<br />

• Set up all parts of <strong>the</strong> applicati<strong>on</strong> including <strong>the</strong> RTCS<br />

• Use <strong>the</strong> MQX<str<strong>on</strong>g>1588</str<strong>on</strong>g> library<br />

• Implement user-overridable MQX<str<strong>on</strong>g>1588</str<strong>on</strong>g>API functi<strong>on</strong>s<br />

• Realize n<strong>on</strong>volatile storage using <strong>the</strong> st<str<strong>on</strong>g>an</str<strong>on</strong>g>dard MQX NAND Flash driver<br />

• Implement <strong>the</strong> user interface for <strong>the</strong> applicati<strong>on</strong> (Shell, Telnet, <str<strong>on</strong>g>an</str<strong>on</strong>g>d HTTP Web Server)<br />

The demo software goes with <strong>the</strong> installati<strong>on</strong> of <strong>the</strong> MQX<str<strong>on</strong>g>1588</str<strong>on</strong>g> library <str<strong>on</strong>g>an</str<strong>on</strong>g>d c<str<strong>on</strong>g>an</str<strong>on</strong>g> be found in <strong>the</strong> demo folder<br />

of <strong>the</strong> mqx<str<strong>on</strong>g>1588</str<strong>on</strong>g>lib software package. The applicati<strong>on</strong> projects c<str<strong>on</strong>g>an</str<strong>on</strong>g> be found in <strong>the</strong> following<br />

subdirectories:<br />

• cwcf72: dedicated for CodeWarrior Development Studio for <strong>ColdFire</strong> Architectures Versi<strong>on</strong> 7.2.x<br />

projects<br />

• cw10: dedicated for CodeWarrior Development Studio for Microc<strong>on</strong>trollers Versi<strong>on</strong> 10.0 projects<br />

Start by opening <strong>the</strong> cwcf72\demo<str<strong>on</strong>g>1588</str<strong>on</strong>g>_two_step_twrmcf54418.mcp project file in CW for CF 7.2 or <strong>the</strong><br />

cw10\demo<str<strong>on</strong>g>1588</str<strong>on</strong>g>_two_step_twrmcf54418\.project file in <strong>the</strong> CodeWarrior 10.0. Both CodeWarrior project<br />

c<strong>on</strong>tains basic three build targets:<br />

• PEBDM Ext Flash Release / OSBDM Ext Flash Release—<strong>the</strong>se targets allow <strong>on</strong>e to build<br />

applicati<strong>on</strong>s suitable for booting <strong>the</strong> system up from external NAND flash memory. After <strong>the</strong> reset<br />

<strong>the</strong> initializati<strong>on</strong> code of <strong>the</strong> applicati<strong>on</strong> loaded from NAND flash memory to SRAM. The<br />

initializati<strong>on</strong> code copies <strong>the</strong> rest of <strong>the</strong> applicati<strong>on</strong> to <strong>the</strong> SDRAM memory <str<strong>on</strong>g>an</str<strong>on</strong>g>d c<strong>on</strong>tinues<br />

executi<strong>on</strong> <strong>the</strong>re. Release targets are suitable for final applicati<strong>on</strong> deployment.<br />

• PEBDM Ext Flash Debug / OSBDM Ext Flash Debug—same as above, <strong>on</strong>ly <strong>the</strong> Debug-compiled<br />

libraries are used. This target is suitable for debugging before deployment. On boards without<br />

external memory, this is <strong>the</strong> <strong>on</strong>ly target suitable for debugging larger applicati<strong>on</strong>s.<br />

• PEBDM Ext Ram Debug / OSBDM Ext Ram Debug—solely for debugging purposes with code<br />

located in external RAM memory (available as SDRAM). Both code <str<strong>on</strong>g>an</str<strong>on</strong>g>d variables are located in<br />

this external memory. Applicati<strong>on</strong> executable is loaded to RAM automatically by <strong>the</strong> debugger.<br />

The applicati<strong>on</strong> requires Freescale MQX 3.6.2 (or later) <str<strong>on</strong>g>an</str<strong>on</strong>g>d TWR-MCF54418 Patch for Freescale<br />

MQX RTOS 3.6.2 to be installed <str<strong>on</strong>g>an</str<strong>on</strong>g>d rebuilt with compile-time c<strong>on</strong>figurati<strong>on</strong> opti<strong>on</strong>s as stated in<br />

Chapter 3 of <strong>the</strong> Freescale MQX <str<strong>on</strong>g>IEEE</str<strong>on</strong>g><str<strong>on</strong>g>1588</str<strong>on</strong>g> Communicati<strong>on</strong> Library User’s Guide.<br />

10<br />

<str<strong>on</strong>g>Implementing</str<strong>on</strong>g> <str<strong>on</strong>g>an</str<strong>on</strong>g> <str<strong>on</strong>g>IEEE</str<strong>on</strong>g> <str<strong>on</strong>g>1588</str<strong>on</strong>g> <str<strong>on</strong>g>V2</str<strong>on</strong>g> <str<strong>on</strong>g>Node</str<strong>on</strong>g> <strong>on</strong> <strong>the</strong> MCF5441X, Rev. 0<br />

Freescale Semic<strong>on</strong>ductor

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!