AnsweredAssumed Answered

Force to use register instead of ram memory

Question asked by jean-christophe fontaine on Jul 19, 2016
Latest reply on Jul 19, 2016 by jean-christophe fontaine



I've a function to test my ram a the begining of my software.


In this function, I fill whole the ram area with a pattern and I read the ram area to compare with the written pattern.


This function is written in C to be portable on other project.


This function uses 2 variables:


teStdReturnType MTST_TestRamIsOk(void)



teStdReturnType eReturn;

UINT32 u32Address;





Actually this function uses just registers, it is perfect because it doesn't use the ram memory.


But I need to be sure this function never use ram memory.


Is a directive or a command exist to force this function to use just registers ?


Thanks for your support.