Use of SDRAM breaks fatfs sdcard freertos example

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

Use of SDRAM breaks fatfs sdcard freertos example

1,719 Views
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 Kudos
Reply
6 Replies

1,700 Views
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 Kudos
Reply

1,696 Views
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 Kudos
Reply

1,689 Views
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 Kudos
Reply

1,668 Views
snahmad
Contributor II

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

0 Kudos
Reply

1,660 Views
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 Kudos
Reply

1,678 Views
snahmad
Contributor II

Thanks, I will try it in few days.

0 Kudos
Reply