Part Number: MSP430FR6989
Other Parts Discussed in Thread: MSP430WARE
Tool/software: TI C/C++ Compiler
Hi,
I am using IAR to simulate some functions of QmathLib in MSP430FR6989. The problem i am facing is in linking the library to the compiler. Below is my source code:
#include <msp430.h>
#include "QmathLib.h"
//************************************************************************** // Main //**************************************************************************
void main(void) {
float x, y, z1, z2; _q12 xx, yy, zz;
// floating point x = 1.0; y = 7.0;
z1 = x/y; // floating point division
// fixed point xx = _Q12(1.0); // convert floating point to fixed point yy = _Q12(7.0); // convert floating point to fixed point
zz = _Q12div(xx, yy); // fixed point division
z2 = _Q12toF(zz); // convert fixed point to floating point
while(1);
} //end main()
Whenever i try to run it, it throws following errors:
Error[e46]: Undefined external "_Q12div" referred in main
Error[e46]: Undefined external "_Q12toF" referred in main
Both of these functions are defined in QmathLib.h still it is not recognizing it. Please provide necessary guidance regarding the issue.