Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| building [2011/09/05 10:20] – [Using Newlib] admin | building [2018/11/26 09:48] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |||
| + | ====== ARM GCC ====== | ||
| + | |||
| + | https:// | ||
| ====== Different build options ====== | ====== Different build options ====== | ||
| Line 64: | Line 68: | ||
| arm-none-eabi-gcc -mcpu=cortex-a8 -I ~/ | arm-none-eabi-gcc -mcpu=cortex-a8 -I ~/ | ||
| + | arm-none-eabi-gcc -mcpu=cortex-a8 -I ~/ | ||
| arm-none-eabi-as -mcpu=cortex-a8 | arm-none-eabi-as -mcpu=cortex-a8 | ||
| - | arm-none-eabi-gcc -nostdlib | + | |
| + | | ||
| + | arm-none-eabi-objcopy -O binary test test.bin | ||
| + | qemu-system-arm -M realview-pb-a8 -serial stdio -kernel test.bin | ||
| + | |||
| + | ==== Making use of CS3 ==== | ||
| + | |||
| + | The “arm-none-eabi” toolchain also contains a particular library that is linked by default in compiled programs, which is called CS3™: the CodeSourcery Common Startup Code Sequence. This library is associated with linker scripts for generic and specific platforms, chosen through a compiler switch: | ||
| + | |||
| + | arm-none-eabi-gcc -mthumb -march=armv7 -mfix-cortex-m3-ldrd -T lm3s6965.ld main.c reset.S syscalls.c -o main | ||
| + | CodeSourcery provides a standard linked script that needs to be modified for our specific Qemu simulated board .../ | ||
| + | arm-none-eabi-objcopy -O binary main main.bin | ||
| + | qemu-system-arm -M lm3s6965evb --kernel main.bin --serial stdio | ||
| ===== U-Boot with bare metal program ===== | ===== U-Boot with bare metal program ===== | ||