I got this error when running SDCard sample in SDK for MIMRT700.
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?
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?
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
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:
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:
BR
Habib
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.
This is the memory configuration of sdcard_fatfs. I could run sample with this memory configuration.
But when I changed the memory configuration as below image (this configuration for NPU tflite model. It is ok when not using sdcard)
I got error when debugging. The reason seems from memory configuration.
How to fix this problem? Thank you.
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
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.