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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

823 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

651 次查看
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