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 e62251c67 mcu/nrf5340: Fix RAM region for autogenerated scripts
e62251c67 is described below

commit e62251c67a85e08191281685750e0c523a5a0a14
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Mon Feb 9 12:13:27 2026 +0100

    mcu/nrf5340: Fix RAM region for autogenerated scripts
    
    VECTOR_RELOCATION_REGION was put in same place as RAM.
    This resulted in relocation area being used also by
    normal DATA or BSS section.
    
    Now RAM start is set to 0x20000400 and size is decreased
    by 0x400 to make non-overlapping regions.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 hw/mcu/nordic/nrf5340/link/include/mcu_config.ld.h     | 2 --
 hw/mcu/nordic/nrf5340/link/include/memory_regions.ld.h | 2 --
 hw/mcu/nordic/nrf5340/syscfg.yml                       | 4 ++--
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/hw/mcu/nordic/nrf5340/link/include/mcu_config.ld.h 
b/hw/mcu/nordic/nrf5340/link/include/mcu_config.ld.h
index 4bc7b7656..234b9b610 100644
--- a/hw/mcu/nordic/nrf5340/link/include/mcu_config.ld.h
+++ b/hw/mcu/nordic/nrf5340/link/include/mcu_config.ld.h
@@ -17,6 +17,4 @@
  * under the License.
  */
 
-#ifndef MYNEWT_VAL_BOOT_LOADER
 #define VECTOR_RELOCATION_RAM VECTOR_RELOCATION_REGION
-#endif
diff --git a/hw/mcu/nordic/nrf5340/link/include/memory_regions.ld.h 
b/hw/mcu/nordic/nrf5340/link/include/memory_regions.ld.h
index 57fa14379..6428f63bf 100644
--- a/hw/mcu/nordic/nrf5340/link/include/memory_regions.ld.h
+++ b/hw/mcu/nordic/nrf5340/link/include/memory_regions.ld.h
@@ -17,6 +17,4 @@
  * under the License.
  */
 
-#ifndef MYNEWT_VAL_BOOT_LOADER
     VECTOR_RELOCATION_REGION (rw) : ORIGIN = 0x20000000, LENGTH = 0x400
-#endif
diff --git a/hw/mcu/nordic/nrf5340/syscfg.yml b/hw/mcu/nordic/nrf5340/syscfg.yml
index e2ce0ef1f..1087cdd28 100644
--- a/hw/mcu/nordic/nrf5340/syscfg.yml
+++ b/hw/mcu/nordic/nrf5340/syscfg.yml
@@ -595,8 +595,8 @@ syscfg.vals:
     OS_TICKS_PER_SEC: 128
 
 syscfg.vals.CORTEX_DEFAULT_STARTUP:
-    MCU_RAM_START: 0x20000000
-    MCU_RAM_SIZE: 0x80000
+    MCU_RAM_START: 0x20000400
+    MCU_RAM_SIZE: 0x7FC00
 
 syscfg.restrictions:
     - "!UART_0 || (UART_0_PIN_TX != -1 && UART_0_PIN_RX != -1)"

Reply via email to