RIOT
RIOT copied to clipboard
tests/periph/flashpage: make mtd_raw command write bytes instead of ASCII
Contribution description
Given the name of the command write_raw in tests/periph/flashpage, it should accept raw bytes instead of a string.
This enables more possible test input.
Testing procedure
BOARD=same54-xpro make -C tests/periph/flashpage flash term
2023-12-13 12:52:07,847 # write_raw 0xFE000 11223344556677889
2023-12-13 12:52:07,852 # error: data must have an even length and must be <= 128
write_raw 0xFE000 112233445566778899
2023-12-13 12:52:14,145 # write_raw 0xFE000 112233445566778899
2023-12-13 12:52:14,150 # wrote local data to flash address 0xfe000 of len 9
read 127
2023-12-13 12:52:20,552 # read 127
2023-12-13 12:52:20,556 # Read flash page 127 into local page buffer
2023-12-13 12:52:20,557 # Local page buffer:
2023-12-13 12:52:20,566 # 00000000 11 22 33 44 55 66 77 88 99 FF FF FF FF FF FF FF ."3DUfw.........
Issues/PRs references
Murdock results
:heavy_check_mark: PASSED
629c0c2f1a08851a4310b6e5530d93133b91df31 tests/periph/flashpage: make mtd_raw write bytes instead of ASCII
| Success | Failures | Total | Runtime |
|---|---|---|---|
| 38 | 0 | 39 | 01m:29s |
Artifacts
Whats the change from the last force push? Can I press merge?