Question
SDIO/FatFS file write in SD Card on STM32F405 fails when ADC interrupt is running [SOLVED]
Posted on January 16, 2015 at 13:48
Hello,
I have implemented SD Card with FatFS using firstly STCubeMX driver in a polling mode, secondly by adaptation of the \STM324xG_EVAL\Applications\FatFs\FatFs_uSD example in DMA/Intr mode. I am writing a line of about 100 characters every 40 ms in the card using f_puts for a long time (using 1-bit access only - another issue sent to the forum). Unfortunatelly, running an interrupt lasting 1-2 us every 35 us (measured by a scope and yes, I need it seriously) causes that in time of order 1-100 s the function f_puts fails with return code -1. I tried to increase the stack but it is not the case. Thank you for any advice. Ivan