2022-03-29 01:37 AM
Hi.
I am using a STM32F469I-DISCO and I am trying to read/write on a SD card. Here's what I did on cubeMX:
It is working.
But as soon as I added freeRTOS (CMSIS_V2), increased minimum heap and stack size, f_open now returns FR_NOT_READY.
( first I mount with
b = f_mount(&SDFatFS, (TCHAR const*)SDPath, 0);
Is this a known issu and how to solve it?
Thanks,
Clément
Solved! Go to Solution.
2022-03-29 01:46 AM
OK for anyone else struggling with it, check Solved: Problem with FreeRTOS, FatFS on FRDM-K22F - NXP Community
"
Interrupts are disabled until you start the operating system. Therefore calling anything like FAT1_Init() which depends on interrupts will not work.
"
I was trying to write to a file before the OS started (I guess he meant the scheduler osKernelStart(); )
2022-03-29 01:46 AM
OK for anyone else struggling with it, check Solved: Problem with FreeRTOS, FatFS on FRDM-K22F - NXP Community
"
Interrupts are disabled until you start the operating system. Therefore calling anything like FAT1_Init() which depends on interrupts will not work.
"
I was trying to write to a file before the OS started (I guess he meant the scheduler osKernelStart(); )