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