Skip to content

jlhonora/usb-mspgcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USB CDC support for msp430 using mspgcc

The following code implements a USB CDC device than can be used as a serial port to send and receive data to a msp430 microcontroller.

This repo is a modification of the USB Developer's package for MSP430 from Texas Instruments to compile it with mspgcc uniarch (C compiler for msp430 microcontrollers).

To use this library you need to install mspgcc and the rake utility:

$ sudo apt-get install rake

Using the program

First, build the example:

$ rake

And install it:

$ sudo mspdebug rf2500 "prog bin.elf"

A USB interface should appear in your PC. Using a serial port terminal software such as Coolterm or minicom you should be able to send and receive characters. A simple console is implemented, and can be entered sending 'shell\r\n'. More commands can be added in the console.c file.

This code can be used as a starting point for other USB interfaces, such as HID or MSC, for example. To create your own descriptor string you should use TI's USB descriptor tool. Note that the generated files cannot be replaced directly. You should look at the differences between both files (the generated ones and the ones provided in this repo) and make changes accordingly.

Troubleshooting

I've only tested this code with an msp-exp430f5529 experimenter board and a custom board using the msp430f5528 uC in Ubuntu and OS X. Feel free to add issues as long as you encounter them, I'll try to address them as soon as possible.

About

msp430 USB library for mspgcc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published