2392309_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2392309_en-US

2392309_en-US

Error when runnning sample with SDcard in MIMRT700?

I got this error when running SDCard sample in SDK for MIMRT700.

nnxxpp_0-1783509006478.png

Currently, I did not format my card. I investigated that we do not need to format card before running. What should I do to solve this problem?

Re: Error when runnning sample with SDcard in MIMRT700?

@Habib_MS 

Thank you for your response. If I want to format Sdcard on PC, which format of SDcard I need to format? I have many data on my sdcard, so I want to format it.

I have the other question. Currently, I am using the sample tflm_cifar10_cm33_core0  and I want to use SDcard with the sample tflm_cifar10_cm33_core0  to load data from sdcard. If I set JP65 to 1-2, whether I can run tflm_cifar10_cm33_core0?

Re: Error when runnning sample with SDcard in MIMRT700?

Hello @nnxxpp,
I tested the SDK v26.06 example "mimxrt700evk_sdcard_fatfs_cm33_core0" and it runs correctly on my side, regardless of whether the SD card is formatted.
Could you please verify that JP65 is set to 1-2? The default EVK configuration is 2-3.
Also, please test with one of the SD cards recommended in the example_board_readme file located in the example's doc folder.
BR
Habib

Re: Error when runnning sample with SDcard in MIMRT700?

Hello @nnxxpp,
The example creates a FAT file system on the SD card by calling the f_mkfs() function, which is executed from main, as shown in the following image:

Habib_MS_2-1783618445626.png

The FF_USE_MKFS macro is enabled in ffconf.h, which allows the application to create the file system when needed. You can find additional information about f_mkfs() on this page. Therefore, the SD card does not need to be pre-formatted with a specific configuration before running the example, since the example is able to create the file system itself.


Regarding JP65, the tflm_cifar10_cm33_core0 example should run without issues when JP65 is set to 1-2. According to the RT700-EVK schematic, JP65 only controls the output selection of a multiplexer and does not affect the functionality used by this example, as shown in the following image:

Habib_MS_0-1783618290501.png

BR
Habib

Re: Error when runnning sample with SDcard in MIMRT700?

@Habib_MS 

Thank you for deep explanation. I understood much more.

I also check my several SDcards and I found that one of them works (Sandisk 256GB) and I could run sdcard_fatfs sample.

Yes, as you mention, after setting JP65 to 1-2, I could run eqi tflm sample successfully.

Re: Error when runnning sample with SDcard in MIMRT700?

@Habib_MS 

This is the memory configuration of sdcard_fatfs. I could run sample with this memory configuration.

nnxxpp_0-1784010132685.png

But when I changed the memory configuration as below image (this configuration for NPU tflite model. It is ok when not using sdcard)

nnxxpp_1-1784010201856.png

I got error when debugging. The reason seems from memory configuration.

nnxxpp_2-1784010342870.png


How to fix this problem? Thank you.


Re: Error when runnning sample with SDcard in MIMRT700?

Hello @nnxxpp,
I am glad to hear both examples are running successfully.
As this question is separate from the original issue, could you please create a new community post for it? Feel free to tag me and I will be happy to continue assisting you.

BR
Habib

Re: Error when runnning sample with SDcard in MIMRT700?

Yes. Thank you. I found that the reason is not from memory configuration. It is from that I incorrectly config size to load data from sdcard.

タグ(1)
評価なし
バージョン履歴
最終更新日:
2 週間前
更新者: