why I can't use the MFS in different task?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

why I can't use the MFS in different task?

406 Views
botaoyang
Contributor II

I try to use the MQX MFS to save file in task_a,and the SD card and MFS are init in task_b, when the program goes to error_code = ioctl(filesystem_handle, IO_IOCTL_CREATE_SUBDIR,(uint32_t *)file_path); the program will stop, what is the problem?

I'am using my own borad and the MQX 4.1, both are tested to be ok.

Labels (1)
0 Kudos
1 Reply

234 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi

I  think the two tasks have different context, I don't see your code but I suggest you check the input parameters, filesystem_handle, is it a valid pointer?

Regards

Daniel