Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all 3634 articles
Browse latest View live

MSP430F5529: msp430f5529

$
0
0
Part Number: MSP430F5529

您好,请问我定义数组时报错 program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment fails for section ".data" size 0x61a4.  Available memory ranges:

有什么办法可以解决吗?


MSP430F5529: no usb fet was found

EVM430-FR6047: eUSCI_A1无法收发数据

$
0
0
Part Number: EVM430-FR6047
Other Parts Discussed in Thread: MSP430FR6047

将例程msp430fr60x7_euscia0_uart_02.c(此例程是eUSCI_A0)烧录开发板,可以实现数据回显。但我将程序改成eUSCI_A1,发现烧录开发板后无法进入中断,程序如下:

#include <msp430.h>

int main(void)
{
    WDTCTL = WDTPW | WDTHOLD;               // Stop Watchdog

    // Configure GPIO
    P1SEL0 &= ~(BIT2 | BIT3);
    P1SEL1 |= BIT2 | BIT3;                  // USCI_A1 UART operation
    PJSEL0 |= BIT4 | BIT5;                  // For XT1

    // Disable the GPIO power-on default high-impedance mode to activate
    // previously configured port settings
    PM5CTL0 &= ~LOCKLPM5;

    // XT1 Setup
    CSCTL0_H = CSKEY_H;                     // Unlock CS registers
    CSCTL2 = SELA__LFXTCLK | SELS__DCOCLK | SELM__DCOCLK;
    CSCTL3 = DIVA__1 | DIVS__1 | DIVM__1;   // Set all dividers
    CSCTL4 &= ~LFXTOFF;
    do
    {
        CSCTL5 &= ~LFXTOFFG;                // Clear XT1 fault flag
        SFRIFG1 &= ~OFIFG;
    } while (SFRIFG1 & OFIFG);              // Test oscillator fault flag
    CSCTL0_H = 0;                           // Lock CS registers

    // Configure USCI_A1 for UART mode
    UCA1CTLW0 = UCSWRST;                    // Put eUSCI in reset
    UCA1CTLW0 |= UCSSEL__ACLK;              // CLK = ACLK
    UCA1BRW = 3;                            // 9600 baud
    UCA1MCTLW |= 0x5300;                    // 32768/9600 - INT(32768/9600)=0.41
                                            // UCBRSx value = 0x53 (See UG)
    UCA1CTLW0 &= ~UCSWRST;                  // Initialize eUSCI
    UCA1IE |= UCRXIE;                       // Enable USCI_A1 RX interrupt

    __bis_SR_register(LPM3_bits | GIE);     // Enter LPM3, interrupts enabled
    __no_operation();                       // For debugger


}

#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=EUSCI_A1_VECTOR
__interrupt void USCI_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(EUSCI_A1_VECTOR))) USCI_A1_ISR (void)
#else
#error Compiler not supported!
#endif
{
    switch(__even_in_range(UCA1IV, USCI_UART_UCTXCPTIFG))
    {
        case USCI_NONE: break;
        case USCI_UART_UCRXIFG:
            while(!(UCA1IFG&UCTXIFG));
            UCA1TXBUF = UCA1RXBUF;
            __no_operation();
            break;
        case USCI_UART_UCTXIFG: break;
        case USCI_UART_UCSTTIFG: break;
        case USCI_UART_UCTXCPTIFG: break;
        default: break;
    }
}

EVM430-FR6047: EVM430-FR6047模板参数问题

$
0
0
Part Number: EVM430-FR6047

EVM430-FR6047模板参数成功后,用示波器查看发波数和发波频率老是不变,老是20个波1MHz频率,和软件显示对不上。

MSP430FR2533: 为什么只支持24个互容按键

$
0
0
Part Number: MSP430FR2533

你好!

请问FR2533除了RAM和2633不一样,其他完全一样,为什么2533只支持24个互容按键呢?理论上16个自容,应该也支持8*8=64个互容按键啊。

另外,是否支持互容,和触摸IO有什么关系呢?

谢谢!

MSP430F5528: 请问eZ-FET lite 中的调试芯片MSP430F5528IRGC能替换成其他的芯片吗

