Like many people I bought a couple of the Stellaris Launchpads when they were on offer at $4.99 each including shipping, and I imagine I am not alone in having stashed them away and done nothing with them. I’ve recently become aware of two things that have changed this, firstly the Energia Arduino compatible IDE I mentioned here which allows me to use the Stellaris as an Arduino alike without having to learn a new IDE and secondly SLLogicLogger which allows you to use the Stellaris as a 10MHz 8 channel SUMP compatible logic analyser.
Procedure for setting it up using Linux
Firstly you will probably want to add a udev rule so that a normal user account can access the USB device.
eg. Create a new file named: /etc/udev/rules.d/61-stellapad.rules
Now get the things we need:
git clone https://github.com/utzig/lm4tools.git
tar zxvf ../sllogiclogger.2012-12-24.tar.gz
Make sure the Stellaris is connected and upload the sllogiclogger.bin file to it:
You will get a response similar to:
Found ICDI device with serial: 0E101F65
ICDI version: 9270
Unpack LogicSniffer in a suitable location:
tar zxvf ols-0.9.6.1-full.tar.gz
Copy the SLLogicLogger plugin to the LogicSniffer plugins directory:
cp /path/to/unpacked/sllogiclogger/ols.profile-SLLogicLogger.cfg /path/to/logicsniffer/plugins/
Now run run.sh to start LogicSniffer:
Click the button to start capture and set the Connection details as below (click to enlarge):
If you get an error when setting the port that says “There is an incompatible JNA native library installed on this system” close LogicSniffer, edit run.sh and add -Djna.nosys=true to the last line after $MEMSETTINGS so it reads:
java $MEMSETTINGS -Djna.nosys=true -Dnl.lxtreme.ols.bundle.dir=”$PLUGINDIR” -DPlastic.defaultTheme=SkyBluer -cp “$CLASSPATH” nl.lxtreme.ols.runner.Runner
Open LogicSniffer again and it should let you set the port now.
Click Capture to return to the main screen and start capturing data. The eight pins from PB0 to PB7 on the Stellaris can be used as inputs but note that PB0 and PB1 are limited to 3.6 V, PB2 to PB7 are 5 V tolerant.
That’s it, enjoy your $5 logic analyser.