Debian Codegraph @

debian/samples/readme.txt

raw
1 Samples of GNU Tools for ARM Embedded Processors
2
3 * Directory structure *
4 samples/src - Sample source code and Makefile, each sub-dir is a case
5
6 * Build *
7 To run all samples, set arm-none-eabi-gcc in path, cd src and make test.
8
9 * Sample cases introduction *
10 ** minimum - A minimum skeleton to start a C program with limited features.
11 This case has a empty main. Code size built from it is only about 150 bytes,
12 since it has almost no "fat" for a Cortex-M C program.
13
14 ** semihost - Show how to use semihosting for file IO.
15 This case uses printf to output a string. Here printf is backup by
16 semihosting, which does the real print job to a host machine.
17
18 ** retarget - Show how to use retarget (UART) for standard IO.
19 This case uses printf to output a string. Here printf is backup by retarget.
20 There is a retarget.c showing which libc interfaces need overloading to
21 re-direct file IO operations to on-board devices (usually UART). This case
22 isn't complete, real board specific code need adding to make UART work.
23
24 ** fpout - Show how to print floating point.
25 This case uses printf to print floating point values. It also uses
26 semihosting.
27
28 ** fpin - Show how to input/output floating point.
29 This case uses sscanf to input floating point values. It also uses
30 semihosting.
31
32 ** qemu - Show how to build a Cortex-M bare-metal program running on qemu.
33 This case builds a simple application that can run on qemu for ARM. It uses
34 semihosting for file IO, which qemu supports.
35
36 ** cpp - How to setup a C++ project
37 This case builds a simple C++ application using memory allocator, integer IO
38 and global constructor/destructor.
39
40 ** multiram - How to use multiple RAM banks
41 This case works with system with two RAM banks.