s = mInitCH376Host(); /* 初始化CH376 */ mStopIfError(s);
s = CKECK_connect(); /* 检查连接 */ mStopIfError(s);
s = CH376DiskMount(); /* U盘初始化 */ mStopIfError(s);
s = CH376DirCreate( "BB" ); mStopIfError(s);
s = CH376FileCreate( "TEST1.TXT" ); mStopIfError(s);
s = CH376FileOpen( "\TEST1.TXT" ); mStopIfError(s);
buf = &PutIn[0]; s = CH376ByteWrite( buf, sizeof(PutIn), NULL );
以上是调用程序的代码。 运行过CH376FileOpen( "\TEST1.TXT" ) 返回0x14操作成功 运行s = CH376ByteWrite( buf, sizeof(PutIn), NULL );之后中断返回0xB4(文件已经关闭,如果需要使用应重新打开)
请问是什么原因?