$
0
0
Part Number: MSP430F5528
Other Parts Discussed in Thread: MSP430F5529

最近想自己自作一个msp430单片机的仿真器eZ-FET lite,看了TI的参考资料software-dl.ti.com/.../index_FDS.html

仿真器的核心芯片是MSP430F5528IRGC,但是这款芯片一直缺货,我想问能否把该芯片替换成别的芯片,比如msp430f5529?

MSP-EXP430F5529LP: 使用MSP430ware 里的Filter例程无法完成output buffer初始化

$
0
0
Part Number: MSP-EXP430F5529LP

当我使用filter_ex2_fir_iq31例程,进入debug。

会卡停留在Zero initialize the output buffer里的

      while(count--) WRITE8_ADV(outbuf, 0)

   /*------------------------------------------------------------------------*/
   /* Zero initialize the output buffer.                                     */
   /*------------------------------------------------------------------------*/
   #if __MSP430__
      while(count--) WRITE8_ADV(outbuf, 0);
   #else

      if (USE_MEMSET)
         memset((void*)outbuf, 0, count);
      else
         while(count--) WRITE8_ADV(outbuf, 0);
   #endif
}

这是我的debug界面

MSP430F5529: 请问如何在烧录程序进msp430单片机时保留flash数据?

$
0
0
Part Number: MSP430F5529

如题,请问如何在烧录程序进msp430单片机时保留flash数据?

我有大概1000多个数据的列表需要写入msp430f5529的存储空间flash,数据接近2KB的大小。我了解到msp430f5529有128KB的flash主存储器、2KB的BSL存储器和512B的信息存取器。由于数据大小的限制我只能将数据放在128KB的主存储器中。但是在每次重新烧录程序的时候这些数据就会丢失,那么只能重新输出,无法复用,请问有什么好的解决方法吗?


MSP430F5529: MSP430F5529 在IAR平台写入主存储器Flash扇区A出错“ User error: Illegal opcode found on address 0x43FA ”

$
0
0
Part Number: MSP430F5529

描述

我在使用TI 官方的msp430f5529开发板写主存储器flash的扇区A时出错,复现概率100%

代码

代码是TI官方代码,稍作修改

#include <msp430f5529.h>

char value;                                 // 8-bit value to write to seg C

// Function prototypes
void write_BankA(char value);
void copy_C2D(void);

int main(void)
{
  WDTCTL = WDTPW+WDTHOLD;                   // Stop WDT
  value = 1;                                // initialize value

    write_BankA(value++);                    // Write Bank A, increment value
//    copy_C2D();                             // Copy segment C to D
    __no_operation();                       // Loop forever, SET BREAKPOINT HERE
  
  while(1);
}

//------------------------------------------------------------------------------
// Input = value, holds value to write to Bank A
//------------------------------------------------------------------------------
void write_BankA(char value)
{
  unsigned int i;
  char * Flash_ptr;                         // Initialize Flash pointer
  Flash_ptr = (char *) 0x4400;            // Bank A address
  FCTL3 = FWKEY;                            // Clear Lock bit
  FCTL1 = FWKEY+ERASE;                      // Set Erase bit
  _DINT();                                  //no interrupt
  *Flash_ptr = 0;                           // Dummy write to erase Flash seg
  FCTL1 = FWKEY+WRT;                        // Set WRT bit for write operation

  for (i = 0; i < 128; i++)
  {
    *Flash_ptr++ = value;                   // Write value to flash
  }
  while(FCTL3 & BUSY);
  _EINT();
  FCTL1 = FWKEY;                            // Clear WRT bit
  FCTL3 = FWKEY+LOCK;                       // Set LOCK bit
}

复现步骤

1. 在IAR 平台编译Ctrl+F7(compile)代码

2. 下载并调试Ctrl+D(download and debug)

3. 按运行键F5(Go),然后就报错了

错误截图

平台环境

windows10+IAR 7.12.1+MSP-EXP430F5529LP-V1.8

MSP430FR6043: 原理图审核

MSP430FR6043: BSL升级

$
0
0
Part Number: MSP430FR6043

TI的专家,

     您们好,在调试MSP430F6043的升级功能,

