# freeRTOS-Plus-FAT file library - corrupted files

**URL:** <https://forums.freertos.org/t/freertos-plus-fat-file-library-corrupted-files/9084>\
**Category:** Libraries\
**Created:** [February 27, 2020, 6:29am UTC](https://forums.freertos.org/t/freertos-plus-fat-file-library-corrupted-files/9084 "2020-02-27T06:29:25Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![carlk3](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/carlk3/32/266_2.png) [@carlk3](https://forums.freertos.org/u/carlk3)\
**Post date:** [March 15, 2020, 8:33pm UTC](https://forums.freertos.org/t/freertos-plus-fat-file-library-corrupted-files/9084/10 "2020-03-15T20:33:22Z")

</div>

> Slowing down the SPI clock is easy to try.

Worth trying, for sure. I just spent a couple days debugging an error in my block device driver that only showed up when I was running multiple tasks to multiple SD cards. Eventually, I tried halving the SCK frequency from 12.5 MHz to 6ish, and, whaddyaknow? Problems went away. I guess the spec. puts the top limit at 10 MHz, so I was living dangerously.

Also, I highly recommend testing at low level with ChaN’s “Low level disk I/O module function checker” ([http://elm-chan.org/fsw/ff/res/app4.c](http://elm-chan.org/fsw/ff/res/app4.c)). I’ve attached my messy, hacked-up version.[app4 - IO module function checker.c](https://forums.freertos.org/uploads/short-url/kyzvdBiKLcS0njXTHI0JBGZ93iV.c) (11.9 KB)

---

_[View the full topic](https://forums.freertos.org/t/freertos-plus-fat-file-library-corrupted-files/9084)._
