Hi There,
I want to know the functions and differences between the FRAM(256KB) and the RAM(8KB)?
When and how to use them respectively?
Best,
Gaosheng
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.
Hi There,
I want to know the functions and differences between the FRAM(256KB) and the RAM(8KB)?
When and how to use them respectively?
Best,
Gaosheng
Hi Gaosheng,
FRAM is nonvolatile and may require additional wait states to operate from at higher frequencies. SRAM is volatile and should be able to operate at higher frequencies without additional wait states. SRAM is typically used as working memory for data which is repeatedly read and written as its operated on.
Hope this helps.
BR,
Leo
Hi Leo,
Thanks for your help!
One point is unclear for me. When I am coding, how can I distinguish when to store into the FRAM, when to store into the SRAM?
BR,
Gaosheng
Hi Gaosheng,
This is typically done in your declarations and in your linker command file. Code(.text) is commonly allocated to FRAM and data is commonly allocated to SRAM in your linker command file.
If you want to execute some specific code (which might be running in a tight loop or as part of an ISR that has to execute quickly) - you might also use the ramfunc attribute. This same attribute is supported for both FRAM and Flash based devices. You can learn more about this feature here:
BR,
Leo
**Attention** This is a public forum