How to improve writing speed in SD Card?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User8320
Level 1
Level 1
Hello,

i'm using a xmc 4500.

i'm tying to use the SLTHA001 App to create file system on a sd card.

but Data writing is a slow speed.

i use fwrite() function.

How to improve writing speed in SD Card?


1135.attach
1136.attach
0 Likes
8 Replies
User8320
Level 1
Level 1
In addition I would like to save the 100byte degree in 1ms.
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Joodol17 wrote:
In addition I would like to save the 100byte degree in 1ms.


Base on your current situation, how long does it take to write 100byte to the SD card?
0 Likes
User8320
Level 1
Level 1
Travis wrote:
Base on your current situation, how long does it take to write 100byte to the SD card?


It takes about 2 ~ 5ms degree.
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Joodol17 wrote:
It takes about 2 ~ 5ms degree.


Hi,

We have this SLTHA001_Example1, which by observation can fill a file of 5MB in around 13-14seconds. So this should comes to about 180us per 100 bytes.

http://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html



Best Regards
Travis
0 Likes
User8320
Level 1
Level 1
Travis wrote:
Hi,

We have this SLTHA001_Example1, which by observation can fill a file of 5MB in around 13-14seconds. So this should comes to about 180us per 100 bytes.

http://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html

1141.attach

Best Regards
Travis


Thank you for advice.

I know demo source code.

However, when a continuous Test delay occurs.

All I want is to save the 1KB 1ms intervals.
0 Likes
User8320
Level 1
Level 1
Travis wrote:
Hi,

We have this SLTHA001_Example1, which by observation can fill a file of 5MB in around 13-14seconds. So this should comes to about 180us per 100 bytes.

http://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html

1141.attach

Best Regards
Travis


Thank you for advice.

I know demo source code.

However, when a continuous Test delay occurs.

All I want is to save the 1KB 1ms intervals.
0 Likes
User8320
Level 1
Level 1
Thank you for advice.

I know demo source code.

However, when a continuous Test delay occurs.

All I want is to save the 1KB 1ms intervals.
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
I hope I can help you, do you have any ideal which part of the software is causing delay, example such as polling for a flag to be clear/set? So that we can narrow down the problem.
0 Likes