How to loading .xml file on i.MXRT1172

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

How to loading .xml file on i.MXRT1172

Jump to solution
712 Views
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.

Labels (1)
0 Kudos
1 Solution
702 Views
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

View solution in original post

1 Reply
703 Views
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