Difference between revisions of "Stellaris Luminary Lm3s6965"

From air
Jump to navigation Jump to search
Line 28: Line 28:
   
   
  +
=== qemu ===
  +
  +
Les fichiers test-cortex-m3.c, startup_gcc.c et lm3s.ld utilisé ci-aprés sont disponible dans l'archive: [[File:Test-cortex-m3.tar]]
  +
  +
  +
Construction de l'exécutable
  +
  +
arm-none-eabi-gcc -c -mcpu=cortex-m3 -mthumb test-cortex-m3.c -o test-cortex-m3.o
  +
arm-none-eabi-gcc -c -mcpu=cortex-m3 -mthumb startup_gcc.c -o startup_gcc.o
  +
arm-none-eabi-ld -T lm3s.ld startup_gcc.o test-cortex-m3.o -o test-cortex-m3.elf
  +
arm-none-eabi-nm test-cortex-m3.elf
  +
  +
Juste de pour voir le code déassemblé
  +
arm-none-eabi-objdump -d test-cortex-m3.elf
  +
  +
Il faut une version binaire simple à charger et non la version trop riche
  +
arm-none-eabi-objcopy -O binary test-cortex-m3.elf test-cortex-m3.bin
  +
  +
  +
Lancement de l'émulation avec qemu
  +
./qemu-0.13.0/arm-softmmu/qemu-system-arm -M lm3s6965evb -nographic -kernel test-cortex-m3.bin
  +
Hello world!
  +
QEMU 0.13.0 monitor - type 'help' for more information
  +
(qemu) quit
   
 
== FAQ ==
 
== FAQ ==

Revision as of 22:56, 19 January 2011

N'hésitez pas à enrichir cette page

Stellaris Luminary Lm3s6965

Ce kit est contruit autour d'un microcontrolleur ARM Cortex-M3 lm36965 de marque Luminary Micro appartenant au groupe Texas Instrument.

Les principales caratéristiques et intérêt de ce kit sont:

  • Processeur ARM 32bit Cortex-M3
  • Port Ethernet
  • Ecran OLED monochrome 128 x 64 pixels (16 niveaux)
  • Un bon support d'OpenOCD
  • Support de eLua (port du langage de script Lua)


Ressources

  • LM3S6965: Tips & Tricks / OpenOCD : [1]
  • Building toolchain and OpenOCD for Stellaris on Linux : [2]
  • Test qemu + arm + gdb + ld ... :[3]
  • ARM Projets divers : [4]

Exemples d'utilisation

qemu

Les fichiers test-cortex-m3.c, startup_gcc.c et lm3s.ld utilisé ci-aprés sont disponible dans l'archive: File:Test-cortex-m3.tar


Construction de l'exécutable

arm-none-eabi-gcc -c -mcpu=cortex-m3 -mthumb test-cortex-m3.c -o test-cortex-m3.o
arm-none-eabi-gcc -c -mcpu=cortex-m3 -mthumb startup_gcc.c -o startup_gcc.o
arm-none-eabi-ld -T lm3s.ld  startup_gcc.o test-cortex-m3.o -o test-cortex-m3.elf
arm-none-eabi-nm test-cortex-m3.elf

Juste de pour voir le code déassemblé

arm-none-eabi-objdump -d test-cortex-m3.elf

Il faut une version binaire simple à charger et non la version trop riche

arm-none-eabi-objcopy -O binary test-cortex-m3.elf test-cortex-m3.bin


Lancement de l'émulation avec qemu

./qemu-0.13.0/arm-softmmu/qemu-system-arm -M lm3s6965evb -nographic -kernel test-cortex-m3.bin
Hello world!
QEMU 0.13.0 monitor - type 'help' for more information
(qemu) quit

FAQ

Ressources