Ubuntu下MSP430开发环境搭建
2013-12-08 12:50
387 查看
阅读 以下文章可搞定
1、msp430-gcc -Os -mmcu=msp430g2553 -o main.elf main.c
2、mspdebug rf2500
3、load main.elf
4、run
Ubuntu下搭建MSP430开发环境(MSPGCC)(一)
Programming the MSP430 Launchpad on Ubuntu
msp430G2553程序烧写方法:#include <msp430g2553.h> int main (void) { volatile int i; /* Stop watchdog timer */ WDTCTL = WDTPW | WDTHOLD; /* Setup bit 0 of P1 as output */ P1DIR = 0x01; /* Setup bit 0 of P1 to 0 */ P1OUT = 0x00; /* Loop forever */ while (1) { /* Toggle bit 0 of P1 */ P1OUT ^= 0x01; /* Just delay */ for (i = 0; i < 0x6000; i++) {} } }运行:
1、msp430-gcc -Os -mmcu=msp430g2553 -o main.elf main.c
2、mspdebug rf2500
3、load main.elf
4、run
相关文章推荐
- ubuntu下搭建msp430开发环境
- Ubuntu下Android源码编译及Eclipse开发环境搭建
- Ubuntu下Eclipse搭建Hadoop开发环境
- *在ubuntu上搭建开发环境8---Ubuntu搭建Android开发环境
- 传智播客--UBUNTU搭建JAVA EE开发环境
- ubuntu-10.10嵌入式开发环境搭建
- Ubuntu14.04开发环境搭建
- Ubuntu下搭建nginx + php + mysql + phpmyadmin开发环境
- Ubuntu 搭建 Android 开发环境-JDK及androidSDK安装搭建环境
- Mint15(或Ubuntu)下搭建LAMP(Apache+PHP+MYSQL)开发环境
- 在ubuntu下搭建好了rails开发环境。
- Ubuntu 下J2EE开发环境搭建
- ubuntu13.04搭建安卓开发环境(离线安装SDK,附下载地址)
- ubuntu环境下搭建python3开发环境
- Ubuntu下HyperLedger fabric开发环境搭建
- Ubuntu下搭建Linux嵌入式开发环境
- 在Ubuntu上搭建嵌入式Linux开发环境
- 嵌入式linux开发环境搭建(五)——Ubuntu第三方软件仓库源
- ubuntu 11.10 搭建rails开发环境
- 在ubuntu下使用Eclipse搭建Hadoop开发环境《转》