Group: Hardware/Components/Microcontrollers

From LibrePlanet
Jump to: navigation, search

Introduction

This page is meant for information on how what Microcontrollers are supported by free software.

What is a Microcontroller

A Microcontroller is a chip with a processor and many hardware peripherals inside (like a SD card controller, an USB bus controller, Ethernet controller, etc).

Differences with SOCs (System On a Chip)

The difference between Microcontrollers and SOC(s) (System(s) On a Chip) is fuzzy. So here we will define it as follows:

  • A SOC (System On a Chip) should be able to run GNU/Linux or an operating systems of similar complexity.
  • A SOC (System On a Chip) should have an MMU (Memory Management Unit). This is not strictly required for running GNU/Linux but many applications do expect an MMU. Microcontrollers can also have MMUs (Memory Management Units).

Hardware designs freedom

For an introduction on hardware design freedom, see the Free Hardware and Free Hardware Designs article.

Comparison

Vendor Product Programming languages Assembly / ISA Emulators Debuggers Loaders Datasheet Availability HDL code
Microchip ATmega328P
  • C, C++ via avr-gcc which is widely packaged.
  • AVR 8bit
  • QEMU can emulate the Arduino Uno with an ATmega328P.
  • Avrdude if there is an ISP connection.
Public, but not available under a free license
  • Present in many PCBs.
Not available
SiFive Freedom E310 RISC-V RV32IMAC Under CC-NC-ND => Makes the chip almost unusable as commercial intent is not clearly defined in that license, so you may need to never do anything commercial (like design hardware to sell it) with the chip if you read that datasheet. This also discriminates against people that have a commercial intent.
Parallax Propeller P8X32A
  • (unmaintained?) GCC fork: C, others?
  • SPIN language interpreted in ROM. The openspin and spinsim packages are available in Guix.
  • PASM
  • propeller-load or zerocat-loader can load code in RAM through the serial port and execute it.
Public, but not available under a free license
  • Present in the Zerocat Chipflasher.
  • Can be bought in the Zerocat shop (so without nonfree JavaScript, etc).
GPLv3, can work on Altera FPGAs but require nonfree Altera tools.
Raven PicoRV32 CPU (RISCV) The chip tape out was made as a test => Not sure if we can buy chips.
  • Depends on a nonfree PDK that requires NDA[1]

References

See also