Live data from Hacker News

Amazon FreeRTOS – IoT operating system for microcontrollers

aws.amazon.com

51–60 of 106 posts

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#51

Earlier quoted context omitted.

It's a nice present from Amazon. They should keep doing this, I'd like a MIT licensed QNX next please. God knows they have the money.

GPL would be fine too; I'd just like something that actually qualifies as FOSS, rather than something proprietary.

Baseline FreeRTOS was "GPL" but it had a silly clause prohibiting you from publishing benchmarks.

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#52
post #21

Earlier quoted context omitted.

Richard Barry, founder of FreeRTOS, has joined AWS as a principal engineer, and will continue to support Amazon FreeRTOS. WITTENSTEIN high integrity systems (WHIS) will continue to support and develop OPENRTOS and SAFERTOS, commercial implementations of FreeRTOS for projects that require certification or support. Richard released FreeRTOS in 2003, and had been working on FreeRTOS in partnership with WHIS since 2006,…

I do hope they'll keep maintaining it - I've been working with an ESP32 lately and the stuff Espressif has been able to build using FreeRTOS as a base is nothing short of incredible. $7 for wifi and bluetooth on a development board.

Agreed, the esp32 has blown me away with what it can do for a few dollars. I have a custom board with the esp-wroom-32 and the temperature sensor I'm using is more expensive than the esp32 module!

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#53

>Amazon FreeRTOS ... and extends it with software libraries that make it easy to securely connect your small, low-power devices to AWS cloud services why do IoT devices have to connect to the cloud? Is there any legitimate use case other than reporting data gathered on the customer? Why do have all these gadgets have to snoop on us?

Why do internet of things devices have to connect to the internet? Because that's the whole definition of them. Without an internet connection, it's just a thing.

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#54
post #23

What's the advantage of a RTOS?

People have listed other benefits such as timing guarantees, lack of general OS overhead, etc.

One of the things I like about an RTOS is the organization it gives to your code. It gives you primitives like tasks, queues, and semaphores and allows you to easily organize and synchronize independently running tasks. On something like Arduino where you just have a setup() and a loop() function, it can become a mess if you're trying to do many different things with different timing requirements.

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#56
post #29
post #25

Earlier quoted context omitted.

The advantage is that you can make claims about the maximum time it take to process something. Contrast that to Windows, macos, or Ubuntu that generally are zippy on new hardware, but sometimes the circle spins or the hourglass shows up and makes you wait, possibly for an outsized period of time for what is being processed.

To make any worthwhile claims you need the worst case execution time of your code. Even in the absence of multi-threading, technologies like caches or out-of-order execution can make this quite painful. The common solution seems to be: Don't care for some missed values (e.g. non-safety critical systems) or over provisioning (absence of budget pressure). -> A RTOS alone doesn't give you any reliable claims (but does m…

[deleted]

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#57
post #29

Earlier quoted context omitted.

To make any worthwhile claims you need the worst case execution time of your code. Even in the absence of multi-threading, technologies like caches or out-of-order execution can make this quite painful. The common solution seems to be: Don't care for some missed values (e.g. non-safety critical systems) or over provisioning (absence of budget pressure). -> A RTOS alone doesn't give you any reliable claims (but does m…

What I assume IncRnd is referring to is the deterministic behavior of an RTOS. Here is a good white paper from National Instruments: http://www.ni.com/white-paper/3938/en/

Thank you. That is a good explanation and is indeed what I meant.

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#58
post #47

My money is on Linux based RTOS platforms. It's a bit of a surprise that Amazon has backed a non-Linux horse in this race.

No existing Linux-based RTOS that I know of will run on a microcontroller. Not enough Flash for program memory or RAM for volatile storage. Can any useful Linux-based RTOS kernel fit into 1MB of non-volatile storage and use less than ~512KB RAM; would love to know of one if it exists!

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#59
post #47

My money is on Linux based RTOS platforms. It's a bit of a surprise that Amazon has backed a non-Linux horse in this race.

Linux is totally unsuitable for the vast majority of microcontroller tasks. It has way too much overhead, requires a 32-bit CPU with MMU (or a very slow emulator like Dmitry Grinberg made[1], but that takes 6 hours to boot.) Microcontrollers that FreeRTOS is used on are very often 8-bit or 16-bit jobs, and even the 32-bit ones often lack an MMU. Linux on a micro is like trying to go to the corner store to get beer in a C5 galaxy transport aircraft.

[1] http://dmitry.gr/index.php?r=05.Projects&proj=07.+Linux+on+8...

Re: Amazon FreeRTOS – IoT operating system for microcontrollers

#60
post #58
post #47

My money is on Linux based RTOS platforms. It's a bit of a surprise that Amazon has backed a non-Linux horse in this race.

No existing Linux-based RTOS that I know of will run on a microcontroller. Not enough Flash for program memory or RAM for volatile storage. Can any useful Linux-based RTOS kernel fit into 1MB of non-volatile storage and use less than ~512KB RAM; would love to know of one if it exists!

Replied as a sibling, and it certainly doesn't qualify as useful, but Dmitry Grinberg wrote an ARM emulator for AVR, soldered a SIMM to a board with an ATMEGA1284P and an SD card on an SPI bus connection, and got Linux to boot. The 24MHz clock rate is effectively reduced to about 6.5kHz, but it might be possible to find a use for such a device.
Post reply on HN