DK-LM3S9B96

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m (Using TI's StellarisWare and Samples)
m (Preparation)
Line 1: Line 1:
 
==Preparation==
 
==Preparation==
 
* Build a toolchain. See [[Crosstool-ng]], and use the <code>arm-bare_newlib_cortex_m3_nommu-eabi</code> config.
 
* Build a toolchain. See [[Crosstool-ng]], and use the <code>arm-bare_newlib_cortex_m3_nommu-eabi</code> config.
* Install some stuff:
+
* Build [[OpenOCD]]
<source lang="bash">
+
sudo apt-get install openocd
+
</source>
+
  
 
==Environment==
 
==Environment==

Revision as of 16:10, 27 July 2012

Contents

Preparation

  • Build a toolchain. See Crosstool-ng, and use the arm-bare_newlib_cortex_m3_nommu-eabi config.
  • Build 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
rm ../SW-*.exe
  • Edit the PREFIX variable in makedefs. E.g:
PREFIX=${shell echo -n ${CROSS_COMPILE} | rev | cut -b 2- | rev}
  • Build:
    • You make need to remove the build sections that target the Cortex-M4 from the following files:
      • ./driverlib/Makefile
      • ./grlib/Makefile
      • ./usblib/Makefile
    • The entire source tree won't build, due to Cortex-M4 boards, at this point, move into your board specific directory, and continue from there.
make clean all

Flashing with OpenOCD

You may need the stellaris.cfg file from here http://gitorious.org/openocd/openocd/blobs/master/tcl/target/stellaris.cfg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox