TinyCLR OS Introduction
TinyCLR OS is our take on the .NET Micro Framework to enable managed .NET development using Microsoft's Visual Studio on embedded devices -- including debugging! All you need to get started is Visual Studio, a TinyCLR device, and a USB cable. Keep in mind that it is still an alpha so there is still a lot more to come.
TinyCLR OS is made for .NET developers. Threading, memory management, timers, event handlers, and many more exist in TinyCLR OS just like they do on full .NET. For interacting with hardware, TinyCLR OS has an API similar to the Windows 10 IoT Core Extensions API you may already be familiar with. GPIO, UART, SPI, I2C, ADC, DAC, PWM, and more are all available for you to interact with the embedded world.
Better yet, all libraries are available through NuGet. Because of this, there will be no SDK to install or machines to lock to specific versions. Simply use NuGet to download any needed version of any needed library on a per-project basis.
- If you don't already have Visual Studio 2017, download and install the freely available Visual Studio Community 2017.
- Download and install the TinyCLR OS Visual Studio extension.
- Connect your device to your PC using a USB cable. Don't have a TinyCLR OS device yet? Take a look at the FEZ: the board made for TinyCLR OS.
- Start Visual Studio and create a new
C# > TinyCLR. New to Visual Studio or C#? Take a look at the getting started guide from Microsoft.
- Add some code and press
F5to deploy and begin debugging your application!
- Since TinyCLR OS is still so new, we haven't yet uploaded any packages to NuGet, so make sure to download the available libraries, extract the archive, and place them in a local NuGet feed.
- If you need to update the firmware on your device, download the firmware and follow the instructions to update your device.
If you're an existing user of NETMF and still want to use it in addition to TinyCLR OS, don't worry. TinyCLR OS is completely independent of NETMF and works side-by-side with no issues or changes required.
TinyCLR OS is still very new and there is a lot more we have planned for it so some libraries and functionality may be missing. Take a look at the release notes to see what's new and roadmap to see what we have planned.
Interested in running TinyCLR OS on your own device? Take a look at the porting guide for information on how to get started.