# FreeRTOS + FatFs : Works only with taskENTER\_CRITICAL

**URL:** <https://forums.freertos.org/t/freertos-fatfs-works-only-with-taskenter-critical/2113>\
**Category:** Kernel\
**Created:** [December 1, 2014, 11:23pm UTC](https://forums.freertos.org/t/freertos-fatfs-works-only-with-taskenter-critical/2113 "2014-12-01T23:23:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![richard-damon](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/richard-damon/32/38_2.png) [@richard-damon](https://forums.freertos.org/u/richard-damon)\
**Post date:** [December 2, 2014, 2:02am UTC](https://forums.freertos.org/t/freertos-fatfs-works-only-with-taskenter-critical/2113/4 "2014-12-02T02:02:02Z")

</div>

**[richard\_damon](https://sourceforge.net/u/richard_damon/)** wrote on [Tuesday, December 02, 2014](https://sourceforge.net/p/freertos/discussion/382005/thread/5dc853ff/#3ead):

You should not be using taskENTER\_CRITICAL to protect something that can take 6ms, let alone 80ms. A mutex is a much better option here, as that will only block the other tasks that try to use the file system. (The code may even support a locking method inside itself which you can connect to such a mutex).

---

_[View the full topic](https://forums.freertos.org/t/freertos-fatfs-works-only-with-taskenter-critical/2113)._
