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.

[参考译文] MSP430FR5994:无法写入 FRAM

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1172717/msp430fr5994-fram-cannot-be-written

器件型号:MSP430FR5994
主题中讨论的其他器件:MSP430FR5969

大家好、

客户提出的问题需要您的帮助:

我想在 FRAM 中的特定区域写入数据。

我定义了起始地址:

#if 已定义(_TI_Compiler_version__)
#pragma PERSISTENT (FRAM_TEST_START)
uint32_t FRAM_TEST_START =
定义的#Elif (__IAR_systems_ICC__)
_persistent UINT32_t FRAM_TEST_START =
#Elif defed (_GNU_)
__attribute__((section (".persistent"))) uint32_t FRAM_TEST_START =
#endif
0x5500;

然后开始写入:

uint32_t * FRAMCtl_a_Memory32 (uint32_t *值、uint32_t * framPtr、uint16_t 计数)

uint16_t i=0;
while (计数>0)

*帧 Ptr = i;
i++;
计数--;
框架 Ptr++;

返回 framPtr;

然后我发现寄存器值不变。

此外、在 TI 的示例中、它也不会改变。

我在 msp430fr5969中查看了 TI 的示例、发现它也没有变化。

您可以帮助检查此案例吗?

此致、