I want to know the functions and differences between the FRAM(256KB) and the RAM(8KB)?
When and how to use them respectively?
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.
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.
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: