Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

errors with generated code in TI CCS for MSP430

Rank

Total Posts: 9

Joined 2008-10-25

PM

I'm getting the error
"fit_mesg_defs" redefined: first defined in "./x/fit_product.obj"; redefined in "./x/fit_pcm.obj"
when I incorporate generated code from FitGen with custom profile.

Also getting integer const too large and extra text after number errors for generated fit.c line
const FIT_FLOAT64 fit_float64_invalid = FIT_FLOAT64_INVALID;

has anyone else seen this and come up with a resolution?      
Rank

Total Posts: 9

Joined 2008-10-25

PM

Found the following in fit.h
#define FIT_FLOAT64_INVALID ((FIT_FLOAT64)0xFFFFFFFFFFFFFFFFull)

I'm using beta version of FitGEN provided by Shannon      
Rank

Total Posts: 9

Joined 2008-10-25

PM

Partial resolution

The redefined error seems to have been eliminated by exclusion of fit_pcm.c file from build (in CCS, right click on file and marked as exclude from build). Believe the error was occurring because there were actually two copies of the code being compiled, the fit_pcm.c itself AND the code in fit_product.c due to the #include fit_pcm.c      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Correct. Don't include fit_pcm.c in the project. fit_product.c includes the configured fit_x.c product source file.