-1
Im在stm32f4上与fatfs挣扎。没问题,我可以安装,创建文件,并在其上写:char my_data[]="hello world"
和Windows文件通常表明但是当我尝试使用代码loger:stm32f4 fatfs f_write whitemarks
float bmp180Pressure=1000.1;
char presur_1[6];//bufor znakow do konwersji
sprintf(presur_1,"%0.1f",bmp180Pressure);
char new_line[]="\n\r";
if(f_mount(&myFat, SDPath, 1)== FR_OK)
{
f_open(&myFile, "dane.txt", FA_READ|FA_WRITE);
f_lseek(&myFile, f_size(&myFile));//sets end of data
f_write(&myFile, presur_1, 6, &byteCount);
f_write(&myFile, new_line,4, &byteCount);
f_close(&myFile);
HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_15);
}
,当我从电脑上阅读我有:top : notepad ++ buttom :windows notepad