read_memmapped: Use flashprog_read_chunked() for progress reporting

Read up to 64 KiB in one go to be able to report progress in between.
Otherwise, we might read the whole flash at once, without being able
to report progress.

Change-Id: I272a53f4be6e7c5bf2811d4332688a31a0080f24
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/74866
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
1 file changed