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.

MSP430F5342: Detected floating point operation. Recommend moving them to RAM during run time or not using as these are processing/power intensive Warning !!!!!

Part Number: MSP430F5342


Hi, I am using MSP430 to read temperatures form the sensors . To convert the digital temperature value  read from the sensors  to analog using a function which does some floating point calculation. The execution control is not going into the floating point calculation function and I am seeing the above warning . I browse through and found some link by following which I tried to put the function into RAM as below,  but it is not helping me.

Is there anything I am missing here , suggestions would be helpful.

#pragma CODE_SECTION(tempDigitalToAnalogConversion, ".ramfunc")

float tempDigitalToAnalogConversion(int digitalTemp) 

{

;

}

In the lnk_msp430f5342.cmd file as below :

SECTIONS

{

….

.ramfunc : {} load=FLASH, run=RAM  // that means load the function from FLASH to RAM and run in RAM,

 

…..

}

Thanks 

**Attention** This is a public forum