TCM is a continuous memory area that is always valid (if TCM is enabled ). TCM is used as a part of the physical memory ing of the system and does not need to be supported by external memory with the same physical address. Therefore, the TCM action is different from the high-speed cache in the memory area marked as a direct write cache. In this type of area, no external write will occur when writing to the memory location in TCM.
TCM is used to provide low-latency memory to the processor, which has no unpredictability unique to the cache. You can use TCM to store important routines, such as interrupt processing routines or real-time tasks that require high-speed cache uncertainty. In addition, you can use TCM to store temporary register data, some attributes are not suitable for cache data types, and important data structures such as interrupt stacks.