hpr1630 :: Bare Metal Programming on the Raspberry Pi (Part 2)
This episode discusses interrupt handling, and program loading using the Xmodem protocol
Hosted by Gabriel Evenfire on Friday 2014-10-31 is flagged as Clean and is released under a CC-BY-SA license.
Tags: programming, embedded systems, raspberry pi.
Listen in ogg, spx, or mp3 format. | Comments (3)
Part of the series: Programming 101
A series focusing on concepts and the basics of programming
The second episode in a series on bare metal programming on the Raspberry Pi. This episode builds on part 1 by showing how interrupts work on the RPIs ARM chip and the framework I created to manage them. It then goes on to describe how an interrupt-enabled serial driver works. From there, the episode shows how we can use the serial cable in conjunction with a loader program to enable us to load bare-metal programs onto the RPI without having to copy them to the SD card each time. In the process, the episode describes the XMODEM protocol that the loader users for the file transfer process.
Here is some of the source material that I used while working on this little learning experience.
- dwelch67's bare metal repository
- The best guide I know on this topic. Very thorough and what I used as my starting point.
- 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.
- XMODEM Protocol
- Says YMODEM but also includes specification for XMODEM.
- Adafruit USB to TTL cable
- Script to build the ARM toolchain
- ARM ARM
- Contains the ARM assembly language as well as chip architecture overview.
- You'll need the ARM 11 Architecture Reference Manual
- ARM TRM
- Contains info about the specific SOC that the Raspberry PI uses
- RPI Schematics
- Shows how the Raspberry Pi is wired up
- RPI Peripherals
- Describes functionality and programming model for the various Raspberry Pi peripherals.
Automatically generated using whisper
<< First, < Previous, Next >, Latest >>
whisper --model tiny --language en hpr1630.wav