Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Here are some examples of how to use the MSP430
branch: master
Failed to load latest commit information.
Buttons Update msp.c
LEDs Added new blinking program
LEDs2 Added new blinking program
README.md Update README.md

README.md

MSP430 Examples

Here are some examples of how to use the MSP430

How to compile and run your code

Basic Compilation:

Filename: msp.c

msp430-gcc -mmcu=msp430g2231 -o msp.elf msp2.c

mspdebug rf2500 
debug> 'erase all' 
debug> 'prog msp.elf' 
debug> 'run'

Here is a one-liner that will compile, show extra warnings, stop on warnings and compile the code and then push it your device:

msp430-gcc -Wall -Wextra -Werror -Os -O2 -mmcu=msp430g2231 -o msp.elf msp2.c && mspdebug rf2500 'erase all' 'prog msp.elf' 'run'
Something went wrong with that request. Please try again.