Skip to main content
Visitor II
August 1, 2023
Question

Using SD card with STM32F72CBT6

  • August 1, 2023
  • 1 reply
  • 751 views

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/

 

  

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    August 1, 2023

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..