File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Documentation/applications/testing/mtd_test Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments