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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,065件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

988件の閲覧回数
Lokutas
Contributor I
The functions I'm havingo problems with are:
 
sprintf, sscanf, strstr, memcpy and strchr
 
Thanks,
C
0 件の賞賛
返信

988件の閲覧回数
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 件の賞賛
返信