cancel
Showing results for 
Search instead for 
Did you mean: 

Using SD card with STM32F72CBT6

Resonance7
Associate

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/

 

  

1 REPLY 1

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..