mcuboot/boot/boot_serial
Andrzej Puzdrowski f48de7a523 boot/boot_serial: allow nonaligned last chunk
The last data packet might be non aligned to multiple of
the flash write-block-size. This cause that the `image upload`
mcumgr command mighty fail if the device flash driver doesn't
support one-byte write-block-size.

This patch complements the last write operation to aligned chunk
so it meet the requirements.

Added check for ensure than received data chunk doesn't
cross expected image size.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2020-10-23 17:01:00 +02:00
..
include/boot_serial boot_serial; improve platform abstraction. 2018-06-14 23:19:06 +03:00
src boot/boot_serial: allow nonaligned last chunk 2020-10-23 17:01:00 +02:00
test mynewt: Make cflags consistent for if or ifdef usage 2019-10-21 17:22:34 -03:00
pkg.yml boot_serial; improve platform abstraction. 2018-06-14 23:19:06 +03:00
syscfg.yml zephyr/serial_adapter; no need to inject \r on \n anymore. 2018-06-14 23:19:06 +03:00