This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 54f9d6911 hw/bsp/nordic: Fix flash sector size for NRF5340 network core
54f9d6911 is described below
commit 54f9d6911cbad8a19104d8d270c245ba2987d710
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed Jan 8 13:32:19 2025 +0100
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 <[email protected]>
---
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 ced982311..be65f2b2d 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