MotionFit SDK and IAR Embedded Workbench

By matte , 1 August 2012

I understand that Embedded MotionApps Lite provided in the MotionFit SDK was originally developed in Code Composer Studio. Most of our workgroup uses IAR Embedded Workbench (I think it's a $$$ issue) and I wondered if anyone else here had tried to compile this in IAR EW and what was necessary to get it working. I've tried a few times, got it compiled, but stuck at the linker errors pointing to header file functions.

Eg, the first two errors are

Error[e46]: Undefined external "msp430_configure_sysclock" referred in main ( C:...projectDebugObjmain.r43 )
Error[e46]: Undefined external "msp430_clock_enable" referred in main ( C:...projectDebugObjmain.r43 )


The referenced functions appear to just be function prototypes, eg:
#ifndef _MSP430_SYSCLOCK_H_
#define _MSP430_SYSCLOCK_H_

/**
* @brief Set the frequency of MCLK, SMCLK, and ACLK.
* The logic is based on examples from TI.
* @return 0 if successful.
*/
int msp430_configure_sysclock(void);

#endif /* _MSP430_SYSCLOCK_H_ */

hernan_angel

13 years 7 months ago

@umdif wrote:

I understand that Embedded MotionApps Lite provided in the MotionFit SDK was originally developed in Code Composer Studio. Most of our workgroup uses IAR Embedded Workbench (I think it's a $$$ issue) and I wondered if anyone else here had tried to compile this in IAR EW and what was necessary to get it working. I've tried a few times, got it compiled, but stuck at the linker errors pointing to header file functions.


I think you'll find that you can't use IAR Embedded Workbench--I think you can only use Code Composer Studio because part of the product is delivered in binary form only (as a library) and not source. Because the library format and calling conventions between the two compilers are totally incompatible, you're going to fail. :-(
phpbb Post ID
20868

matte

13 years 6 months ago

Thank you, Paul, that is exactly the clarification I sought.

I subsequently downloaded the Atmel version of MotionApps to find the sections we'd need to use, and convert them to MSP430. MotionApps has proven to be a surprisingly extensive program. I anticipate it's probably actually easier to pick up a copy of CCS and go from there if we want to make use of the DMP.

Although, from reviewing the code, it appears that the DMP functionality is more limited than I'd expected. I see that it does send interrupts, and maybe low pass filtered data, but not pose or attitude estimation.

phpbb Post ID
20871
phpbb Topic ID
14559