building

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
building [2011/09/13 09:06] – [Making use of CS3] adminbuilding [2018/11/26 09:48] (current) admin
Line 1: Line 1:
 +
 +====== ARM GCC ======
 +
 +https://www.mikrocontroller.net/articles/ARM_GCC
  
 ====== Different build options ====== ====== Different build options ======
Line 75: Line 79:
 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: 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:
  
--mthumb -march=armv7 -mfix-cortex-m3-ldrd +  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 .../Sourcery_G++_Lite/arm-none-eabi/lib/thumb2/generic-m.ld. In addition to that, we need to write the reset code and the syscalls.c function as previously done.
  
 +  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 =====
  
  • building.1315904803.txt.gz
  • Last modified: 15 years ago
  • by admin