Failed to match a default incude file。

2019-03-24 16:05发布

无.jpg 怎么回事,我是菜鸟,刚刚入门,多多指教了。 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
19条回答
cfg
1楼-- · 2019-03-25 14:19
从IAR SystemsEmbedded Workbench 4.0430FET_examplesmsp430x2xxC-source里找的


//******************************************************************************
//  MSP430x2xx Demo - Software Toggle P1.0
//
//  Description; Toggle P1.0 by xor'ing P1.0 inside of a software loop.
//  ACLK = n/a, MCLK = SMCLK = default DCO
//
//                MSP430x2xx
//             -----------------
//         /||              XIN|-
//          | |                 |
//          --|RST          XOUT|-
//            |                 |
//            |             P1.0|-->LED
//
//  A. Dannenberg
//  Texas Instruments, Inc
//  January 2006
//  Built with IAR Embedded Workbench Version: 3.40A
//******************************************************************************

#include "msp430.h"

void main(void)
{
  WDTCTL = WDTPW + WDTHOLD;             // Stop watchdog timer
  P1DIR |= 0x01;                        // Set P1.0 to output direction

  for (;;)
  {
    volatile unsigned int i;            // volatile to prevent optimization

    P1OUT ^= 0x01;                      // Toggle P1.0 using exclusive-OR

    i = 10000;                          // SW Delay
    do i--;
    while (i != 0);
  }
}
cfg
2楼-- · 2019-03-25 15:44
 精彩回答 2  元偷偷看……
wstt
3楼-- · 2019-03-25 18:49
jtag至少要接5根线 TCK TMS TDO TDI 和GND 看看接全了没
cfg
4楼-- · 2019-03-25 19:47
无标题.jpg 题.jpg 如图,接了8根统一都接的右边
deweyled
5楼-- · 2019-03-26 00:42
 精彩回答 2  元偷偷看……
deweyled
6楼-- · 2019-03-26 03:06

#include "msp430.h"
改为
#include "io430x22x4.h"
试试

一周热门 更多>

相关问题

    相关文章