Part Number: MSP430FR5994
-
Why can't register FRAM be written. The CCS is 12.1.0. The example cannot else.
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.
Part Number: MSP430FR5994
Why can't register FRAM be written. The CCS is 12.1.0. The example cannot else.
你好,我想在指定的FRAM区域写数据。
首先定义了首地址
#if defined (__TI_COMPILER_VERSION__)
#pragma PERSISTENT(FRAM_TEST_START)
uint32_t FRAM_TEST_START =
#elif defined (__IAR_SYSTEMS_ICC__)
__persistent uint32_t FRAM_TEST_START =
#elif defined (__GNUC__)
__attribute__ ((section (".persistent"))) uint32_t FRAM_TEST_START =
#endif
0x5500;
将地址与数据传入函数开始写如指定位置
uint32_t * FRAMCtl_A_Memory32 (uint32_t *value,uint32_t *framPtr,uint16_t count)
{
uint16_t i=0;
while (count> 0)
{
*framPtr = i;
i++;
count--;
framPtr++;
}
return framPtr;
}
仿真观察对应地址,发现寄存器值没有改变

你好,
您尝试过下面链接的代码吗?
https://dev.ti.com/tirex/explore/node?node=A__AAkb-Bq6Hd25qRBlFc08Zw__msp430ware__IOGqZri__LATEST
FR599x有MPU单元, 这可以保护FRAM,因此你需要使能FRAM写功能。
另外,该文件可能帮到您: