How to loading .xml file on i.MXRT1172

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

How to loading .xml file on i.MXRT1172

跳至解决方案
954 次查看
scarletlee
Contributor III

Hi,

I want to loading .XML file via SD card on i.MXRT1172.

Can i.MXRT1172 support loading .XML file function?

Thanks.

标签 (1)
0 项奖励
回复
1 解答
944 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @scarletlee 

   Do you mean, the SD card with the FatFs filesystem, then you put the .xml file in the SD card, then read it with the RT1172, right?

   You can try to use the fatfs file to open it, whether it will Ok or not?

  Eg:

error = f_open(&g_fileObject, _T("/dir_1/f_1.dat"), (FA_WRITE | FA_READ | FA_CREATE_ALWAYS));

You can use:

error = f_open(&g_fileObject, _T("/dir_1/f_1.xml"), (FA_WRITE | FA_READ | FA_CREATE_ALWAYS));

If the error is not success, it means the fatfs can't support it.

More details, you can check the fatfs file system:

http://elm-chan.org/fsw/ff/doc/filename.html

 

Wish it helps you!

Best Regards,

Kerry

在原帖中查看解决方案

1 回复
945 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @scarletlee 

   Do you mean, the SD card with the FatFs filesystem, then you put the .xml file in the SD card, then read it with the RT1172, right?

   You can try to use the fatfs file to open it, whether it will Ok or not?

  Eg:

error = f_open(&g_fileObject, _T("/dir_1/f_1.dat"), (FA_WRITE | FA_READ | FA_CREATE_ALWAYS));

You can use:

error = f_open(&g_fileObject, _T("/dir_1/f_1.xml"), (FA_WRITE | FA_READ | FA_CREATE_ALWAYS));

If the error is not success, it means the fatfs can't support it.

More details, you can check the fatfs file system:

http://elm-chan.org/fsw/ff/doc/filename.html

 

Wish it helps you!

Best Regards,

Kerry