You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2023/04/05 21:00:24 UTC

[mynewt-core] branch master updated: mcu/stm32f7: Fix linker scripts for coredumps

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 3c7683395 mcu/stm32f7: Fix linker scripts for coredumps
3c7683395 is described below

commit 3c768339541f04e47b8abafdeaf0cf9f7de4d4dc
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue Apr 4 12:30:18 2023 +0200

    mcu/stm32f7: Fix linker scripts for coredumps
    
    Linker scripts were missing _itcmram_start symbol definition
    used in hal_bsp.c when core dumps were enabled.
    
    This adds symbols to allow builds with OS_COREDUMP set to 1.
---
 hw/mcu/stm/stm32f7xx/stm32f746.ld | 1 +
 hw/mcu/stm/stm32f7xx/stm32f767.ld | 1 +
 2 files changed, 2 insertions(+)

diff --git a/hw/mcu/stm/stm32f7xx/stm32f746.ld b/hw/mcu/stm/stm32f7xx/stm32f746.ld
index e1a49b701..f0a430eac 100644
--- a/hw/mcu/stm/stm32f7xx/stm32f746.ld
+++ b/hw/mcu/stm/stm32f7xx/stm32f746.ld
@@ -194,6 +194,7 @@ SECTIONS
 
     _ram_start = ORIGIN(RAM);
     _dtcmram_start = ORIGIN(DTCM);
+    _itcmram_start = ORIGIN(ITCM);
 
     /* .stack_dummy section doesn't contains any symbols. It is only
      * used for linker to calculate size of stack sections, and assign
diff --git a/hw/mcu/stm/stm32f7xx/stm32f767.ld b/hw/mcu/stm/stm32f7xx/stm32f767.ld
index e1a49b701..f0a430eac 100644
--- a/hw/mcu/stm/stm32f7xx/stm32f767.ld
+++ b/hw/mcu/stm/stm32f7xx/stm32f767.ld
@@ -194,6 +194,7 @@ SECTIONS
 
     _ram_start = ORIGIN(RAM);
     _dtcmram_start = ORIGIN(DTCM);
+    _itcmram_start = ORIGIN(ITCM);
 
     /* .stack_dummy section doesn't contains any symbols. It is only
      * used for linker to calculate size of stack sections, and assign