Issues in source/daplink/drag-n-drop/iap_flash_intf.c
#1006
Labels
source/daplink/drag-n-drop/iap_flash_intf.c
#1006
Background: The file
source/daplink/drag-n-drop/iap_flash_intf.c
contains the implementation of theflash_intf_t
interface to flash the probe in order to update the bootloader or interface firmware. One of the feature it contains is that it will erase the first "sector" but cache it's content and only write the sector at the end. This is to minimize the time window in which an interrupted update might start anyway (whereas if the interrupt vector is missing, the failure will be immediate).The constants
DAPLINK_SECTOR_SIZE
andDAPLINK_MIN_WRITE_SIZE
are defined in the interface. The use ofDAPLINK_SECTOR_SIZE
in the design is wrong for two reasons:The following changes are needed:
The text was updated successfully, but these errors were encountered: