mips32_pracc: jump to 0xff20.0200 if cpu reads wrong addr
[openocd.git] / testing / examples / cortex / test.c
blob8a57956f26aa2905735aabbc8b6b8cd3651b1699
1 /* simple app.
3 modify test.ld to change address.
5 Even if the app is position independent, the symbols
6 need to match to test basic debugging.
8 To load the app to 0x20000000 in GDB, use:
10 load a.out
11 monitor reg sp 0x20004000
12 monitor reg pc 0x20002000
13 stepi
15 arm-elf-gcc -mthumb -mcpu = cortex-m3 -nostdlib -Ttest.ld test.c
19 int j;
20 void _start()
22 int i;
23 for (i = 0; i < 1000; i++)
25 j++;