.NET Micro Framework
The .NET Micro Framework (NETMF) is a .NET Framework platform for resource-constrained devices with at least 256 KB of flash and 64 KB of random-access memory (RAM). It includes a small version of the .NET Common Language Runtime (CLR) and supports development in C#, Visual Basic .NET, and debugging (in an emulator or on hardware) using Microsoft Visual Studio. NETMF features a subset of the .NET base class libraries (about 70 classes with about 420 methods), an implementation of Windows Communication Foundation (WCF), a GUI framework loosely based on Windows Presentation Foundation (WPF), and a Web Services stack based on Simple Object Access Protocol (SOAP) and Web Services Description Language (WSDL). NETMF also features added libraries specific to embedded applications. It is free and open-source software released under Apache License 2.0.
|Developer(s)||Microsoft and .NET Foundation|
4.4 / October 20, 2015
|License||Apache License 2.0|
The Micro Framework aims to make embedded development easier, faster, and less costly by giving embedded developers access to the modern technologies and tools used by desktop application developers. Also, it allows desktop .NET developers to use their skills in embedded systems, enlarging the pool of qualified embedded developers.
The Micro Framework is part of the .NET Foundation. Announced at the Build 2014 conference, the foundation was created as an independent forum to foster open development and collaboration around the growing set of open-source technologies for .NET.
Relative to other .NET platforms, the unique features of the Micro Framework are:
- Memory needs of about 300 KB; in contrast, the next smallest .NET implementation, the .NET Compact Framework running on Windows CE, needs about 12 MB
- Can run directly on a bare machine with no operating system, or can run on an operating system (OS)
- Supports common embedded peripherals and interconnects, including flash memory, EEPROM, GPIO, I²C, Serial Peripheral Interface Bus (SPI), serial port, USB
- Optimized for energy-efficiency in battery-powered devices
- Needs no memory management unit
- Provides multithreading support even when running on single-threaded operating systems
- A hardware abstraction layer allows porting to other architectures
- A managed device driver model allows drivers for many devices to be written in C#
- Execution constraints to catch device lockups and crashes
- Transparent support for storing objects in non-volatile memory
Due to the constraints under which it operates, the Micro Framework does have some limits beyond those imposed by its slimmed-down libraries. For example, the platform does not support symmetric multiprocessing, multidimensional arrays, machine-dependent types, or unsafe instructions. The CLR is an interpreter rather than a just-in-time compiler, and uses a simpler mark-and-sweep garbage collector instead of a generational method. An ahead-of-time compiler is being developed using a modified LLVM compiler. Interoperation between managed and native code currently has several limitations. As of 2011, Micro Framework supported two .NET languages: C# and Visual Basic.
As of 2013, the .NET Micro Framework was supported on ARM architecture processors (including ARM7, ARM9, and Cortex-M) and has been supported on Analog Devices Blackfin in the past. The Porting Kit is now available along with the source code as a free download under the Apache License 2.0 at the Microsoft Download Center.
The Micro Framework has its roots in Microsoft's Smart Personal Objects Technology (SPOT) initiative and was used in MSN Direct products such as smart watches before being made available to third-party developers early in 2007. It is a common platform for Windows SideShow devices and has been adopted in other markets, such as energy management, healthcare, industrial automation, and sensor networks.
Microsoft allows developers to create applications using the Micro Framework without charge, and makes a software development kit (SDK) available for free download that can be used with all versions of Visual Studio, including the free Express editions.
In January 2010, Microsoft launched the netmf.com community development site to coordinate ongoing development of the core implementation with the open-source community.
On 9 January 2010, GHI Electronics announced FEZ Domino, the first member of the product line called FEZ (Freakin' Easy!), a combination of open-source hardware with a proprietary closed-source version of .NET Micro Framework.
On 3 August 2010, Secret Labs announced the Netduino, the first all-open-source electronics platform using the .NET Micro Framework.
In February 2011, Novell posted a preview of the Mono 2.12 C# compiler, the first open-source compiler for .NET Micro Framework.
On 23 January 2017, after numerous attempts ( and ) to revive .NET Microframework project and bring it to community governance and a period of work "in the dark", a group of embedded systems developers publicly announced .NET nanoFramework as spin-off of .NET Micro Framework. A major rework on the build system, an easier way of adding new targets, a modernized API following UWP, a Visual Studio extension with all the tools required for managing targets, full development experience from coding to debugging on the native code and support for ARM Cortex-M and ESP32 were the key differences at that time. On 12 October 2018 the first official release of the class libraries and firmware images was announced.
On 16 December 2016, GHI Electronics announced their own implementation of Micro Framework called TinyCLR OS, citing lack of maintenance of NETMF by Microsoft. On 7 July 2017 GHI announced 5th preview of TinyCLR OS. On 2 February 2018 GHI announced 8th preview of TinyCLR OS. On 5 April 2018 GHI announced 10th preview of TinyCLR OS.
Multiple vendors make chips, development kits, and more that run the Micro Framework.
Netduino by Wilderness LabsEdit
Netduino is an open-source electronics platform using the Micro Framework. Originally created by Secret Labs, but now[when?] manufactured and maintained by Wilderness Labs Inc. Based on 168Mhz Cortex-M4 (STM32F4) with up to 1,408 KB of code storage and 164 KB of RAM. On-board USB, Ethernet, Wifi, SD card slot. Development environment is MS Visual Studio and C#. Pin compatible with Arduino shields although drivers are required for some shields.
GHI Electronics makes several modules that support the Micro Framework:
- EMX Module
- ChipworkX Module
- USBizi144 Chipset and USBizi100, whose only difference is the lack of USB host support in the USBizi100
GHI Electronics also makes the .NET FEZ line of very small open-source hardware boards with proprietary firmware, targeted for beginners. They are based on the USBizi chipset and all its features. The FEZ Domino board offers USB host. Even though FEZ is for beginners, it's also a low-cost starting point for professionals wanting to explore NETMF. Some of these boards are physically compatible with the Arduino.
Mountaineer boards, part of the Mountaineer Group, make a small range of open-source open-hardware boards that make use of the Micro Framework. Mountaineer have ported the Micro Framework for use on the STM32 family of microcontrollers featured on their Mountaineer boards and elsewhere.
Netmfdevices is an open-source electronics platform using FEZHacker and .NET Micro Framework.
The Micromint Bambino 200 is the first multi-core processor SBC compatible with the .NET Gadgeteer framework. The model 200 is powered by an NXP LPC4330, the first dual-core ARM Cortex-M microcontroller. Its Cortex-M4 and Cortex-M0 cores are both capable of 204 MHz. It has 264 KB SRAM onboard and 4 MB of flash.The model 200E has all the same features as the model 200, and increased flash memory to 8 MB, 10 Gadgeteer sockets, an Ethernet port, microSD socket, and other features.
.NET Gadgeteer devicesEdit
Several manufacturers make boards and modules compatible with the .NET Gadgeteer rapid-prototyping standard for the framework.
The MikroBus.Net Quail is an STM32-powered development solution for building hardware prototypes with click boards and C# managed code. It brings together Mikroelectronika click boards and the Micro Framework for embedded devices (NETMF).
- ".NET Micro Framework 4.4 is now available!". Microsoft. Archived from the original on 2017-10-25. Retrieved 2018-12-09.
- ".NET Micro Framework". Microsoft.
- Malliet, Steve. "Is .Net MF being discontinued?". GitHub. Retrieved 2019-04-13.
- .NET Foundation
- "LLILUM roadmap and latest additions". Microsoft. Archived from the original on 2018-08-26. Retrieved 2016-06-30.
- .NET Micro Framework only supports C# and Visual Basic
- "NETMF4 SDK". Microsoft.
- "Microsoft to Open Source the .NET Micro Framework". Microsoft. Archived from the original on 2018-11-14. Retrieved 2017-02-06.
- "netmf.com". Archived from the original on 2012-07-05. Retrieved 2012-06-29.
- FEZ: open-source electronics boards with many open-source component drivers using .NET MF
- Netduino: open-source electronics platform using .NET MF
- Experimental Mono support for Mac/Linux
- "Manifest for .NETMF (the current state and the future we want for it)".
- "Future of .NETMF (take #999999)".
- "The name's Framework, nanoFramework".
- "nanoFramework v1.0 is official!".
- "Introducing TinyCLR OS: a new path for our NETMF devices". Archived from the original on 2017-07-28. Retrieved 2017-07-28.
- "Fifth Preview of TinyCLR OS Core Features and Porting". Archived from the original on 2017-07-28. Retrieved 2017-07-28.
- "TinyCLR OS Eighth Release: FEZ Hydra, Wi-Fi, and Cortex-M7". Archived from the original on 2018-03-09. Retrieved 2018-02-15.
- TinyCLR OS Tenth Release: Bugs, RTC, and STM32F7
- "Compatible Device Matrix". Archived from the original on 2010-12-23. Retrieved 2010-10-29.
- "Netduino: home". Wilderness Labs, Inc.
- "Catalog - Latest Products - GHI Electronics". GHI Electronics, LLC. Archived from the original on 2012-03-20. Retrieved 2011-02-20.
- "Catalog - Latest Products - GHI Electronics". Archived from the original on 2012-12-04. Retrieved 2011-02-20.
- "USBizi144 Chipset - GHI Electronics". GHI Electronics, LLC. Archived from the original on 2014-01-07. Retrieved 2011-02-20.
- "USBizi100 Chipset - GHI Electronics". GHI Electronics, LLC. Archived from the original on 2014-01-07. Retrieved 2011-02-20.
- "Catalog - Latest Products - GHI Electronics". Archived from the original on 2013-03-02. Retrieved 2011-02-20.
- "NETMF for STM32 - Mountaineer Group". Archived from the original on 2018-11-19.
- UM1676: Getting started with .Net Micro Framework on the STM32F429 Discovery kit
- Micromint Bambino 200
- MikroBus.Net Quail