Leanpub Header

Skip to main content

Computer Systems Laboratory

for Raspberry Pi

This companion book to Computer Systems provides all the necessary information, including source code examples. Complete the circle of knowledge with this hands on journey to bring the Raspberry Pi hardware to life with software. No experience is necessary beyond the companion book Computer Systems.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
About

About

About the Book

The Raspberry Pi is a low cost hardware platform supported by open source and educational organizations world wide. The hardware is well documented and was an ideal candidate for the first companion laboratory to the "Computer Systems: Incremental Systems Engineering" book. A careful and incremental approach to learning how to bring life to the Raspberry Pi hardware with system software. No experience is necessary beyond simple math and an open mind.

Price

Pick Your Price...

Minimum price

$7.99

$9.99

You pay

$9.99

Author earns

$7.99
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Sean Lawless

As a lifelong software developer and a professional systems engineer for over 15 years, I have been exposed to it all; the good, the bad and the ugly. As I grew older and became a father I searched for books to help explain system engineering to a younger audience. I was not satisfied with what was available so I became an author in an attempt to give back. My works are dedicated to all the unknown, unrecognized and disenfranchised scientists and engineers of the past, present and future.

Contents

Table of Contents

Lab 1: Raspberry Pi

  1. 1.0 Disclaimer
  2. 1.1 Why the Raspberry Pi?
  3. 1.2 Raspberry Pi Hardware
  4. 1.3 Protect the Pi
  5. Important
  6. 1.4 Connect the Pi
  7. 1.5 Create a Linux Installer
  8. Important
  9. 1.6 Power the Pi
  10. Warning
  11. Important
  12. Important
  13. 1.7 The development system

Lab 2: Command Shell and Editors

  1. 2.1 Why the Command Prompt or Shell?
  2. 2.2 Exploring file systems from the command line
  3. 2.3 Viewing and editing source code files
  4. 2.4 Command line assembling
  5. Important
  6. 2.5 Command line disassemble
  7. 2.6 Assembly language branch instructions
  8. 2.7 Integer variable roll overs

Lab 3: GCC Tool Chain for ARM

  1. 3.1 Why GNU C for the Raspberry Pi?
  2. 3.2 Create a cross compiled executable
  3. Information
  4. 3.3 Execute a binary on the Raspberry Pi
  5. Warning
  6. 3.4 Cross compiler development PC
  7. 3.5 Consistent cross compiler development
  8. 3.6 Compile and link executable for bare metal
  9. Information

Lab 4: GPIO and LED

  1. 4.1 Why the GPIO and LED?
  2. 4.2 Raspberry Pi memory map
  3. 4.3 Create/Edit board.h definitions file
  4. 4.4 Configuring the GPIO Pull up/down Enable register
  5. 4.5 Operating a GPIO with software on the RPi
  6. 4.6 Peripheral and GPIO sharing with Function Select
  7. Reminder
  8. 4.7 Turn on or off the LED
  9. 4.8 Blinking LED
  10. 4.9 GDB and OpenOCD
  11. Information
  12. 4.10 Wiring and Configuring JTAG
  13. Warning
  14. Information
  15. Reminder
  16. 4.11 Debugging with GDB

Lab 5: System Timers

  1. 5.1 Why is a timer important?
  2. 5.2 Configure board.h for Raspberry Pi timer
  3. 5.3 System Software Interface to LED
  4. 5.4 New application “errorcodes”
  5. 5.5 Using Make to create an executable binary
  6. 5.6 Complete 64 bit timer for RPi

Lab 6: UART Peripheral

  1. 6.1 Why the UART?
  2. 6.2 Raspberry Pi UART Register Address Map
  3. 6.3 Raspberry Pi UART Register Details
  4. 6.4 GPIO configuration for RPi UART
  5. 6.5 Command line application
  6. 6.6 USB to serial TTL connection
  7. Warning
  8. 6.6.1 Connect UART between two RPi’s
  9. Information
  10. 6.6.2 UART software for Linux development PC
  11. Important
  12. 6.6.3 Connect UART from RPi to PC
  13. Important
  14. 6.6.4 UART Software for Windows development PC
  15. 6.7 UART Troubleshooting

Lab 7: Boot Loader

  1. 7.1 Why use a boot loader on Raspberry Pi?
  2. 7.2 Configure the Boot Loader
  3. 7.3 Xmodem shell command
  4. 7.4 Run and quit shell commands
  5. 7.5 Xmodem through the development PC
  6. 7.6 Editing files and Building software with Geany
  7. 7.7 Cleaning up the RPi Boot Loader

Lab 8: Periodically Executed Task Scheduler

  1. 8.1 Why an OS?
  2. 8.2 Speed up LED blink during shell command
  3. 8.3 Periodically executed Xmodem protocol
  4. 8.4 Comparing Source Code
  5. 8.5 Dynamic tasks

Lab 9: Video Screen

  1. 9.1 Why a Video Screen?
  2. 9.2 Mail Box Interface
  3. 9.3 Property Tags
  4. 9.4 Multiple Property Tags
  5. 9.5 Framebuffer
  6. 9.7 Screen

Lab 10: Video Console

  1. 10.1 Why a Video Console?
  2. 10.2 Font Map
  3. 10.3 Color conversion
  4. 10.4 Binary Images

Lab 11: Virtual Worlds

  1. 11.1 Virtual World Design Overview
  2. 11.2 Game Layout
  3. 11.3 Virtual World Discovery
  4. 11.4 Creatures and Items
  5. 11.5 Game Randomness
  6. 11.6 Player Movement
  7. 11.7 Experience and Levels

Chapter 12: Players and Creatures

  1. 12.0 Learning Through Code Review
  2. 12.1 Creature Movement
  3. 12.2 Player and Creature Actions
  4. 12.3 Damage and Defeated Creatures
  5. 12.4 Sprite Behavior
  6. 12.5 Sprite Actions
  7. 12.6 Game Flow
  8. 12.7 Sprite Randomness
  9. 12.8 Game Rounds

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub