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.

MSP432E401Y: energia调试MSP432P401R

Part Number: MSP432E401Y
Other Parts Discussed in Thread: ENERGIA

我尝试使用引脚 p9.6 和 p9.7 实现另一个辅助串行,并且是数据表中读取的 tx 和 rx 引脚。

我对 cores 文件夹中的 pins_energia 、硬件 serial.h 和硬件 serial.cpp 进行了更改。

我之后尝试了 serial1这些更改有效但不是 serial2,我需要将 serial2 与使用 tx 和 rx 引脚传输数据的无线设备一起使用。

我在使用energia调试serial2出现以下错误

Energia: 1.8.11E23 (Windows 10), 开发板:"RED LaunchPad w/ msp432p401r EMT (48MHz)"

C:\Users\Administrator\Desktop\HILLE/HILLE.ino:9: undefined reference to `Serial2'

C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_749401\sketch\HILLE.ino.cpp.o: In function `loopHILLE()':

C:\Users\Administrator\Desktop\HILLE/HILLE.ino:19: undefined reference to `Serial2'

collect2.exe: error: ld returned 1 exit status

exit status 1
为开发板 RED LaunchPad w/ msp432p401r EMT (48MHz) 编译时出错。

  • SerialObjects.cpp

    Board_init.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*
    * Copyright (c) 2015-2016, Texas Instruments Incorporated
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    *
    * * Neither the name of Texas Instruments Incorporated nor the names of
    * its contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    HardwareSerial.cppHardwareSerial.h这是我的MSP432的文件,您看一下哪里有问题

  • 您好,我们已将您的问题升级到英文论坛寻求帮助,如有答复将尽快回复您。谢谢!

  • 您好,

    十分抱歉,由于MSP432P401R目前已在走停产流程,我们的团队目前没有可以支持 Energia 方面的专家,我们的任何产品(包括 TM4C)都不支持 Energia。给您带来的任何不便敬请谅解!

x 出现错误。请重试或与管理员联系。