Skip to content

Documentation/benchmarks/mtd: Add MTD transfer rate test app docs. #16032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Documentation/applications/benchmarks/mtd/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
============================================
``mtd`` MTD test and transfer rate benchmark
============================================

This testing/benchmark application performs an erase/write operation to
evaluate write transfer rate and then reads the written content back to
evaluate the read transfer rate. Finally, it compares the read data with
the previously written data to ensure the MTD device is working as expected.

EXAMPLE::

nsh> mtd /dev/mtdblock0
FLASH Test on device with:
Sector size: 4096
Sector count: 256
Erase block: 4096
Total size: 1048576

Starting write operation...

Write operation completed in 5.46 seconds
Total bytes written: 1048576
Transfer rate [write]: 187.55 KiB/s

Starting read operation...

Read operation completed in 0.11 seconds
Total bytes read: 1048576
Transfer rate [read]: 9309.09 KiB/s

Data verification successful: read data matches written data