Trevor Switkowski

printf function and M5213EVB

Discussion created by Trevor Switkowski on Apr 14, 2006
Latest reply on Apr 17, 2006 by Michael Norman
Hi everyone,

I was wondering if anybody can tell me what all I need (files, project options, etc) in order to successfully use the printf function? I can get it to work in the 'power measurement utility' sample project, but not in my own. I have been trying to look through the code in that project to see if there is some initialization needed for the serial port, but can't seem to spot anything. I have tried to add the printf.c file to my project, but it says that a few of the functions are defined more than once. Also, before I added the file, the 'printf' keyword was recognized, and when i right clicked on the word and said 'go to definition', it took me to the printf.c file. Any pointers?


Thanks,

Trevor

Outcomes