DK-LM3S9B96

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 22: Line 22:
 
* Edit the <code>PREFIX</code> variable in makedefs. E.g:
 
* Edit the <code>PREFIX</code> variable in makedefs. E.g:
 
<source lang="bash">
 
<source lang="bash">
PREFIX=${CROSS_COMPILE}
+
PREFIX=${shell echo -n ${CROSS_COMPILE} | rev | cut -b 2- | rev}
 +
</source>
 +
* Build:
 +
<source lang="bash">
 +
make clean all
 
</source>
 
</source>

Revision as of 14:50, 27 July 2012

Preparation

  • Build a toolchain. See Crosstool-ng, and use the arm-bare_newlib_cortex_m3_nommu-eabi config.
  • Install some stuff:
sudo apt-get install openocd

Environment

export PATH=${TOOLCHAIN_DIR}/bin:${PATH}
export CROSS_COMPILE=arm-bare_newlib_cortex_m3_nommu-eabi-

Using TI's StellarisWare and Samples

mkdir sw
cd sw
unzip ../SW-*.exe
  • Edit the PREFIX variable in makedefs. E.g:
PREFIX=${shell echo -n ${CROSS_COMPILE} | rev | cut -b 2- | rev}
  • Build:
make clean all
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox