Skip to content

Commit 6799b87

Browse files
committed
Documentation/testing: Add MTD transfer rate test app docs
Add documentation entry for the `mtd` benchmark application. Signed-off-by: Tiago Medicci Serrano <[email protected]>
1 parent 453c6f7 commit 6799b87

File tree

1 file changed

+31
-0
lines changed
  • Documentation/applications/benchmarks/mtd

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
==============================
2+
``mtd`` MTD transfer rate test
3+
==============================
4+
5+
This testing application performs an erase/write operation to evaluate write
6+
transfer rate and then reads the written content back to evaluate the read
7+
transfer rate. Finally, it compares the read data with the previously written
8+
data to ensure the MTD device is working as expected.
9+
10+
EXAMPLE::
11+
12+
nsh> mtd /dev/mtdblock0
13+
FLASH Test on device with:
14+
Sector size: 4096
15+
Sector count: 256
16+
Erase block: 4096
17+
Total size: 1048576
18+
19+
Starting write operation...
20+
21+
Write operation completed in 5.46 seconds
22+
Total bytes written: 1048576
23+
Transfer rate [write]: 187.55 KiB/s
24+
25+
Starting read operation...
26+
27+
Read operation completed in 0.11 seconds
28+
Total bytes read: 1048576
29+
Transfer rate [read]: 9309.09 KiB/s
30+
31+
Data verification successful: read data matches written data

0 commit comments

Comments
 (0)