[mw_shl_code=c,true]int main()
{
FATFS* WorkArea; //?¤×÷??
uint8_t FileBuf[512]; //??????????????
FIL* fp; //????????
FRESULT FA_error; //????????·????í?ó
uint32_t br;
usart_conf();
printf("\r\n*******?????????????é**********\r\n");
// f_mount(WorkArea,"",0);
//
// FA_error=f_open(fp, ":123.txt", FA_READ ); //????????????f_open??????±??÷??
//
// if(FA_error)
// {
// printf("?ò???????§°?%d",FA_error);
//
// f_mount(NULL,"",1);
//
// return 0;
// }
//
// FA_error=f_read(fp, FileBuf, sizeof(FileBuf), &br);
//
// if(FA_error)
// {
// printf("?????????§°?%d",FA_error);
// f_close(fp);
//
// f_mount(NULL,"",1);
// return 0;[/mw_shl_code]
程序全速运行的时候,第一个printf的内容打印不出来,不知道卡在什么地方。但是调试的时候就可以出现,调试的时候程序是按照正常的路径走的
|