https://github.com/jaredsburrows/msp-430
Here are some examples of how to use the MSP430
https://github.com/jaredsburrows/msp-430
Last synced: 8 months ago
JSON representation
Here are some examples of how to use the MSP430
- Host: GitHub
- URL: https://github.com/jaredsburrows/msp-430
- Owner: jaredsburrows
- Created: 2013-04-07T03:10:21.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T23:36:57.000Z (over 1 year ago)
- Last Synced: 2025-02-01T18:11:13.415Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MSP430 Examples
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://github.com/jaredsburrows/msp-430/actions/workflows/build.yml)
[](https://twitter.com/jaredsburrows)
Here are some examples of how to use the MSP430
### How to compile and run your code
Basic Compilation:
Filename: msp.c
```bash
msp430-gcc -mmcu=msp430g2231 -o msp.elf msp.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:
```bash
msp430-gcc -Wall -Wextra -Werror -Os -O2 -mmcu=msp430g2231 -o msp.elf msp.c && mspdebug rf2500 'erase all' 'prog msp.elf' 'run'
```