Integrate SD card to evkmimxrt1060_tensorflow_lite_kws

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

Integrate SD card to evkmimxrt1060_tensorflow_lite_kws

跳至解决方案
1,335 次查看
nahan_trogn
Contributor III

Hi NXP,

I want to integrate SD card to evkmimxrt1060_tensorflow_lite_kws, but not success.The console stuck in "Make file system......The time may be long if the card capacity is big."

When debug, I see that Program is hanging in disk_initialize()

I copied all file in fatfs,sdmmc,board,driver,component,... from example SDcard project to my kws project, and define SD_ENABLED in pre-processor.

This attached link is my project (27MB)https://drive.google.com/file/d/1YOzNcXlGXQGUtHLPs1uZehqtpYvVcQug/view?usp=sharing 

Thanks in advance.

 

0 项奖励
回复
1 解答
1,264 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @nahan_trogn,

Modifying the memory map like the following one I was able to debug your proyect:

Alexis_A_0-1621472087356.png

It looks like using the buffers for the SD outside the internal memory cause some problems.

Best Regards,

Alexis Andalon

 

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,310 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @nahan_trogn,

Did you try the SD project before to check that the SD is correctly recognized?

Best Regards,

Alexis Andalon

0 项奖励
回复
1,305 次查看
nahan_trogn
Contributor III

Yes, I had run evkmimxrt1060_sai_peripheral, evkmimxrt1060_sai, evkmimxrt1060_sdcard_fatfs. Everything is ok.

0 项奖励
回复
1,289 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @nahan_trogn,

Unfortunately, I can't download the project from the link attached. Could you try to attach it to the post?

Best Regards,

Alexis Andalon

0 项奖励
回复
1,285 次查看
nahan_trogn
Contributor III

Hi,

I've re-uploaded my project to MEGA

https://mega.nz/file/lPIylRiT#_I5_EaqcBjvJzILgR67aAUUFuKD6UnNuAaYStE2mPyA 

Since project's size is more than 25MB so I can't attach it.

Thanks.

0 项奖励
回复
1,265 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @nahan_trogn,

Modifying the memory map like the following one I was able to debug your proyect:

Alexis_A_0-1621472087356.png

It looks like using the buffers for the SD outside the internal memory cause some problems.

Best Regards,

Alexis Andalon

 

 

0 项奖励
回复