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.

[参考译文] MSP430FR2676:如何配置.text 区域使用 FRAM 和 HIFRAM

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1001971/msp430fr2676-how-to-config-text-region-use-both-fram-and-hifram

器件型号:MSP430FR2676

您好!

我使用的 MSP430FR2676有64KB 的偏移量进入 FRAM 和 HIFRAM。 但是、当我使用 GCC 编译器来编译工程时、它仅对.text 使用 FRAM、因此我的代码不能超过32KB。

如何将完整64KB 用于我的代码

谢谢。

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

    您好!

    请检查编译器的预处理器选项是否设置为 mspx 和大内存模式。  

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

    大家好、我通过设置标志-mlarge、-mcode-region=或者、-mdata-region=或者进行配置。 但我遇到了以下错误:

    /libm.a 使用小代码模型、而/crt0.o 使用大代码模型

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

    您好!  

    请检查以下可与 GCC 编译的设置。  

    -mmcu=msp430fr2676 -mhwmmmmult=f5series -i"C:/ti/ccs910/ccs/ccs_base/msp430/include_gcc -i"C:/My Projects/CAPTIVATE/msp430fr267x_euscia0_SPI_11.c"-i"C:/ti/ccs910/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include -og -g -gdwarf-3 -gstrict-dwarf -Wall

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="487031" URL"~/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1001971/msp430fr2676-how-to-config-text-region-use-both-fram-and-hifram/3701923 #3701923"]

    大家好、我通过设置标志-mlarge、-mcode-region=或者、-mdata-region=或者进行配置。 但我遇到了以下错误:

    /libm.a 使用小代码模型、而/crt0.o 使用大代码模型

    [/报价]

    GCC 链接器 multi-lib 使用调整代码生成的选项来选择要链接的运行时库。

    在 CCS 中、我发现当在 CCS Build -> GNU Compiler 下指定用于调整代码生成的选项时、并非所有选项都传递给链接器、这会导致此类错误。

    假设您使用的是 CCS 工程、您能否尝试在  CCS Build -> GNU Compiler and CCS Build -> GNU Linker 下设置-mlarge、-mcode-region=要么、-mdata-region=任一选项。

    如果这不能解决问题、您能否发布编译器和链接器命令行的完整输出?