Skip to main content
September 24, 2021
Solved

Problems with FatFS and FreeRTOS integration

  • September 24, 2021
  • 2 replies
  • 1222 views

Hi, everyone.

I have a board with STM32F215 uC and I want to create a Data Logger on FreeRTOS.

I've been reading about these problems and I don't find what's going on.

I modified the task's stack on the FR configuration, I made sure that timebase source it's different from systick. I use a Mutex on the SD_task, but nothing works... I'm wondering if someone here can provide me any simple example. I'm desperate.

Peripheral for SD is SPI.

Thanks a lot for any flash of illumination.

Sorry for my bad english.

This topic has been closed for replies.
Best answer by

Thank you, the issue was on STACK_DEPTH of the Task. I set it with 512 Bytes and works fine.

2 replies

Walid ZRELLI
Visitor II
September 27, 2021

Hello @Araceli.Guerrero​ ,

Check the following example provided under our F2 Firmware package ( Path: Projects\STM322xG_EVAL\Applications\FatFs\FatFs_uSD_RTOS )

I hope this help you.

BeST Regards,

Walid

Best answer
November 9, 2021

Thank you, the issue was on STACK_DEPTH of the Task. I set it with 512 Bytes and works fine.