From 78d2ed5428cb7903215fa2e81750d39d19406b6e Mon Sep 17 00:00:00 2001 From: Martin Tverdal Date: Thu, 20 Jun 2024 13:19:13 +0200 Subject: [PATCH] soc/nordic/nr54l: increase flash erase time define Time it takes to "erase" one "page" of rram is too low. Where getting timeouts. "erase" of rram is done by writing all the words. one "page" is 4096 bytes meaning 1024 32bit words. worstcase time it takes to write one 32bit word from 0x00000000 to 0xffffffff is about 42us, giving 42ms to write 1024 words. Signed-off-by: Martin Tverdal --- soc/nordic/nrf54l/soc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/nordic/nrf54l/soc.h b/soc/nordic/nrf54l/soc.h index b775fa9d0f3..3b3594fb319 100644 --- a/soc/nordic/nrf54l/soc.h +++ b/soc/nordic/nrf54l/soc.h @@ -13,7 +13,7 @@ #include -#define FLASH_PAGE_ERASE_MAX_TIME_US 8000UL +#define FLASH_PAGE_ERASE_MAX_TIME_US 42000UL #define FLASH_PAGE_MAX_CNT 381UL #endif /* _NORDICSEMI_NRF54L_SOC_H_ */