GamePad Tool code

Hey all, does anybody know where i may be able to find the source code for the three configurations on the FRC Gamepad tool for the MSP430? I’ve found some hex files for it, but those don’t directly decode into anything useful and even if they did I’m not sure waht I’d do with it. Any help is appreciated!

The code is here:

If I remember correctly, there is a build option that defines which configuration version it will build.

You will also need Code Composer Studio (CCS) from http://www.ti.com/tool/CCSTUDIO. You can clone and import the project from Github within CCS. (CCS is Eclipse-based.)

@wt200999 is correct, to build the various input/output options, you need to define OPTION1, OPTION2, or OPTION3 under Project -> Properties, then Build -> MSP430 Compiler -> Advanced Options -> Predefined Symbols. After you build, the file you want to load on the gamepad is $GITROOT/MSP430-Gamepad/Debug/MSP430-Gamepad.txt, where $GITROOT is wherever you told CCS to put your git repos.

I was just working on this recently, hence it was on the tip of my tongue – @wt200999, assuming you’re the Will Toth who owns the MSP430-Gamepad repo, any chance you’ll accept my pull request (https://github.com/TI-FIRST/MSP430-Gamepad/pull/3)?

Yup, that’s me, thanks for the pull request looks like a useful improvement! I we be re-building the gamepad tool and the three joystick variants for the upcoming season soon and will test this on hardware. Just don’t have as much TI hardware lying around these days as I used to :slight_smile:

Awesome, thanks! We used that modified firmware on our drive joystick for 2018 with no problems, and tested all the digital I/Os in all three configurations, so please let me know if you see any funny behavior when testing.