User:Mrvn/Raspberry Pi 2

From OSDev Wiki
Jump to: navigation, search

Contents

Notes about the Raspberry Pi 2

Toolchain

I'm using binutils-arm-none-eabi and gcc-arm-none-eabi packages from Debian sid, which includes support for a ton of systems. For RPi2 the following options are fitting:

--------------------------------------------------------------------
| ARM Core | Command Line Options                       | multilib |
|----------|--------------------------------------------|----------|
|Cortex-A* | [-mthumb] -march=armv7-a -mfloat-abi=hard  | armv7-ar |
|(Hard FP) | -mfpu=vfpv3-d16                            | /thumb   |
|          |                                            | /fpu     |
--------------------------------------------------------------------

Specs

official Cortex A7 docs

PERIPHERAL_BASE = $3F000000 ; Peripheral Base Address (used to be $20000000 on RPi)

LED on GPIO pin 47 (used to be 16 and on/off reversed)


Forums

raspberrypi.org forum

Examples

Mandelbrot fractal example

Personal tools
Namespaces
Variants
Actions
Navigation
About
Toolbox