4
\$\begingroup\$

What's the easiest way to control a TI Launchpad (MSP430) from Linux over USB? I just want to use the board to drive some LEDs while it's tethered to my computer, so I'm looking for a way to simply control the output pins via a TTY or mspdebug or similar. I don't have a crystal on my board yet, but can add one if needed.

\$\endgroup\$

2 Answers 2

3
\$\begingroup\$

http://github.com/dwelch67/msp430_samples I use mspdebug to load programs.

I dont know if there is a communcation path between the target mcu and the host. the mcu in the middle is the one you talk to and it uses spi by wire to load the target device.

I either bitbang or use the uart in the g2553 part to communicate with the host using a separate ftdi based usb to serial board (the kind used with 3.3v arduinos are super easy to come by, can also power the msp430 with this if you dont need to reprogram it.

\$\endgroup\$
2
  • \$\begingroup\$ well sure the debugger (mspdebug) can get through to the target, perhaps using that path you can hit addresses in the target's register space and fiddle with the I/O. see what mspdebug offers from a command line, if possible then examine the mspdebug source to not have to make a program where you dont have to type the commands. \$\endgroup\$
    – old_timer
    Commented May 10, 2012 at 2:55
  • \$\begingroup\$ there are two flavors of launchpad kits one with the 2553 part, the other with a different set of parts none of which has a uart. \$\endgroup\$
    – old_timer
    Commented May 10, 2012 at 2:56
0
\$\begingroup\$

The TI LaunchPad should show up as a USB serial device while in operation. You should be able to write a program that talks over this serial device with commands that you create in order to change your LED status. It might be easiest to start by making these serial commands human readable so that you can test them from a serial terminal program such PuTTY, Hyperterminal, minicom, etc.

\$\endgroup\$
3
  • \$\begingroup\$ Writing the program to talk over the serial device is left as an exercise to the reader? \$\endgroup\$
    – erjiang
    Commented Apr 9, 2012 at 18:14
  • 2
    \$\begingroup\$ The method of talking to the device over serial can be implemented in many different ways. If you have as existing program in which you want to add this functionality, you will want to look for serial libraries compatible with your language of choice that implement this. What language are you using? \$\endgroup\$
    – ben
    Commented Apr 9, 2012 at 18:47
  • \$\begingroup\$ I can use whatever language I need to. I was just asking if there were simpler solutions (or pre-made solutions) before I dive into implementing software UART. \$\endgroup\$
    – erjiang
    Commented Apr 10, 2012 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.