From 54f9d6911cbad8a19104d8d270c245ba2987d710 Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Wed, 8 Jan 2025 13:32:19 +0100 Subject: [PATCH] hw/bsp/nordic: Fix flash sector size for NRF5340 network core Commit 11d13cc1a4621160e045d612ebba3031b50d9d95 that removed duplicated hal_flash.c did not set correct value for network core flash sector size of NRF5340 which should be 2048 not 4096 Signed-off-by: Jerzy Kasenberg --- hw/mcu/nordic/nrf_common/src/hal_flash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/mcu/nordic/nrf_common/src/hal_flash.c b/hw/mcu/nordic/nrf_common/src/hal_flash.c index ced9823114..be65f2b2d0 100644 --- a/hw/mcu/nordic/nrf_common/src/hal_flash.c +++ b/hw/mcu/nordic/nrf_common/src/hal_flash.c @@ -26,6 +26,8 @@ #ifdef NRF51 #define NRF_FLASH_SECTOR_SZ 1024 +#elif defined(NRF5340_XXAA_NETWORK) +#define NRF_FLASH_SECTOR_SZ 2048 #else #define NRF_FLASH_SECTOR_SZ 4096 #endif