I am not going to debate 'cp vs dd'.
To flush the system cache use 'sync'.
With dd can skip the cache with 'oflag=direct'.
Nevertheless, I find quite dangerous to write on a raw disk, one mistake, and can wipe a disk, usually the wrong one.
Writing to a (wrong) filesystem would end up with just a harmless file copied there.
More professional approaches would be to use picotool, PICOBOOT interface, or SWD programming, the latter not with such clients.
To flush the system cache use 'sync'.
With dd can skip the cache with 'oflag=direct'.
Nevertheless, I find quite dangerous to write on a raw disk, one mistake, and can wipe a disk, usually the wrong one.
Writing to a (wrong) filesystem would end up with just a harmless file copied there.
More professional approaches would be to use picotool, PICOBOOT interface, or SWD programming, the latter not with such clients.
Statistics: Posted by gmx — Mon Dec 15, 2025 9:24 pm