RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

tests/periph/flashpage: make mtd_raw command write bytes instead of ASCII

Open fabian18 opened this issue 1 year ago • 2 comments

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

fabian18 avatar Dec 13 '23 11:12 fabian18

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

riot-ci avatar Mar 27 '24 10:03 riot-ci

Whats the change from the last force push? Can I press merge?

Teufelchen1 avatar May 08 '24 09:05 Teufelchen1