Skip to content
项目

关于

Raspberry Pi 裸机 C 语言编程教程

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Raspberry-Pi Bare Metal Tutorial

Build Status Markdown Status

This repository contains the code for the Raspberry-Pi bare-metal programming in C series. The home of the tutorial and all of the articles relating to the code is at valvers.com and github

The tutorial supports all RPi models, except:

  • rpi3 (rpi3B+ is supported) because the ACT LED is not connected to an IO pin

The tutorial only supports a Linux host for compiling the tutorial code.

Quickstart

git clone [email protected]:BrianSidebotham/arm-tutorial-rpi.git
cd arm-tutorial-rpi

In order to use the tutorial-supplied compiler:

compiler/get_compiler.sh

Get the RPI Firmware that will be required for compiled SD Card images:

firmware/get_firmware_repo.sh

NOTE: This tutorial also used to be tested on Windows, but as I don't have any Windows installs available any more, or indeed the time available to test everything under Windows it's dropped off the list.

Get reading the tutorial. Have fun, and remember to experiment!

Dependencies

The tutorial has a few dependencies which you might want to install before you get started:

  • cmake (Used for configuring Makefiles)
  • mtools (Tools for dealing with file-based FAT32 systems)

Tutorial links (Github)

Step01 - Getting Started

Step02 - C Runtime

Step03 - Introducing CMake

Step04 - Interrupts

Step05 - Graphics(Basic)

Interesting Links

Original Cambridge Tutorial that inspired this tutorial series.

ARM Instruction Reference

Circle C++ Bare Metal Environment for RPI

Newlib C-Library documentation

探索相关项目

加载中…