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

commit 277a15ac94a97dbc78365e0eaf225f5c794dbc46
Author: Wojciech Pietraszewski <wojciech.pietraszew...@codecoup.pl>
AuthorDate: Fri May 26 16:18:16 2023 +0200

    hw/bsp: nucleo-l073rz adjust bsp flash map to fit the bootloader
    
    The bootloader size was exceeding flash area, thus the flash area needed to 
be increased.
    Image scratch was not needed in case of this BSP, so its size has been 
decreased.
---
 hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld | 2 +-
 hw/bsp/nucleo-l073rz/bsp.yml               | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld 
b/hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld
index fe44cee4a..b18ead5a9 100644
--- a/hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld
+++ b/hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld
@@ -20,7 +20,7 @@
 /* Linker script to configure memory regions. */
 MEMORY
 {
-  FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 16K
+  FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 20K
   RAM (rwx)  : ORIGIN = 0x20000000, LENGTH = 20K
 }
 
diff --git a/hw/bsp/nucleo-l073rz/bsp.yml b/hw/bsp/nucleo-l073rz/bsp.yml
index cc736679a..1facf525b 100644
--- a/hw/bsp/nucleo-l073rz/bsp.yml
+++ b/hw/bsp/nucleo-l073rz/bsp.yml
@@ -37,7 +37,7 @@ bsp.flash_map:
         FLASH_AREA_BOOTLOADER:
             device: 0
             offset: 0x08000000
-            size: 16kB
+            size: 20kB
         FLASH_AREA_IMAGE_0:
             device: 0
             offset: 0x08008000
@@ -48,14 +48,14 @@ bsp.flash_map:
             size: 72kB
         FLASH_AREA_IMAGE_SCRATCH:
             device: 0
-            offset: 0x0802c000
-            size: 16kB
+            offset: 0x08005C00
+            size: 1kB
 
         # User areas.
         FLASH_AREA_REBOOT_LOG:
             user_id: 0
             device: 0
-            offset: 0x08004000
+            offset: 0x0802c000
             size: 8kB
         FLASH_AREA_NFFS:
             user_id: 1

Reply via email to