Apache Mynewt
Apache Mynewt is a modular real-time operating system for connected Internet of things devices that must operate for long times under power, memory, and storage constraints. It is free and open-source software incubating under the Apache Software Foundation, with source code distributed under the Apache License 2.0, a permissive license that is conducive to commercial adoption of open-source software.
Overview
Apache Mynewt is a real-time operating system with a rich set of libraries intended to make prototyping, deploying, and managing 32-bit microcontroller based IoT devices easy. It is highly composable, to allow building embedded system applications across different types of microcontrollers. The name Mynewt is wordplay on the English word minute, meaning very small: the kernel is only 6 KB in size.The OS is designed for connectivity, and comes with a full implementation of the Bluetooth low energy 4.2 stack. With the addition of BLE and various utilities such as the default file system, console, shell, logs, stats, etc., the image size is approximately 96 KB for the Nordic nRF51822 Bluetooth SoC. This size metric excludes the boot loader image.
Core features
The core operating system supports:ChibiOS/RT|- Preemptive multithreading
- Tickless priority based scheduling
- Programmable timers
- System time
- Semaphores
- Mutexes
- Event queues
- Memory management : dynamic and pool
- Multi-stage software watchdog timer
- Memory or data buffers, to hold packet data as it moves up and down the networking protocol stack
- Hardware abstraction layer with support for CPU time, analog-to-digital converter, digital-to-analog converter, general-purpose input/output, Inter-Integrated Circuit, pulse-width modulation, serial port, Serial Peripheral Interface Bus, universal asynchronous receiver/transmitter.
- Newtron flash file system with minimal RAM usage and reliability features
- File system abstraction to allow client code to choose alternate file systems
- Console access and shell package
- Secure boot loader and image organizer that includes image integrity verification using SHA-256 and optional digital signature verification of images before running them
- Test utilities to build regression testing
- Statistics and logs for all major packages
- JavaScript Object Notation encoder and decoder libraries
- Lua interpreter
Bluetooth low energy
The first network stack available in Mynewt is Bluetooth low energy and is called NimBLE. It complies with Bluetooth Core Specification 5.0.NimBLE includes both the host and controller components. Access to the controller source code makes the BLE performance highly configurable. For example, the BLE throughput can be adjusted by changing the connection intervals, data packet size, packet queue size etc. A use case requiring a large number of concurrent connections can similarly be configured, provided there is adequate RAM allocated. Example applications that demonstrate how to use available services are included in the package.
Supported boards
The operating system is designed for cross-platform use in embedded systems and microcontrollers. It includes board support packages for the following, as of 2023:- nRF52 DK from Nordic Semiconductor
- RuuviTag Sensor beacon platform
- nRF51 DK from Nordic Semiconductor
- VBLUno51 from VNG IoT Lab
- VBLUno52 from VNG IoT Lab
- BLE Nano from RedBear
- BLE Nano2 and Blend2 from RedBear
- BMD-300-EVAL-ES from Rigado
- BMD-200 from Rigado
- Adafruit Feather nRF52 Pro
- STM32F4DISCOVERY from ST Micro
- STM32-E407 from Olimex
- Arduino Zero
- Arduino Zero Pro
- Arduino M0 Pro
- Arduino MKR1000
- Arduino Primo NRF52
- NUCLEO-F401RE
- NUCLEO-F767ZI
- Discovery kit for STM32F7 Series
- FRDM-K64F from NXP
- BBC micro:bit
- SiFive HiFive1
- NINA-B1 BLE module from u-blox
- 6LoWPAN clicker from MikroElectronika
- chipKIT Wi-FIRE
- Creator Ci40 module
- EE-02 board with Semtech Sx1276 chip from Telenor
- DA1469x Pro DK from Dialog Semiconductor