Skip to content
Commit 323422e8 authored by Dominik Ermel's avatar Dominik Ermel Committed by Carles Cufí
Browse files

dfu: Fix write block size check on, probably, incorrect device



The write block size has been gathered from device pointed by
chosen 'zephyr,flash', while it should be taken from a device
a target image flash area resides on.
The write block size has been used to check if write buffer
is properly aligned.
The check is only possible on devices that have write-block-size
property in DTS, so in case of SPI connected devices this property
may not be available - when device does not have the property,
the check is not performed.

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent f2a338c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment