imはstm32f4のfatfsで苦労しています。何の問題もなく、私は、マウント・ファイルを作成し、でそれを書くことができます:char my_data[]="hello world"
や窓にファイルが、私は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