From 079e494cfdfe65549f10cb603e72c66d23d86da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Fri, 22 Sep 2017 11:15:32 +0100 Subject: [PATCH] Fix linker files for SMT32F7 series MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - RODATA and VARIOUS_FLASH definitions were incorrect causing potential issues Signed-off-by: José Simões --- .../ST_NUCLEO144_F746ZG/nanoBooter/STM32F746xG_booter.ld | 2 +- .../ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/STM32F746xG_CLR.ld | 2 +- .../ST_STM32F769I_DISCOVERY/nanoBooter/STM32F76xx_booter.ld | 2 +- .../ChibiOS/ST_STM32F769I_DISCOVERY/nanoCLR/STM32F76xx_CLR.ld | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/STM32F746xG_booter.ld b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/STM32F746xG_booter.ld index d5fbdeba8a..5f90108c69 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/STM32F746xG_booter.ld +++ b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/STM32F746xG_booter.ld @@ -47,7 +47,7 @@ REGION_ALIAS("TEXT_FLASH", flash_itcm); REGION_ALIAS("TEXT_FLASH_LMA", flash); /* Flash region to be used for read only data.*/ -REGION_ALIAS("RODATA_FLASH", flash_itcm); +REGION_ALIAS("RODATA_FLASH", flash); REGION_ALIAS("RODATA_FLASH_LMA", flash); /* Flash region to be used for various.*/ diff --git a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/STM32F746xG_CLR.ld b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/STM32F746xG_CLR.ld index 2f31b19a21..8f3cb067db 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/STM32F746xG_CLR.ld +++ b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/STM32F746xG_CLR.ld @@ -51,7 +51,7 @@ REGION_ALIAS("RODATA_FLASH", flash); REGION_ALIAS("RODATA_FLASH_LMA", flash); /* Flash region to be used for various.*/ -REGION_ALIAS("VARIOUS_FLASH", flash); +REGION_ALIAS("VARIOUS_FLASH", flash_itcm); REGION_ALIAS("VARIOUS_FLASH_LMA", flash); /* Flash region to be used for RAM(n) initialization data.*/ diff --git a/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/STM32F76xx_booter.ld b/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/STM32F76xx_booter.ld index d3146efd7f..6434f38a65 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/STM32F76xx_booter.ld +++ b/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/STM32F76xx_booter.ld @@ -47,7 +47,7 @@ REGION_ALIAS("TEXT_FLASH", flash_itcm); REGION_ALIAS("TEXT_FLASH_LMA", flash); /* Flash region to be used for read only data.*/ -REGION_ALIAS("RODATA_FLASH", flash_itcm); +REGION_ALIAS("RODATA_FLASH", flash); REGION_ALIAS("RODATA_FLASH_LMA", flash); /* Flash region to be used for various.*/ diff --git a/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoCLR/STM32F76xx_CLR.ld b/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoCLR/STM32F76xx_CLR.ld index c276483b74..6eb478991e 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoCLR/STM32F76xx_CLR.ld +++ b/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/nanoCLR/STM32F76xx_CLR.ld @@ -47,7 +47,7 @@ REGION_ALIAS("TEXT_FLASH", flash_itcm); REGION_ALIAS("TEXT_FLASH_LMA", flash); /* Flash region to be used for read only data.*/ -REGION_ALIAS("RODATA_FLASH", flash_itcm); +REGION_ALIAS("RODATA_FLASH", flash); REGION_ALIAS("RODATA_FLASH_LMA", flash); /* Flash region to be used for various.*/