1.slau550aa文档内介绍的 BSL版本,找不到, 最终链接都是 MSP430BSL_1_02_00_01.zip 这个版本, 但文件包内没有 FR6043的工程, 请还帮忙找一个适合6043的版本

2.FR6043的 FRAM 空间为: 6000~15FFF. 我们的应用程序 有45K左右,在使用MSP430FRBoot_1_03_00_00 host例程升级的时候, 无法加载我们APP.TXT, 

程序小点的没有问题, FR6043的 FRAM 空间为: 6000~15FFF.  其中 F000- OXFFFF定义为了 bootloader,

是不是 bootloader 分割后前后地址 都不能满足 40K的连续地址, 导致加载不上。

MSP430F2418: software BSL 無法正常回應

$
0
0
Part Number: MSP430F2418

你好,

我實際運用的需求是要在電路板上進入software BSL模式,我目前使用下面程式碼做開發驗證

int main(void)

{
uint16_t ite = 0;
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
initClockTo16MHz();
__bis_SR_register(GIE);
while (1)
{
__disable_interrupt(); // disable interrupts
for(ite = 0 ; ite < 1000 ; ite++);
((void ( * )())0x0C00)(); // jump to BSL
}

理論上開機後等一小段時間後就進入software BSL,這時使用外部uart送0x80的sync字元,都沒有回應,這時候我用hardware BSL invocation,再送一次0x80,就有正確的0x90回復了,也用過1 Mhz的clock設定,也是一樣的狀況,不知道為什麼進入不了software BSL模式。

MSP430FR6043: 如何设置参数才能准确采样到信号

$
0
0
Part Number: MSP430FR6043

我想要准确采样到换能器接收的信号,有哪些参数是和采样时间窗口相关的?USS_CAPTURE_DURATION_USEC、USS_START_CAPTURE_SEC、USS_ADC_SAMP_COUNT_SEC影响是哪些参数?互相是否有关联?还有采样窗口的大小是如何确定的?

MSP430F5529: msp430f5529

[FAQ] CCSTUDIO-MSP: 如何在 Code Composer Studio (CCS) 中手动选择 JTAG 接口类型

$
0
0
Part Number: CCSTUDIO-MSP
Other Parts Discussed in Thread: UNIFLASH

器件型号:CCSTUDIO-MSP 
主题中讨论的其他器件: UNIFLASH

默认情况下,CCS 将根据器件和调试器自动检测 JTAG 接口。但是,您可能需要将接口类型手动更改为 2 线 SBW 或 4 线 JTAG。目前,CCS 不允许您在不对驱动程序进行一些手动更改的情况下更改 JTAG 接口。以下是有关如何使用 CCS v10 执行此操作的说明。

步骤 1.确保 CCS 已关闭,然后在文本编辑器中打开以下文件(假设位于默认安装位置)。

C:\ti\ccs<此处为版本>\ccs\ccs_base\common\targetdb\drivers\msp430_emu.xml

步骤 2.根据您的特定器件所属系列为您的器件更新“msp430_emu.xml”。对于每个系列,您将看到多个“isa”部分,因此应根据您的器件在相应部分中进行更改。

原始“msp430_emu.xml

<?xml version="1.0"?><drivers id="MSP430"><isa Type="MSP430" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1"><choice Name="Fast" value="0"/><choice Name="Medium" value="1"/><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430L092" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Name="Emulation Type" desc="Emulation Types" Type="choicelist" id="emuType" Value="0"><choice value="Normal"/><choice value="ROM"/></property><property Type="hiddenfield" id="NormalActivationCode" Value="0xA55AA55A"></property><property Type="hiddenfield" id="ROMActivationCode" Value="0x5AA55AA5"></property><property Type="hiddenfield" id="supportExtMemDL" Value="true"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0"><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430C09x" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Type="stringfield" id="password" Name="Password: (HEX format)"></property><property Type="hiddenfield" id="passwordMinLength" Value="8"></property><property Type="hiddenfield" id="passwordMaxLength" Value="8"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0"><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430FR57xx" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" id="supportLPMx5" Value="true"></property><property Type="stringfield" id="password" Name="Password: (HEX format)"></property><property Type="hiddenfield" id="passwordMinLength" Value="0"></property><property Type="hiddenfield" id="passwordMaxLength" Value="120"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1"><choice Name="Fast" value="0"/><choice Name="Medium" value="1"/><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430FR59xx" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" id="supportLPMx5" Value="true"></property><property Type="stringfield" id="password" Name="Password: (HEX format)"></property><property Type="hiddenfield" id="passwordMinLength" Value="0"></property><property Type="hiddenfield" id="passwordMaxLength" Value="120"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1"><choice Name="Fast" value="0"/><choice Name="Medium" value="1"/><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430F1xx_SLOW" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0"><choice Name="Slow" value="2"/></property></driver></isa><isa Type="RF430FRL15X" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Name="Emulation Type" desc="Emulation Types" Type="choicelist" id="emuType" Value="0"><choice value="Normal"/><choice value="ROM"/></property><property Type="hiddenfield" id="NormalActivationCode" Value="0xA55AA55A"></property><property Type="hiddenfield" id="ROMActivationCode" Value="0x5AA55AA5"></property><property Type="hiddenfield" id="supportExtMemDL" Value="true"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0"><choice Name="Slow" value="2"/></property></driver></isa><isa Type="CORTEX_M4_432" ProcID="0x75803800"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Type="hiddenfield" Value="true" id="haltOnConnectByDefault" /><property Type="hiddenfield" Value="true" id="supportsNonIntrusiveConnect" /><property Type="hiddenfield" Value="true" id="disableInternalFlashManager" /><property Type="hiddenfield" Value="true" id="disableArmAdvancedFeatures" /><property Type="hiddenfield" Value="true" id="disableSoftwareBreakpoint" /><property Type="hiddenfield" Value="true" id="disableSoftLaunch" /><property Type="hiddenfield" Value="true" id="msp432fet" /><property Name="JTAG/SWD (Auto-detect)" desc="JTAG/SWD (Auto-detect)" Type="choicelist" id="interfaceSpeed" Value="1"><choice Name="Fast" value="0"/><choice Name="Medium" value="1"/><choice Name="Slow" value="2"/></property><property Type="hiddenfield" Value="true" id="Make Device Secure" /></driver></isa><isa Type="CS_DAP" ProcID="0x38000405"><driver file="NONE"><connectionType Type="MSP430"/></driver></isa></drivers>

添加的接口类型属性

<property Name="Interface Type" desc="Interface Type" Type="choicelist" id="interfaceType" Value="3"><choice Name="4 Wire JTAG protocol used" value="0"/><choice Name="2 Wire (Spy-bi-wire) JTAG protocol used" value="1"/><choice Name="2 Wire Devices accessed by 4wire JTAG protocol" value="2"/><choice Name="Protocol will be detected automatically" value="3"/></property>

修改后的“msp430_emu.xml

<?xml version="1.0"?><drivers id="MSP430"><isa Type="MSP430" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Name="Interface Type" desc="Interface Type" Type="choicelist" id="interfaceType" Value="3"><choice Name="4 Wire JTAG protocol used" value="0"/><choice Name="2 Wire (Spy-bi-wire) JTAG protocol used" value="1"/><choice Name="2 Wire Devices accessed by 4wire JTAG protocol" value="2"/><choice Name="Protocol will be detected automatically" value="3"/></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1"><choice Name="Fast" value="0"/><choice Name="Medium" value="1"/><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430L092" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Name="Emulation Type" desc="Emulation Types" Type="choicelist" id="emuType" Value="0"><choice value="Normal"/><choice value="ROM"/></property><property Type="hiddenfield" id="NormalActivationCode" Value="0xA55AA55A"></property><property Type="hiddenfield" id="ROMActivationCode" Value="0x5AA55AA5"></property><property Type="hiddenfield" id="supportExtMemDL" Value="true"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0"><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430C09x" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Type="stringfield" id="password" Name="Password: (HEX format)"></property><property Type="hiddenfield" id="passwordMinLength" Value="8"></property><property Type="hiddenfield" id="passwordMaxLength" Value="8"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0"><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430FR57xx" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" id="supportLPMx5" Value="true"></property><property Type="stringfield" id="password" Name="Password: (HEX format)"></property><property Type="hiddenfield" id="passwordMinLength" Value="0"></property><property Type="hiddenfield" id="passwordMaxLength" Value="120"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1"><choice Name="Fast" value="0"/><choice Name="Medium" value="1"/><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430FR59xx" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" id="supportLPMx5" Value="true"></property><property Type="stringfield" id="password" Name="Password: (HEX format)"></property><property Type="hiddenfield" id="passwordMinLength" Value="0"></property><property Type="hiddenfield" id="passwordMaxLength" Value="120"></property><property Name="Interface Type" desc="Interface Type" Type="choicelist" id="interfaceType" Value="3"><choice Name="4 Wire JTAG protocol used" value="0"/><choice Name="2 Wire (Spy-bi-wire) JTAG protocol used" value="1"/><choice Name="2 Wire Devices accessed by 4wire JTAG protocol" value="2"/><choice Name="Protocol will be detected automatically" value="3"/></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1"><choice Name="Fast" value="0"/><choice Name="Medium" value="1"/><choice Name="Slow" value="2"/></property></driver></isa><isa Type="MSP430F1xx_SLOW" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0"><choice Name="Slow" value="2"/></property></driver></isa><isa Type="RF430FRL15X" ProcID="0x6b800000"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Name="Emulation Type" desc="Emulation Types" Type="choicelist" id="emuType" Value="0"><choice value="Normal"/><choice value="ROM"/></property><property Type="hiddenfield" id="NormalActivationCode" Value="0xA55AA55A"></property><property Type="hiddenfield" id="ROMActivationCode" Value="0x5AA55AA5"></property><property Type="hiddenfield" id="supportExtMemDL" Value="true"></property><property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0"><choice Name="Slow" value="2"/></property></driver></isa><isa Type="CORTEX_M4_432" ProcID="0x75803800"><driver file="../../DebugServer/drivers/msp430_emu.dvr"><connectionType Type="MSP430"/><property Type="hiddenfield" Value="msp430.dll" id="dllName" /><property Type="hiddenfield" Value="MSP430" id="interface" /><property Type="hiddenfield" Value="true" id="haltOnConnectByDefault" /><property Type="hiddenfield" Value="true" id="supportsNonIntrusiveConnect" /><property Type="hiddenfield" Value="true" id="disableInternalFlashManager" /><property Type="hiddenfield" Value="true" id="disableArmAdvancedFeatures" /><property Type="hiddenfield" Value="true" id="disableSoftwareBreakpoint" /><property Type="hiddenfield" Value="true" id="disableSoftLaunch" /><property Type="hiddenfield" Value="true" id="msp432fet" /><property Name="JTAG/SWD (Auto-detect)" desc="JTAG/SWD (Auto-detect)" Type="choicelist" id="interfaceSpeed" Value="1"><choice Name="Fast" value="0"/><choice Name="Medium" value="1"/><choice Name="Slow" value="2"/></property><property Type="hiddenfield" Value="true" id="Make Device Secure" /></driver></isa><isa Type="CS_DAP" ProcID="0x38000405"><driver file="NONE"><connectionType Type="MSP430"/></driver></isa></drivers>

步骤 3.保存该文件,然后重新打开 CCS。

步骤 4.通过双击工程文件夹,在 CCS Project Explorer 中选择并展开 CCS 工程。

步骤 5.双击“targetConfigs”文件夹将其展开。

步骤 6.双击以“.ccxml”结尾的目标配置文件将其打开,然后点击“Advanced”选项卡。

步骤 7.点击“MSP430”CPU。

第 8 步:在“CPU Properties”下,将“Interface Type”更改为“Protocol will be detected automatically”以外的其他内容。请注意,某些选项可能会因您的器件而异。

步骤 9(可选):如有必要,请调整通信速度以确保可靠通信。

步骤 10:点击“Save”以保存对目标配置的更改。

现在,假设硬件连接和 JTAG 电路都正确,您可以使用指定的接口对器件进行编程或调试。

注意:通过修改 UniFlash 位于以下位置的驱动程序,可以对 UniFlash 进行相同的更改。

C:\ti\uniflash_<此处为版本>\deskdb\content\TICloudAgent\win\ccs_base\common\targetdb\drivers\msp430_emu.xml

 

 


MSP430FR2355: Energia无法应用MSP430FR2355

$
0
0
Part Number: MSP430FR2355
Other Parts Discussed in Thread: ENERGIA

我创建一个程式码试着用Energia跑2355,但这串错误指令我无法找到所需要的文件。

Energia: 1.8.11E23 (Windows 10), 開發板:"MSP-EXP430FR2355LP"

In file included from C:\Users\20753004\AppData\Local\Energia15\packages\energia\hardware\msp430\1.0.7\cores\msp430/Energia.h:4:0,

from C:\Users\20753004\AppData\Local\Energia15\packages\energia\hardware\msp430\1.0.7\cores\msp430/Arduino.h:3,

from sketch\sketch_feb14a.ino.cpp:1:

c:\users\20753004\appdata\local\energia15\packages\energia\tools\msp430-gcc\4.6.6\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/msp430.h:1793:2: error: #error "Failed to match a default include file"

exit status 1
開發板 MSP-EXP430FR2355LP 編譯錯誤。

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

MSP430FR2475: 串口无任何输出信号

$
0
0
Part Number: MSP430FR2475

Dear FAE,我在使用MSP430FR2475,发现根据库demo配置的串口无法正常输出,用示波器测量无任何信息,

如果配置成普通IO翻转则可以测量到电平变化,说明引脚没坏。外部主晶振32.768K

下面是配置文件:

#include "driverlib.h"
//******************************************************************************
//!
//!   Empty Project that includes driverlib
//!
//******************************************************************************
void main(void)
{
   // stop watchdog
    WDT_A_hold(WDT_A_BASE);

    GPIO_setAsPeripheralModuleFunctionInputPin(
        GPIO_PORT_P2,
        GPIO_PIN1 + GPIO_PIN0,
        GPIO_PRIMARY_MODULE_FUNCTION
        );

    //Set external clock frequency to 32.768 KHz
    CS_setExternalClockSource(32768);
    //Set ACLK=XT1
    CS_initClockSignal(CS_ACLK,CS_XT1CLK_SELECT,CS_CLOCK_DIVIDER_1);
    //Start XT1 with no time out
    CS_turnOnXT1(CS_XT1_DRIVE_1);
    //Set SMCLK = DCO with frequency divider of 1
    CS_initClockSignal(CS_SMCLK,CS_XT1CLK_SELECT,CS_CLOCK_DIVIDER_1);
    //Set MCLK = DCO with frequency divider of 1
    CS_initClockSignal(CS_MCLK,CS_XT1CLK_SELECT,CS_CLOCK_DIVIDER_1);

    // Configure UART pins
    //Set P1.0 and P1.1 as Secondary Module Function Input.
    /*

     * Select Port 1
     * Set Pin 0, 1 to input with function, (UCA0TXD/UCA0SIMO, UCA0RXD/UCA0SOMI).
     */
    GPIO_setAsPeripheralModuleFunctionInputPin(
        GPIO_PORT_P5,
        GPIO_PIN1 + GPIO_PIN2,
        GPIO_PRIMARY_MODULE_FUNCTION
        );

    /*
     * Disable the GPIO power-on default high-impedance mode to activate
     * previously configured port settings
     */
    PMM_unlockLPM5();

    //Configure UART
    //SMCLK = 1MHz, Baudrate = 115200
    //UCBRx = 8, UCBRFx = 0, UCBRSx = 0xD6, UCOS16 = 0
    EUSCI_A_UART_initParam param = {0};
    param.selectClockSource = EUSCI_A_UART_CLOCKSOURCE_ACLK;
    param.clockPrescalar = 3;
    param.firstModReg = 0;
    param.secondModReg = 146;
    param.parity = EUSCI_A_UART_NO_PARITY;
    param.msborLsbFirst = EUSCI_A_UART_LSB_FIRST;
    param.numberofStopBits = EUSCI_A_UART_ONE_STOP_BIT;
    param.uartMode = EUSCI_A_UART_MODE;
    param.overSampling = EUSCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION;

    if(STATUS_FAIL == EUSCI_A_UART_init(EUSCI_A0_BASE, &param))
    {
        return;
    }

    EUSCI_A_UART_enable(EUSCI_A0_BASE);

    
    while(1)
    {
        // Load data onto buffer
        EUSCI_A_UART_transmitData(EUSCI_A0_BASE, 'A');
        __delay_cycles(32768);
    }
}

MSP430F5529: MSP430F5529在CCS中识别不到芯片,无法下载的问题

$
0
0
Part Number: MSP430F5529
Other Parts Discussed in Thread: MSP430G2452

这是我的原理图,按照此方式连接JTAG或者SBW都无法识别到MCU,无法下载程序

我测量过板子电源,3.3V正常,V18引脚也有1.78V电压,请问是哪里不对导致无法下载?

我使用的仿真器是FET430UIF,我测试过可以正常仿真和下载MSP430G2452

开发环境CCS11.1

MSP430F5529: MSP430f5529墨水屏显示闪烁问题

$
0
0
Part Number: MSP430F5529

  SPI4W_WRITECOM(0x20);
这句话会是屏幕闪烁两次时间也比较长,有什么其他的函数可以代替吗?时间短的?
void SPI4W_WRITECOM(unsigned char INIT_COM)
{
	unsigned char TEMPCOM;
	unsigned char scnt;
	TEMPCOM=INIT_COM;
	nCS_H;                     //CS片选P3.2置1
	nCS_L;                     //CS片选P3.2置0
	SCLK_L;                    //SCLK串行时钟线置0
	nDC_L;                     //D/C转换置0
	for(scnt=0;scnt<8;scnt++)
	{
		if(TEMPCOM&0x80)
			SDA_H;            //P3.3置1,SD1
		else
			SDA_L;            //P3.3置0,SD1
		DELAY_100nS(1);
		SCLK_H;              //SCLK串行时钟线置1
		DELAY_100nS(1);
		SCLK_L;              //SCLK串行时钟线置1
		TEMPCOM=TEMPCOM<<1;
		DELAY_100nS(1);
	}
	nCS_H;                 //CS片选P3.2置1
}
#define nRST_H	P1OUT|=BIT4
#define nRST_L	P1OUT&=~BIT4
#define nCS_H	P3OUT|=BIT2
#define nCS_L	P3OUT&=~BIT2
#define SDA_H	P3OUT|=BIT3
#define SDA_L	P3OUT&=~BIT3
#define SCLK_H   P2OUT|=BIT7
#define SCLK_L   P2OUT&=~BIT7
#define nDC_H 	P3OUT|=BIT4
#define nDC_L 	P3OUT&=~BIT4
#define nBUSY	P2IN & BIT2

MSP430FR5994: TI-RTOS工程链接时出错:No specialization routine chosen for '_c_int00'

$
0
0
Part Number: MSP430FR5994

Hi, 各位工程师朋友、专家

我初次用 MSP430 处理器 + TI-RTOS ,创建了一个工程,然后COPY了 tirtos_msp43x_2_20_00_06 下的例子程序:MSP_EXP430FR5994 板 uartecho 例子

工程配置:XDCtools 3.32.0.06,TI-RTOS for MSP43x 2.20.0.06

编译没有出错,链接时出现如下错误提示:

No specialization routine chosen for '_c_int00', referenced from '.reset:boot.ae430X<boot.oe430X>

No specialization routine chosen for '_c_int00', referenced from 'ROOT_SECTION:<internal>

从字面意思看,好像是链接时找不到 _c_int00, 这个入口函数应该是 rts430_eabi.lib 库中定义的,工程配置时,Runtime support library 选择了 <automatic> ,下面其实有三个库文件可以选择:

 rts43x_lc_rd_eabi.lib

rts43x_lc_sd_eabi.lib

rts43x_eabi.lib

我也搞不清他们之间的区别,但是都尝试了一遍,都会报出链接错误。

不知道这是什么问题,请各位指教!感激不尽!

Jialinzhuang

Viewing all 3634 articles
Browse latest View live