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:07] – [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 77: Line 81:
   arm-none-eabi-gcc -mthumb -march=armv7 -mfix-cortex-m3-ldrd -T lm3s6965.ld main.c reset.S syscalls.c -o main   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.1315904856.txt.gz
  • Last modified: 15 years ago
  • by admin