.NET nanoFramework taps C# for embedded systems

.NET nanoFramework taps C# for embedded systems

Follow-up to .NET Micro Framework brings IoT, wearables and robotics development to .NET developers and Visual Studio

Credit: Dreamstime

A .NET Foundation open source project has emerged for using C# to write embedded applications, letting developers leverage familiar Microsoft technologies to build software for small devices.

Called the .NET nanoFramework, the project lets developers use the Visual Studio IDE and C# to write managed code applications for embedded systems without having to worry about the low-level intricacies of a microcontroller. The platform is suitable for projects ranging from IoT sensors and wearables to robotics and industrial equipment.

The .NET nanoFramework includes a reduced version of the .NET Common Language Runtime and a subset of the .NET base class libraries as well as common APIs included in the Universal Windows Platform, enabling reuse of code from desktop applications, IoT Core applications, .NET code examples, and open source projects.

Specific features cited for .NET nanoFramework include runs on resource-constrained devices with as little as 256kB of flash and 64kB of RAM and runs directly on bare metal - at present, ARM Cortex-M and ESP32 devices are supported.

Other features include support for common embedded peripherals and interconnects such as GPIO, UART, SPI, I2C, and USB, in addition to native multithreading support and support for energy efficient operation such as devices running on batteries.

Delving deeper, Interop code support lets developers write libraries that have both managed (C#) and native code (C/C++), while inclusion of a mark-and-sweep garbage collector means there is no manual memory management, as well as execution constrains to catch device lock-ups and crashes.

.NET nanoFramework picks up where .NET Micro Framework for embedded application development left off and uses some of its building blocks, the project developers said. Many components were completely rewritten, others improved, and others reused.

Most core team members and contributors to .NET nanoFramework are embedded systems enthusiasts, according to the project’s GitHub repo.

Follow Us

Join the newsletter!


Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags open sourceMicrosoftvisual studio



How MSPs can capitalise on integrating AI into existing services

How MSPs can capitalise on integrating AI into existing services

​Given the pace of change, scale of digitalisation and evolution of generative AI, partners must get ahead of the trends to capture the best use of innovative AI solutions to develop new service opportunities. For MSPs, integrating AI capabilities into existing service portfolios can unlock enhancements in key areas including managed hosting, cloud computing and data centre management. This exclusive Reseller News roundtable in association with rhipe, a Crayon company and VMware, focused on how partners can integrate generative AI solutions into existing service offerings and unlocking new revenue streams.

How MSPs can capitalise on integrating AI into existing services
Access4 holds inaugural A/NZ Annual Conference

Access4 holds inaugural A/NZ Annual Conference

​Access4 held its inaugural Annual Conference in Port Douglass, Queensland, for Australia and New Zealand from 9-11 October, hosting partners from across the region with presentations on Access4 product updates, its 2023 Partner of the Year awards and more.

Access4 holds inaugural A/NZ Annual Conference
Show Comments