Use of SDRAM breaks fatfs sdcard freertos example

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

Use of SDRAM breaks fatfs sdcard freertos example

1,083 次查看
snahmad
Contributor II

my board is

 

https://uk.farnell.com/nxp/imxrt1050-evkb/eval-board-32bit-arm-cortex-a7/dp/2855005

 

snahmad_0-1652534524833.png

f_mkfs stuck.

 

Same exampl works with internal ram.

0 项奖励
6 回复数

1,064 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I'd like to know what demo code you used for testing, did it from the SDK library?
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励

1,060 次查看
snahmad
Contributor II

My board : evkbimxrt1050

https://www.nxp.com/document/guide/getting-started-with-the-mimxrt1050-evk-evaluation-board:GS-MIMXR...

Yes from SDK.

sdcard_fatfs_freertos

 

using SDRAM , It stop working. with default internal ram it works.

0 项奖励

1,053 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
Please check the attachment, which I modify the sdcard_fatfs_freertos demo to work with the SDRAM as the primary RAM, it works well on my board.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励

1,032 次查看
snahmad
Contributor II

What changes you did . Is it only ffconf.h file

0 项奖励

1,024 次查看
jeremyzhou
NXP Employee
NXP Employee

Thanks for your reply.
1) What changes you did . Is it only ffconf.h file
-- No, firstly, I adjusted the memory allocation for using the SDRAM, next, I modified the sdcard_fatfs_freertos.c like the below shows.

/*******************************************************************************
 * Variables
 ******************************************************************************/
AT_NONCACHEABLE_SECTION(static FATFS g_fileSystem); /* File system object */
AT_NONCACHEABLE_SECTION(static FIL g_fileObject1);
AT_NONCACHEABLE_SECTION(static FIL g_fileObject2);

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励

1,042 次查看
snahmad
Contributor II

Thanks, I will try it in few days.

0 项奖励