mcuboot/boot/boot_serial/src
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
..
boot_serial.c boot/boot_serial: allow nonaligned last chunk 2020-10-23 17:01:00 +02:00
boot_serial_priv.h boot_serial; re-enable mynewt boot_serial unittests. 2018-06-18 13:13:41 -07:00
cbor_decode.c serial_recovery: Add copied and generated CBOR decoding code files 2020-03-24 13:10:17 -06:00
cbor_decode.h serial_recovery: Add copied and generated CBOR decoding code files 2020-03-24 13:10:17 -06:00
regenerate_serial_recovery_cbor.sh serial_recovery: Replace CBOR decoding code with generated code 2020-03-24 13:10:17 -06:00
serial_recovery.cddl serial_recovery: Reduce minimum number of members in packet 2020-05-13 07:59:22 -06:00
serial_recovery_cbor.c serial_recovery: Reduce minimum number of members in packet 2020-05-13 07:59:22 -06:00
serial_recovery_cbor.h serial_recovery: Reduce minimum number of members in packet 2020-05-13 07:59:22 -06:00