Guides
Guides:
All course materials are provided by Dr. Brian Fraser, School of Computing Science, SFU
These guides will walk you through the steps needed to get up and running for each topic. If (when!) things go wrong, see the troubleshooting steps at the end of most sections. Suggested C style guide.
Updated Guides (2023)
These guides have been updated for this offering of the course.
- [NEW] BeagleBone Green Docs
- BBG pin info for P8 Header (top) and P9 Header (bottom)
- BBG System Resource Manual
- BBG Schematic
- Guides for the first week - Getting up and running!
- Reflash your BBG: How to wipe your board and install a new software image to your BBG (wiping everything). Only do this if you want to upgrade to a new version or wipe your board!
- Case Assembly Guide for AdaFruit plate: How to put together the BeagleBone, Zen, and Ada Fruit mounting plate
- Quick-Start Guide: How to setup the build environment and download code to the BeagleBone
- Networking Guide: How to get an Ethernet connection between the BeagleBone and the host PC
- NFS Guide: How to setup the NFS server and connect to it from the target
- Guides for Assignment 1
- LED Guide: How to control the LEDs via the terminal and C
- GPIO Guide: How to control read/write to GPIO pins via the file system and C
- Sample C program for edge triggered GPIO; however, non-edge triggered GPIO (such as described in GPIO guide and assignment) may be easier to implement and debug; use this code only if you want edge-triggered.
- Guides for Assignment 2
- Debugging Guide: GDB Server, Cross-GDB, Cross-debugging with VS Code or Eclipse, and Valgrind.
- A2D (Analog) Guide: Covers reading a voltage via the Linux command line, and via C code, and 2-axis joysticks
- Sample C program: potDriver.c
- Light Sensor (photoresistor) video by Dr. Brian.
- Guide on using I2C to drive 8x8 LED Matrix (or Zen Cape's 2-digit 14-seg display)
- Sample C program: segDisplay.c & i2c_commands.sh
- See GPIO guide from As1 for button.
- Videos
GDB Cross Debugging
GDB Cross Debugging seg faults
Graphical cross debugging with Eclipse
- Guides for Assignment 3
- USB Audio Adapter Guide covering PCM audio output via ALSA in C
- wave_player: Sample C application for PCM audio output via ALSA. Includes template of an audio mixer for mixing real-time PCM sounds into one output stream
- Drum sounds suitable for creating a drum beat. From Freesound.org, by "menegass", used under Creative Commons license
- Zen Cape Audio Guide covering the Zen cape and PCM audio output via ALSA in C
- USB Audio Adapter Guide covering PCM audio output via ALSA in C
- Guides for Assignment 4