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.

[参考译文] LP-MSPM0G3507:LP-MSPM0G3507

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1383858/lp-mspm0g3507-lp-mspm0g3507

器件型号:LP-MSPM0G3507
主题中讨论的其他器件:MSPM0G3507

工具与软件:

大家好、我新加入了使用 MSPM0G3507在 CCS 中进行编码的行列。 我想用外部按钮和电阻创建一个简单的 LED 闪烁程序,但我无法创建.out,project.o 和 project.d 文件以及 ticlang.d 和 ticlang.o: Zou 可以帮我创建 mz 第一个程序吗? 下面是 mz 代码。

#include "ti_msp_dl_config.h"
#include <C:/Users/ta/workspace_v12/test1/Debug/include/msp/m0p>

extern volatile uint32_t interruptVectors[];

int main(void)
{
    SYSCFG_DL_init();

    /*
     * Turn OFF LED if SW is open, ON if SW is closed.
     * LED starts OFF by default.
     */

    NVIC_EnableIRQ(GPIO_SWITCH_INT_IRQN);
    DL_GPIO_clearPins(GPIO_LEDS_PORT, GPIO_LEDS_PIN_0_PIN);

    while (1) {
        __WFI();
    }
}

void GROUP1_IRQHandler(void)
{
    switch (DL_Interrupt_getPendingGroup(DL_INTERRUPT_GROUP_1)) {
        case GPIO_SWITCH_INT_IIDX:
            /* If SW is high, turn the LED off */
            if (DL_GPIO_readPins(
                    GPIO_SWITCH_PORT, GPIO_SWITCH_PIN_1_PIN)) {
                DL_GPIO_clearPins(GPIO_LEDS_PORT, GPIO_LEDS_PIN_0_PIN);
            }
            /* Otherwise, turn the LED on */
            else {
                DL_GPIO_setPins(GPIO_LEDS_PORT, GPIO_LEDS_PIN_0_PIN);

            }
            break;
    }

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

    您好!

    但我无法创建.out、project.o 和 project.d 文件以及 ticlang.d 和 ticlang.o

    是否遇到构建故障? 如果是、请在生成控制台中提供确切的错误。

    谢谢

    Ki