This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

FR5994下载失败

Other Parts Discussed in Thread: MSP430FR5994

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);
    }
}

不知道什么原因。。还望大神分析

  • LEA_SC_VECTOR  0x24  2  LEASCIE.LEASCTIE  LEASCIFG.LEASCTIFG 

    这个应该是你仿真器那边报错,MSP430FR没有这个。换个debug工具试试,TI的评估板都带仿真工具。应该和你的代码没有关系。

  • 楼主用的什么型号的仿真器?

  • 你的龙猫 说:

    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);
        }
    }

    不知道什么原因。。还望大神分析

    重新建一个工程,采用默认设置。

  • eZ-FET0on-board0debug0probe0
    EnablesUdebuggingAprogrammingUasUwellUasU
    communicationUbackUtoUtheUPCBUTheUeZIFETU
    canUalsoUprovideUpowerUtoUtheUtargetUMCUB

    就是用的评估板自带的USB下载的?不知道为什么下载不成功了

  • 你的龙猫 说:

    eZ-FET0on-board0debug0probe0
    EnablesUdebuggingAprogrammingUasUwellUasU
    communicationUbackUtoUtheUPCBUTheUeZIFETU
    canUalsoUprovideUpowerUtoUtheUtargetUMCUB

    就是用的评估板自带的USB下载的?不知道为什么下载不成功了

    新建工程默认配置是不会有错的。见附件。

  • 我是这样配置的啊 ,可是还是老样子。。。。这种配置我下载FW到其他板子都是正常的    就是用USB下载到5994这块开发板不行   

  • 你的龙猫 说:

    我是这样配置的啊 ,可是还是老样子。。。。这种配置我下载FW到其他板子都是正常的    就是用USB下载到5994这块开发板不行   

    有其他FR5994的芯片么?看一下是不是芯片的问题。

  • 就这么一块板子。。。我知道怎么避开这个问题了   虽然我还不知道什么原因  有可能是我的IAR

    IAR新建的工程 就会出现这个问题,但是以前的就不会    真是郁闷啊    新旧两个工程菜单栏居然有差别 

  • 有时间的时候,重装下iar试试。可能有些选项被改变了。

  • 就这个图片上的Debugger选项里的Setup/Driver要选FET