Writing
Setting up TI SensorTag on OSX and Linux
EDIT: Uniflash, a Universal Flash Programmer for Texas Instruments devices is now available.
Setting up the TI SensorTag on OSX to work with Contiki turned out to be tricky. After many hours of searching and hacking around, i found the solution:
OSX
-
Get DSLite to flash the sensortag by Downloading and installing the latest Energia for OSX
-
DSLite resides in
bash# /Applications/Energia.app/Contents/Resources/Java/tools/common/DSLite/DebugServer/bin/DSLite
-
Flash with:
bash# /Applications/Energia.app/Contents/Java/hardware/tools/DSLite/DebugServer/bin/DSLite load -c /Applications/Energia.app/Contents/Java/hardware/tools/DSLite/CC2650F128_TIXDS110_Connection.ccxml -f FileToFlash.elf
I recommend creating an alias in .bash_profile like so:
bash# echo 'alias sensortag-flash="/Applications/Energia.app/Contents/Java/hardware/tools/DSLite/DebugServer/bin/DSLite \
load -c /Applications/Energia.app/Contents/Java/hardware/tools/DSLite/CC2650F128_TIXDS110_Connection.ccxml -f "' >> ~/.bash_profile
Then you can flash by:
bash# sensortag-flash filetoflash.elf
Compiler
With homebrew:
bash# brew tap osx-cross/arm
Serial
To get a Serial output look at /dev/tty.usbmodem0000000x devices provided by the Debugger DevPack:
- for picocom use
--imap lfcrlf
to get the output aligned
Linux
To setup in linux or the Instant Contiki VM follow this post
In that post there is also a solution for the Debugger DevPack firmware upgrade issue.