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.

[参考译文] MSPDRIVERLIB:使用 MSP430驱动程序库时出错:“此 ROM 仅支持大数据模型。”

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1001359/mspdriverlib-error-when-using-msp430-driver-library-only-large-data-model-supported-for-this-rom

器件型号:MSPDRIVERLIB
主题中讨论的其他器件:MSP430FR2355

我对 MSP430编程比较陌生、想使用MSP430FR2355的驱动程序库(www.ti.com/.../MSPDRIVERLIB)。 我在"driverlib.h"一个新的空项目中包含了该库、并使用了以下代码:

#include <msp430.h>
#include "driverlib.h"


/**
 * main.c
 */
int main(void)
{
    WDTCTL = WDTPW | WDTHOLD;   // stop watchdog timer
    
    return 0;
}

遗憾的是、在编译时、我收到以下错误消息:

"{path}\TestLaunchPad\driverlib\MSP430FR2xx_4xx\rom_headers/rom_driverlib_fr235x.h", line 39: fatal error #35: #error directive: "Only large data model supported for this ROM."
,其中{path}是项目在我的计算机上的位置。

rom_driverlib_fr235x.h库文件中受影响的部分如下:

#if (defined(__TI_COMPILER_VERSION__) && !defined(__LARGE_DATA_MODEL__)) || \
(defined(__IAR_SYSTEMS_ICC__) && (__DATA_MODEL__!=__DATA_MODEL_LARGE__))
#error "Only large data model supported for this ROM."
#endif

我不明白、我做了什么错、或者我如何分别指定大数据模型。

有人知道如何解决这个问题吗?

感谢您的支持。

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

    您好!

    您可以尝试更改"属性"->"处理器选项"中的这些设置:

    谢谢!

    此致

    Johnson

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

    好的、现在它可以工作了。 非常感谢您的帮助!