Skip to content

Commit 7c5d3ac

Browse files
telink: Fix flash configuration
MCU boot require setting config IMG_ERASE_PROGRESSIVELY to erasing flash download area during its updating otherwise all area is erased at the beginning of image downloading. It's leading to communication timeouts due to long erasing time. Signed-off-by: Andrii Bilynskyi <andrii.bilynskyi@telink-semi.com>
1 parent 15a5935 commit 7c5d3ac

File tree

8 files changed

+23
-3
lines changed

8 files changed

+23
-3
lines changed

boards/telink/tl3218/Kconfig.defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ config FLASH_LOAD_OFFSET
2424

2525
if MCUBOOT
2626

27+
config IMG_ERASE_PROGRESSIVELY
28+
bool
29+
default y
30+
2731
config MCUBOOT_ACTION_HOOKS
2832
bool
2933
default y

boards/telink/tlsr9118bdk40d/Kconfig.defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ config FLASH_LOAD_OFFSET
2424

2525
if MCUBOOT
2626

27+
config IMG_ERASE_PROGRESSIVELY
28+
bool
29+
default y
30+
2731
config MCUBOOT_ACTION_HOOKS
2832
bool
2933
default y

boards/telink/tlsr9258a/Kconfig.defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ config FLASH_LOAD_OFFSET
2424

2525
if MCUBOOT
2626

27+
config IMG_ERASE_PROGRESSIVELY
28+
bool
29+
default y
30+
2731
config MCUBOOT_ACTION_HOOKS
2832
bool
2933
default y

boards/telink/tlsr9518adk80d/Kconfig.defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ config FLASH_LOAD_OFFSET
2424

2525
if MCUBOOT
2626

27+
config IMG_ERASE_PROGRESSIVELY
28+
bool
29+
default y
30+
2731
config MCUBOOT_ACTION_HOOKS
2832
bool
2933
default y

boards/telink/tlsr9528a/Kconfig.defconfig

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ config FLASH_LOAD_OFFSET
2424

2525
if MCUBOOT
2626

27+
config IMG_ERASE_PROGRESSIVELY
28+
bool
29+
default y
30+
2731
config MCUBOOT_ACTION_HOOKS
2832
bool
2933
default y

soc/telink/tlsr/telink_b9x/Kconfig.defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ config XIP
3434
config FLASH
3535
default y
3636

37-
config FLASH_HAS_NO_EXPLICIT_ERASE
37+
config FLASH_HAS_EXPLICIT_ERASE
3838
default y
3939

4040
config STACK_SENTINEL

soc/telink/tlsr/telink_tlx/Kconfig.defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ config XIP
3333
config FLASH
3434
default y
3535

36-
config FLASH_HAS_NO_EXPLICIT_ERASE
36+
config FLASH_HAS_EXPLICIT_ERASE
3737
default y
3838

3939
config STACK_SENTINEL

soc/telink/tlsr/telink_w9x/Kconfig.defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ config FLASH
4343
bool
4444
default y
4545

46-
config FLASH_HAS_NO_EXPLICIT_ERASE
46+
config FLASH_HAS_EXPLICIT_ERASE
4747
bool
4848
default y
4949

0 commit comments

Comments
 (0)