Remove whitespace at end of lines, step 2.
[openocd.git] / testing / examples / cortex / test.c
1 /* simple app.
2
3 modify test.ld to change address.
4
5 Even if the app is position independent, the symbols
6 need to match to test basic debugging.
7
8 To load the app to 0x20000000 in GDB, use:
9
10 load a.out
11 monitor reg sp 0x20004000
12 monitor reg pc 0x20002000
13 stepi
14
15 arm-elf-gcc -mthumb -mcpu = cortex-m3 -nostdlib -Ttest.ld test.c
16
17
18 */
19 int j;
20 void _start()
21 {
22 int i;
23 for (i = 0; i < 1000; i++)
24 {
25 j++;
26 }
27 }