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.

[参考译文] MSP432WARE:MSP432WARE

Guru**** 2531950 points
Other Parts Discussed in Thread: MSP432WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/627916/msp432ware-msp432ware

器件型号:MSP432WARE
主题中讨论的其他器件:MSP430WARE

您好,

去年,当我开始使用 msp432 Launchpad 时,我使用了 CCSv6.1.1, MSP430WARE 本身中也提供了 msp432的示例项目。

由于某种原因、我不得不卸载 CCS、并且在重新安装相同版本的 CCS 时、我无法在 MSP430WARE 中找到 msp432的示例项目。

我搜索并下载具有示例项目的 MSP432WARE,但当我加载项目时(例如最简单的项目 LED 闪烁),它给我带来了60多个错误。

Simplelink_msp432_SDK 中的项目也无法正常运行。

我不想将 CCS 升级到版本7、因为我有许多正在使用当前版本(6.1.1)运行的项目

我已经下载了三个软件包:MSP430WARE、MSP432WARE 和 Simplelink_msp432_SDK

//

//  MSP432P401演示-软件切换 P1.0

//

//  说明:通过对软件循环内的 P1.0执行异或操作来切换 P1.0。

//  ACLK = 32.768kHz、MCLK = SMCLK =默认 DCO~1MHz

//

//              MSP432P401x

//            ------------

//        /|\|                |

//        ||                |

//        -|RST            |

//          |                |

//         |            P1.0|--> LED

//

//  William Goh

//  Texas Instruments Inc.

//  2016年6月(更新)| 2013年11月(创建)

//  使用 CCSv6.1、IAR、Keil、GCC 构建

//

#include "msp.h"

#include

 

int main (void){

  volatile uint32_t i;

 

  WDT_A->CTL = WDT_A_CTL_PW |            //停止 WDT

                WDT_A_CTL_HOLD;

 

  P1->DIR |= BIT0;                      // P1.0设置为输出

 

  while (1)                             //连续循环

  {

      P1->OUT μ^ BIT0;                  //闪烁 P1.0 LED

      对于(I = 20000;I > 0;I-);      //延迟

  }


 
上面显示了 LED 引脚切换程序。
 标有红色的文本,我不理解使用的不同语法。 它会在不同文件中与其他文件一起提供错误


如果能帮助我解决同样的问题、那将会很棒。

此致、
Maisie