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