Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR1666: Bare Metal Programming on the Raspberry Pi (Part 3)

Hosted by Gabriel Evenfire on 2014-12-22 00:00:00
Download or Listen

This is the third episode in a series on bare metal programming on the Raspberry Pi. This episode rounds out my initial stab at doing a series on RPI embedded programming based on my summer vacation project. This episode discusses how to write code with an eye towards using it in an embedded environment. It continues with a discussion of how coprocessors fit into the ARM architecture. It also describes how to manage coprocessors programatically in a very hackerish way using self-modifying code. Finally, the episode describes how to enable the virtual memory subsystem in the ARM as well as the cache. It includes some performance measurements of my code both with and without the cache enabled.

Here is some of the source material that I reference in this episode. See the previous episode show notes for information on how to get your own bare metal Raspberry Pi setup up and running.

CATRPI

  • Homepage: https://gitorious.org/catrpi
  • Git repo: git://gitorious.org/catrpi/catrpi.git
  • My own repository of code that I wrote during this little project.

Hacker's Delight by Henry S. Warren Jr.

  • https://www.hackersdelight.org/
  • A fantastic book on low level computer mathematics. I find it a joy to read. I cannot recommend it highly enough. It belongs on anyone's shelf next to Knuth and other "programming bibles".

ARM ARM

ARM TRM

dwelch67's bare metal repository

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.