Want to use stdio.h and string.h with 51QE Coldfire V1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Want to use stdio.h and string.h with 51QE Coldfire V1

1,619 Views
Lokutas
Contributor I
Can somebody please help me figure out how to make the string manipulation ANSI routines work with Codewarrior and the Coldfire QE MCU line.
 
I have ported 08QE code to 51QE but all the string manipulation and formated printed routines are not working...
 
I haven't been able to figure out where in the headers to activate or deactivate compiler directives to make them work.
 
Can somebody be kind enough to help me get out of this jam?
 
Thanks in advance,
Carlos
Labels (1)
0 Kudos
Reply
2 Replies

542 Views
Lokutas
Contributor I
The functions I'm havingo problems with are:
 
sprintf, sscanf, strstr, memcpy and strchr
 
Thanks,
C
0 Kudos
Reply

542 Views
Lokutas
Contributor I
I had words reading int on scanf sscanf ... sscanf returns 16bit ints with 08 and 32 bit ints with CF...
 
sprintf required a couple of #defineson the preprocessor directives for LIBDEF_PRINTF_ALLOW_HEXINT and LIBDEF_PRINTF_PREC, after this it all worked as a charm...
 
Thanks for the attention paid.
 
Cheers,
Carlos
 
0 Kudos
Reply