status = add_device("scia", _SSA, SCI_open, SCI_close, SCI_read, SCI_write,
SCI_lseek, SCI_unlink, SCI_rename);
fopen("scia:","w");
freopen("scia:", "w", stdout);
setvbuf(stdout, NULL, _IONBF, 0);
使用上段程序初始化后,前面pinrtf可正常输出,后面输出乱码,请问怎么回事,该如何修改?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
status = add_device("scia", _SSA, SCI_open, SCI_close, SCI_read, SCI_write,
SCI_lseek, SCI_unlink, SCI_rename);
fopen("scia:","w");
freopen("scia:", "w", stdout);
setvbuf(stdout, NULL, _IONBF, 0);
使用上段程序初始化后,前面pinrtf可正常输出,后面输出乱码,请问怎么回事,该如何修改?
补充说明 :
[14:41:44.424]收←◆Hfputs testputs test
10 Z --- 10和Z 打印语句为printf("%d",10);putchar(90);
[14:41:45.923]收←◆??窨蚪浇fNdLbF\2J`PRDHgPRA1@x?0??郓4g6缾\0?4g?&敏!HfA? ?
D4??F?H?J?L揘沢\0捑揪浇?蒈詯訟元╘0櫓 ------此处打印语句同为printf("%d",10);
[14:41:47.423]收←◆log flag ---此举使用puts语句打印正常
下图是工程memory 可供参考