# The Spark Gap - Episode 4

- Show: [The Spark Gap](https://hardwarepodcasts.com/podcast/the-spark-gap)
- Published: 2014-07-06
- Length: 26m
- Page: https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4
- Listen: https://thesparkgap.net/the-spark-gap-episode-4

## Summary

Corey and Carl debate the merits of using Real-Time Operating Systems (RTOS) versus bare-metal firmware for single-core embedded systems. Carl argues that RTOS solutions like ChibiOS and FreeRTOS provide necessary abstraction for changing design requirements, efficient timer management, and interrupt handling, while Corey contends that bare-metal code offers lower latency, no licensing costs, and full control over platform-specific optimizations. They discuss specific RTOS implementations, licensing models like GPL, and the trade-offs between development time and hardware performance.

## Chapters

- [0:00](https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4#t=0) Introduction: The Great Debates Series
- [1:08](https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4#t=68) Corey's Argument: Latency and Single-Core Inefficiency
- [4:49](https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4#t=289) Carl's Rebuttal: Context Switching Speed and Hardware Headroom
- [8:27](https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4#t=507) Flexibility: Handling Changing Design Requirements with RTOS
- [12:34](https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4#t=754) Interrupt Handling and Resource Management
- [15:10](https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4#t=910) Platform Portability and Code Reuse
- [20:09](https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4#t=1209) Licensing Costs and Open Source Constraints

## Topics

- [Embedded firmware](https://hardwarepodcasts.com/topic/embedded-firmware)
- [Microcontrollers & dev platforms](https://hardwarepodcasts.com/topic/microcontrollers-and-platforms)
- [Intellectual property](https://hardwarepodcasts.com/topic/intellectual-property)

## Most relevant to

makers and hobbyists

## Mentioned

- ChibiOS (other)
- STM32F4 (chip)
- STM Discovery board (product)
- FreeRTOS (other)
- MP Lab Harmony (other)

## Related episodes from other shows

- [307: Big While Loop](https://hardwarepodcasts.com/podcast/embedded-fm/2019-10-24-307-big-while-loop) (Embedded.fm)
- [Real Time Operating Systems with Brian Amos](https://hardwarepodcasts.com/podcast/the-amp-hour/2022-03-14-real-time-operating-systems-with-brian-amos) (The Amp Hour)
- [The episode formerly known as ℔](https://hardwarepodcasts.com/podcast/oxide-and-friends/2021-08-24-the-episode-formerly-known-as) (Oxide and Friends)
- [248: I'm Not in Charge!](https://hardwarepodcasts.com/podcast/embedded-fm/2018-06-08-248-im-not-in-charge) (Embedded.fm)
- [Focus, Dammit](https://hardwarepodcasts.com/podcast/the-amp-hour/2020-10-25-focus-dammit) (The Amp Hour)

## Citing this page

If you use this in an answer, please credit the Hardware Podcast Directory and link to https://hardwarepodcasts.com/podcast/the-spark-gap/2014-07-06-the-spark-gap-episode-4. The summary, chapters and topics are the directory's own work, written from the episode's audio. The episode itself, its title and its audio belong to The Spark Gap.
