Hi,
I am working over a project, where accelerometer data is being collected and monitored using msp430g2403. I am using sqrt() function to calculate the resultant of the 3 axis data of LIS3DH accelerometer. I have worked on msp430g2553 before and implemeted the similar code over it. I havent found any issues, but when I have ported the code from MSP430g2553 to msp430g2403. here the error
"../lnk_msp430g2403.cmd", line 93: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".text" size 0x3450 . Available memory ranges:
FLASH size: 0x1fe0 unused: 0x1ed4 max hole: 0x1ed4
error #10010: errors encountered during linking; "odg_MD_LIB.out" not built
pops up. On debugging I have found this. When I have commented the line
temp = ((x*x)+(y*y)+(z*z));
// res_i = sqrt(temp);
and ran the code, then it seems to work. On uncommenting this line, complier throws the above error. please help me in understanding this issue and also to overcome this problem..
Thanking you,
Sri.