2023-08-01 09:28 AM
Hı ı am using spi1 one for to write log to sd and using uart2 interrupt to get gps data. But today when ı checkup the rxbuffer ı see nothing . when ı close
" fresult = f_mount(&fs, "/", 1); "
it startted to read again how it is possible.
Also ı am using a sd library which is here https://controllerstech.com/sd-card-using-spi-in-stm32/
2023-08-01 03:18 PM
Sorry, no clear idea of your implementation.
Would advise not trying to f_write() bytes from the UART2 interrupt handler or call-back Or any of the Fat FS functions for that matter.
Make the SD Card work in a foreground application, or loop, and collect the data in a buffer from the UART.