SW-TM4C: TivaWare for C Series Software (Complete), 2.1.2.111
Needed:
- ARM cross compiler (arm-none-eabi-***)
- TI's Tivaware
- OpenOCD or 'https://github.com/utzig/lm4tools to flash the device'
Check this and investigate this further: https://github.com/szczys/tiva-c-launchpad-template 'TI has a restrictive license on all of their example files. Becuase of this you cannot use their Makefiles, Linker scripts, or Startup code in open source repositories. This template gets around this issue by creating symbolic links to these files. You need the TivaWare package for libraries anyway, this simply creates links to the pertinent files at compile time.'
Some straight instructions: 'http://www.strainu.ro/programming/embedded/programming-for-the-tiva-c-launchpad-on-linux/'
-
Get ARM GCC toolchain: 'https://launchpad.net/gcc-arm-embedded'
sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded sudo apt-get update sudo apt-get install gcc-arm-none-eabi
-
TivaWare: Google SW-TM4C: TivaWare for C Series Software
mkdir TivaWare unzip SW-TM4C-2.1.0.12573.exe make
Directory structure: . |-> tiva-c-projects |-> TivaWare
-
So far I'm using lm4tools, not OpenOCD
git clone https://github.com/utzig/lm4tools.git cd lm4tools/lm4flash make sudo make install
echo 'ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="00fd", GROUP="users", MODE="0660"' |
sudo tee /etc/udev/rules.d/99-stellaris-launchpad.rules
- Better instructions
- Descriptions for each individual project
Tivaware BUG regarding USB ring buffer. Fix on file: usblib/usbbuffer.c
USBBufferInfoGet(const tUSBBuffer *psBuffer, tUSBRingBufObject *psRingBuf)
(...)
- psRingBuf->ui32Size = psBufVars->sRingBuf.ui32ReadIndex;
+ psRingBuf->ui32Size = psBufVars->sRingBuf.ui32Size;