Download Beginners Guide to Porting NETMF
Transcript
Beginners guide to C# and .NET Micro Framework Table of Contents 1.Change Log........................................................3 2.About the Book..................................................4 2.1.Intended Audience.....................................4 2.2.Translating the Book..................................4 3.Introduction.......................................................5 3.1.Advantages.................................................5 4.Porting vs GHI's Offers.....................................6 4.1.Features......................................................6 4.2.Support.......................................................6 4.3.Maintenance...............................................6 4.4.Robustness.................................................6 4.5.Time-to-Market..........................................7 5.Selecting a GHI Device.....................................8 5.1.ChipworkX Module...................................8 5.2.EMX Module.............................................9 5.3.USBizi Chipset..........................................9 5.4.FEZ Family..............................................10 FEZ Domino and FEZ Mini......................10 FEZ Cobra.................................................12 Other Devices............................................13 6.Supported Processors.......................................14 6.1.Bootstrap..................................................14 6.2.Peripheral Drivers....................................15 7.DIY NETMF Hardware...................................16 Find a suitable Processor/Board................16 Select a PCB Design Software..................16 Finding Component Packages...................16 PCB Layout...............................................16 Ordering the board....................................17 Soldering...................................................18 Loading Software......................................18 FEZ Hacker vs FEZ Panda........................18 7.1.Taking DYI to the Next Level.................19 8.Software Setup.................................................20 8.1.Visual Studio Express..............................20 Copyright © 2010 GHI Electronics, LLC 8.2.Microsoft NETMF SDK..........................20 8.3.GHI NETMF SDK...................................20 8.4.Microsoft NETMF Porting Kit................20 8.5.GNU GCC Compiler...............................21 9.The PK Build System......................................22 9.1.Output Folder...........................................24 10.FEZ Hacker Firmware...................................26 10.1.Building Steps........................................26 Build TinyBooterDecompressor...............26 10.2.SAM-BA................................................28 10.3.MFDeploy..............................................32 11.Hardware Setup.............................................35 11.1.USBizi Firmware...................................35 11.2.Adding RS232........................................35 11.3.Using FEZ Panda...................................35 11.4.Erasing FEZ Panda................................36 11.5.Loading Test Application......................36 12.Solution Wizard.............................................38 13.Memory Layout.............................................41 14.Bootstrap........................................................42 14.1.Bootstrap Debugging.............................42 15.NativeSample.................................................43 15.1.Blink LED..............................................43 15.2.Debug Messages....................................43 16.Booting Firmware..........................................44 16.1.Bootup Messages...................................44 16.2.MFDeploy Ping......................................44 17.Managed Applications...................................45 17.1.Block Storage.........................................45 18.Interops..........................................................46 18.1.PWM Interop.........................................46 19.Final Words...................................................47 19.1.Further Reading.....................................47 19.2.Disclaimer..............................................47 Page 2/47