Skip to content

Commit 6eceb1c

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

File tree

1 file changed

+32
-0
lines changed
  • Documentation/applications/testing/mtd_test

1 file changed

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

0 commit comments

Comments
 (0)