The device specific data sheet states that SRAM draws 585 micro-amps @ 8Mhz. Is it correct to assume that this is the current draw when SRAM is being constantly written/read to/from? If so, what is the current draw of SRAM when on (clock still 8Mhz), but not being written/read? The family data sheet states that it's possible to turn SRAM off when going into LPM3 or LPM4 sleep, but is it possible to turn it off while the CPU is active? (assuming that my stack, variables, and code are all in FRAM) Is there a way to track how much of SRAM is being used (in bytes) by a program? In the linker script where it says "> RAM AT> ROM" for the .data section, does that mean that your program's variables are stored in FRAM and then loaded into SRAM when used? If I wanted my program to only exist and execute in FRAM, would I take RAM out of the linker script, and instead place everything in ROM (i.e. FRAM) with RWX permissions?
↧