We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
at first,I make a program that list all file in SD card with FFIND function.not using RTOS yet,it's work fine.
then,I using RTOS (use RTX) ,every fuction work fine (such as fopen,fclose,etc) except for FFIND) system will crash when it's reach the line with ffind command,all task stop running .
and, no compile error.
someone pls tell me how to solve the problem,thank in advance.
Seems to me that you need more stack for the File I/O task. How much stack did you allocate for this task?
Try with stack size of 0x400 (1k Byte). You may reduce the size later till the application still works stable.
You know that sizeof (struct FINFO) = 48 bytes.
Franc