RE: Serial Data using CodeWarrior

"Jean-Christophe MATHAE" <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hello Steve,


It seems that there is two cases to consider:
	* printf() uses gect() as an inlined function, and so you have to recompile printf()+getc();
	* printf() uses gect() only an external function (linkage happening at ... link time), and so you have only to rebuild getc().

For me, user define functions have greater "priority" than library provided functions (which have a kind of "weak" linking priority), so just redefining a library function and linking it with your project override the default library function.

All that you have to do is putting your object file *ahead* of the library files in the linker command file.

Best regards.


Jean-Christophe MATHAE

CIRTEM
http://www.cirtem.com

bâtiment Pointe Bleue
20, voie l'Occitane
BP661
31319 LABEGE cedex
France

Tél : (33) 562.24.26.82



-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.