I am using the software example 'MassStorage' , the IAR compiler and the STM32F103ZE kickstart board for development.
I wanted to add some functionality which requires consecutives reads from the SD card. For simplicity, this example illustrates the problem:
file: sd_card_mode.c , line function SdDiskIO
When I take out the for/next loop delay, the second read fails. Problem seems to be, that the second read is not completed. The 512 buffer is filled only half with correct data. It looks like the DMA is still going on.
Anybody seen similar issues with this example or in general with the SDIO example ?
- Thanks, Cols