NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...1 min read

Show HN: TinyOS – A minimalist RTOS for Cortex-M written in C

Share
NOW LET US Article – Show HN: TinyOS – A minimalist RTOS for Cortex-M written in C

TinyOS is an ultra-lightweight real-time operating system designed for resource-constrained IoT devices, featuring a kernel footprint under 10 KB and full support for modern networking protocols.

An ultra-lightweight real-time operating system for resource-constrained IoT and embedded devices.

Kernel footprint under 10 KB, 2 KB minimum RAM, preemptive priority-based scheduling.

| Category | Details | |---|---| | Kernel | Preemptive priority-based scheduling (256 levels), round-robin within same priority, O(1) priority lookup via bitmap, priority inheritance | | Synchronization | Mutex (with priority inheritance), semaphore, condition variable, event groups, message queues | | Software Timers | One-shot and auto-reload, millisecond precision, period change at runtime | | Memory | Fixed-block pool allocator, stack overflow detection, per-task high-water mark | | Shell | VT100 interactive shell — 19 built-in commands, command history (↑↓), tab completion, full line editor | | File System | Lightweight block-device FS, POSIX-like API, wear levelling, power-fail safe | | Network | Ethernet, IPv4, ICMP, UDP, TCP, HTTP client/server, DNS | | TLS / DTLS | TLS 1.2/1.3 over TCP, DTLS 1.2 over UDP (mbedTLS backend) | | MQTT | Full MQTT 3.1.1 — QoS 0/1/2 with in-flight retry table, offline queue, auto-reconnect with exponential back-off | | CoAP | RFC 7252 compliant client/server, observe pattern | | OTA | A/B partition firmware updates, CRC32 verification, rollback | | Watchdog | Hardware and software watchdog, per-task timeout monitoring | | Power | Idle / Sleep / Deep-sleep modes, tickless idle, CPU frequency scaling | | Security | MPU-based memory protection, secure boot support |

| Architecture | Examples | |---|---| | ARM Cortex-M (M0/M0+/M3/M4/M7) | STM32, nRF52, Raspberry Pi Pico | | RISC-V (RV32I) | ESP32-C3 | | AVR (experimental) | ATmega |

Prerequisites: gcc-arm-none-eabi

make example-blink # LED blink
make example-shell # Interactive shell over UART
make example-mqtt # MQTT publish/subscribe
make example-iot # Multi-sensor IoT node
make size # Binary size report

Minimal task example:

#include "tinyos.h"
void my_task(void *param) {
while (1) {
/* work */
os_task_delay_ms(100);
}
}
int main(void) {
tcb_t task;
os_init();
os_task_create(&task, "my_task", my_task, NULL, PRIORITY_NORMAL);
os_start();
}
© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – Treating pancreatic tumours may have revealed cancer's master switch

dev-tools

Treating pancreatic tumours may have revealed cancer's master switch

A promising new drug called daraxonrasib has shown breakthrough results in treating pancreatic cancer, doubling median survival times. This achievement could pave the way for an entirely new class of cancer treatments.

NOW LET US Related – Leaving Mozilla

dev-tools

Leaving Mozilla

A poignant and candid reflection from a 15-year Mozilla veteran upon their departure. The author highlights the leadership's missteps in trying to emulate tech giants and urges Mozilla to return to its core values: community and uniqueness.

NOW LET US Related – Shepherd's Dog: A Game by the Most Dangerous AI Model

dev-tools

Shepherd's Dog: A Game by the Most Dangerous AI Model

A developer tested Anthropic's latest, supposedly 'too dangerous' AI model by asking it to build a long-held game idea in a single shot. The model succeeded, generating a complete 2,319-line game after a 45-minute reasoning session.

NOW LET US Related – Open source AI must win

dev-tools

Open source AI must win

If artificial intelligence becomes a utility rented only from a few closed institutions, humanity loses its operational freedom. Open-source AI is a vital infrastructure for the future of our digital society.

NOW LET US Related – Statement on US government directive to suspend access to Fable 5 and Mythos 5

dev-tools

Statement on US government directive to suspend access to Fable 5 and Mythos 5

The US government has issued an export control directive forcing Anthropic to suspend all access to its Fable 5 and Mythos 5 models due to national security concerns, a move the AI safety startup strongly disputes.

NOW LET US Related – Electric motors with no rare earths

dev-tools

Electric motors with no rare earths

Renault Group is pioneering the development of electrically excited synchronous motors (EESM) that eliminate the need for rare earth magnets, reducing dependency on global monopolies while driving efficiency and sustainability.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.