FR5994的开发板,下载失败:
1. 如果将IAR-》Linker-》format 配置为other,那么下载不进去
Sun Mar 12, 2017 17:17:39: Using license: Standalone license - IAR Embedded Workbench for Texas Instruments MSP430
Sun Mar 12, 2017 17:17:39: Failed to load debugee: 。。。。。。。
2. 如果将IAR-》Linker-》format 配置为前面那个选项,下载时弹出
点击确认继续下载,然后Debug log窗会出现:
Sun Mar 12, 2017 17:19:44: Illegal register LEASCIE.LEASCTIE in interrupt description:
LEA_SC_VECTOR 0x24 2 LEASCIE.LEASCTIE LEASCIFG.LEASCTIFG
Sun Mar 12, 2017 17:21:54: Warning: Finished loading interrupt definitions. There were 1 error(s), see the log window.
Sun Mar 12, 2017 17:21:54: There was 1 warning during the initialization of the debugging session.
其实没有下载成功。。
代码很简单:
#include "msp430fr5994.h"
int main(void)
{
WDTCTL = WDTPW | WDTHOLD; // Stop WDT
CSCTL0 = CSKEY; //password
CSCTL1 = DCOFSEL0 + DCOFSEL1; // Set DCO = 8Mhz
CSCTL2 = SELM__DCOCLK; // MCLK=DCO
CSCTL3 = DIVM__1; // Divide DCO/1
// Configure GPIO
P1OUT &= ~BIT0; // Clear P1.0 output latch for a defined power-on state
P1DIR |= BIT0; // Set P1.0 to output direction
PM5CTL0 &= ~LOCKLPM5; // Disable the GPIO power-on default high-impedance mode
// to activate previously configured port settings
while(1)
{
P1OUT ^= BIT0; // Toggle LED
__delay_cycles(100000);
}
}
不知道什么原因。。还望大神分析