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 SRAM和FRAM

Expert 2115 points
Other Parts Discussed in Thread: MSP430FR5994

1. MSP430FR5994拥有256KB FRAM,8KB SRAM,各有什么用途?

2.定义的数组、变量等是不是都存储在SRAM中?

3. 以下数组定义是什么意思,存储在什么地方,为什么不会溢出?

#pragma LOCATION(dataRecorded1, 0x10000);
#pragma PERSISTENT(dataRecorded1);
uint16_t dataRecorded1[32768] = {0};

  • 1、简单点来讲, SRAM就是RAM,FRAM是ROM

    2、正常定义的数组和变量,如果没经过优化的话默认都是存储在SRAM中

    3、#pragma LOCATION是一个pragma命令,用来定位该指令之后的全局或静态变量、函数到指定的absolute address、寄存器或section中。

    #pragma PERSISTENT是因为在.cmd文件有一个.TI.persistent

  • #pragma LOCATION(dataRecorded1, 0x10000);  是将dataRecorded1的地址定为0x10000 ,那这个地址是SRAM还是FRAM?