EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Printf and PutChar

Started by gusgl2001 June 24, 2007
I am trying to use printf to make the msp430 connected to my parallel
port using TI's Parallel FET print something to the eclipse I/O output
window(if it has one), but to no avail.
As I understand, a user has himself to declare the putchar function
that printf uses. Does anyone know if there is anywhere where I can
get this function?
I wonder why something like this wouldn't be included in a compiler.

Thank you

Beginning Microcontrollers with the MSP430

FetP is a jtag interface, i don't know how to move char thru that
interface if method exist.
Instead you have to write your own PutChar and GetChar pointing to a
hardware communication channel, software/hardware serial or network....
Regards
Roberto

--- In m..., "gusgl2001" wrote:
>
> I am trying to use printf to make the msp430 connected to my parallel
> port using TI's Parallel FET print something to the eclipse I/O output
> window(if it has one), but to no avail.......
>
> I am trying to use printf to make the msp430 connected to my parallel
> port using TI's Parallel FET print something to the eclipse I/O output
> window(if it has one), but to no avail.
> As I understand, a user has himself to declare the putchar function
> that printf uses. Does anyone know if there is anywhere where I can
> get this function?
> I wonder why something like this wouldn't be included in a compiler.

IAR has (or at least used to have) a debug test mode in which calling
the stdio functions could happen using an IDE feature called "termio"
(IIRC).

To do what you're asking about is easy using the IAR tool in that way.
Other tools may do something similar. You'd surely be swimming against
the tide if you tried to write the code yourself.

JJS

Memfault Beyond the Launch