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.

[参考译文] CCS/MSP430FR5949:如何从 FRAM 切换到 RAM

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/854682/ccs-msp430fr5949-how-to-switch-from-fram-to-ram

器件型号:MSP430FR5949
主题中讨论的其他器件:MSP430FR2311

工具/软件:Code Composer Studio

您好、请为我提供一个示例程序、以了解如何从 FRAM 切换到 RAM

谢谢

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

    您好!

    如果要 将 FRAM 除以 RAM 以使用、则需要在工程中修改链接器文件(.cmd)。

    一些代码可能对您有用:

    在 cmd 文件中:(这个示例是将0.5K 的 FRAM 分配为 RAM,IC:MSP430FR2311。)

    )

    内存:  

    RAM:origin = 0x2000、length = 0x400
    RAM2:origin = 0xF100、length = 0x200
    FRAM:origin = 0xF300、length = 0xC80 

    章节:

    .bss:{}> RAM | RAM2 /*全局和静态变量*/
    .data:{}> RAM | RAM2 /*全局和静态变量*/ 

     有关如何修改的更多详细信息,您可以参阅此文件:

    http://www.ti.com/lit/ug/slau132u/slau132u.pdf

    此致

    Johnson