Skip to content

Commit

Permalink
OpenOCD scripts for H7: use _dual_bank file
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilie Gillet committed Oct 15, 2019
1 parent 4771bbf commit 8bafa64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions linker_scripts/stm32h7xx_flash.ld
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,16 @@ SECTIONS
_edtcm = .; /* DTCM end marker */
} >DTCM

.itcm (NOLOAD):
.itcm :
{
. = ALIGN(4);
_sitcm = .; /* ITCM start marker */
*(.ramtext*)
*(.itcm)
*(.itcm*)
. = ALIGN(4);
_eitcm = .; /* ITCM end marker */
} >ITCM
} >ITCM AT> FLASH

PROVIDE ( end = _ebss );
PROVIDE ( _end = _ebss );
Expand Down
5 changes: 3 additions & 2 deletions linker_scripts/stm32h7xx_flash_application_large.ld
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,16 @@ SECTIONS
_edtcm = .; /* DTCM end marker */
} >DTCM

.itcm (NOLOAD):
.itcm :
{
. = ALIGN(4);
_sitcm = .; /* ITCM start marker */
*(.ramtext*)
*(.itcm)
*(.itcm*)
. = ALIGN(4);
_eitcm = .; /* ITCM end marker */
} >ITCM
} >ITCM AT> FLASH

PROVIDE ( end = _ebss );
PROVIDE ( _end = _ebss );
Expand Down
2 changes: 1 addition & 1 deletion makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ LINKER_SCRIPT = stmlib/linker_scripts/stm32h7xx_flash$(LD_SUFFIX).ld
FW_STDDRIVER_DIR = $(STM32_PATH)/STM32H7xx_HAL_Driver
ARCHFLAGS = -mcpu=cortex-m7 -mthumb -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb-interwork -funroll-loops
ARCH_DEFINE = GCC_ARMCM7
OPENOCD_TARGET = h7x
OPENOCD_TARGET = h7x_dual_bank

else

Expand Down

0 comments on commit 8bafa64

Please sign in to comment.