I2C issue with RC7 release

Topics for the Eclipse Environment
Post Reply
CelNB
Posts: 10
Joined: Fri Aug 21, 2009 3:43 pm

I2C issue with RC7 release

Post by CelNB »

I imported my design from NBEclipse IDE old version (I couldn't find the version number from the 'About...') to RC7a. While the project was compiled, error messages showed up. Error message is: undefined reference to `Multi_I2CInit'

The project could be complied on old NBEclipse IDE without any problems.

Hardware: MOD5213

Could anyone tell me how to solve this issue? Thanks.
fanat9
Posts: 56
Joined: Thu Apr 24, 2008 4:23 pm
Location: Boston
Contact:

Re: I2C issue with RC7 release

Post by fanat9 »

CelNB
Posts: 10
Joined: Fri Aug 21, 2009 3:43 pm

Re: I2C issue with RC7 release

Post by CelNB »

Thanks for the reply. I tried to create a new project and imported file systems (only *.h and *.cpp files are imported) from my old project. I also include the following code at the top of the source code:

#ifndef MCF5213
#define MCF5213
#endif

But the problem is still there. :(

I build a simple testing project, as attached.
Attachments
main.cpp
Error: undefined reference to 'multi_I2CInit'
Error location: line 40
(848 Bytes) Downloaded 309 times
User avatar
lgitlitz
Posts: 331
Joined: Wed Apr 23, 2008 11:43 am
Location: San Diego, CA
Contact:

Re: I2C issue with RC7 release

Post by lgitlitz »

Hi,

Sorry about this, I thought this fix was already in 2.37a but I was wrong. There was a bug in this release that has been fixed. A new 2.4 release should be out any day now.

I2CMulti.cpp
Line 48:
#if ( defined MCF5270 || defined MCD5213 || defined MCF5208 )
Should be:
#if ( defined MCF5270 || defined MCF5213 || defined MCF5208 )


Recompile your system files after changing this and all should be OK.
Post Reply