Hacker News new | past | comments | ask | show | jobs | submit login
LiteBSD is variant of 4.4BSD operating system for microcontrollers (github.com/sergev)
60 points by coderjames on Sept 11, 2016 | hide | past | favorite | 13 comments

There are many reasons why you don't want a general purpose OS for a microcontroller:

- Embedded systems are very price sensitive. if you're making it general purpose, you're wasting money.

- Embedded systems generally have some form of real-time requirements. General Purpose OSes are not suitable here.

- Time-Efficiency; don't waste cycles.

- Space-efficiency; don't waste memory.

- power-efficiency; be asleep as much as possible.

Simple schedulers such as FreeRTOS/RTX/ChibiOS/etc/etc/etc are much more suitable, but better just to implement a nice simple super-loop. Primitive but efficient.

Not really for "microcontrollers" in general, more for top end chips.

I often wonder if there is a nice super portable OS for your more "average" microcontroller, something in the ballpark of 16bit, 32k program space, and 2k of RAM. Also an alternative to C for something in that ballpark would be fantastic.

A general-purpose operating system really seems inappropriate for 2kB of RAM. In that space I think it's all custom applications doing very specific things.

There are alternatives to C, people just need to search for them.



With support for all really tiny CPUs out there. The language runtime does the OS role.

Just one possible example, there are other vendors.

Maybe NuttX? http://www.nuttx.org

Contiki ?


This doesn't provide any hardware abstraction, you rely on vendor libraries for portability.

2k? and alternative to C? Use forth or stick with assembly.

"TinyOS". It's on Github.

There's also retrobsd - http://retrobsd.org/wiki/doku.php

Applications are open for YC Summer 2021

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact