StellarisEnvDev WinCLI
Aller à la navigation
Aller à la recherche
Pour commencer sous windows et SANS installer d'IDE graphique
La toolchain ARM sous Mingw
- C'est possible de compiler et flasher, le tout en installant le minimum, sous windows avec Mingw/Msys.
- Il faut pour cela, disposer d'une installation windows du cross-compilateur gcc pour ARM (arm-none-eabi-gcc), comme celui de codesourcery (maintenant Mentor) :
http://processors.wiki.ti.com/index.php/Installing_CodeSourcery_Toolchain
Les librairies de base et les examples
- Apres, on telecharge les exemples (StellarisWare), chez TI : http://www.ti.com/tool/sw-ek-lm4f120xl
SW-EK-LM4F120XL: StellarisWare for the Stellaris LM4F120 LaunchPad Evaluation Board
Compiler un projet
- Pour compiler le project0 par exemple :
cd /c/StellarisWare/boards/ek-lm4f120xl/project0 make ...
=> on obtient gcc/project0.bin
Pas mal pour un debut..
Flasher le LaunchPad
Pour flasher le firmware :
- il faut compiler l'outil lm4flash : https://github.com/utzig/lm4tools
- Pour cela, il suffit d'installer libusb sous windows : http://www.libusb.org/
- Télécharger par exemple libusb-1.0.9.tar.bz2 (2012-04-20)
- Compilez/installez la libusb:
./configure && make && make install
- Ensuite on compile lm4flash :
cd lm4tools-master/lm4flash make
- Enfin, il faut installer les drivers ICDI pour windows chez TI : http://www.ti.com/tool/stellaris_icdi_drivers
- Toujours depuis le repertoire ou on a builde lm4flash, on peut flasher project0 comme ceci :
./lm4flash.exe /c/StellarisWare/boards/ek-lm4f120xl/project0/gcc/project0.bin
Ca s'execute !
- Presto ! La demo RGB pre-installee est remplacee par le blink rouge-bleu aveuglant de project0 !! :-)