diff options
| author | Bernard Xiong <[email protected]> | 2021-01-22 18:36:10 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-22 18:36:10 +0800 |
| commit | 2f7c5f06a9bc1a0c160fc2c218d8cd57e207f577 (patch) | |
| tree | 5630de1d17d891b4479ab514d39805378cc44a48 | |
| parent | f9c5007caea595e3d7b608f855a9fb19afe6f939 (diff) | |
| parent | 896caa3285d4cbd11a169e8ce4f6e9cb5aec9002 (diff) | |
Merge pull request #3950 from PYGC/dev
[bsp] fix mm32 iar icf bugs
| -rw-r--r-- | bsp/mm32l07x/drivers/linker_scripts/link.icf | 6 | ||||
| -rw-r--r-- | bsp/mm32l3xx/drivers/linker_scripts/link.icf | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/bsp/mm32l07x/drivers/linker_scripts/link.icf b/bsp/mm32l07x/drivers/linker_scripts/link.icf index be35a1f63e..532749ddef 100644 --- a/bsp/mm32l07x/drivers/linker_scripts/link.icf +++ b/bsp/mm32l07x/drivers/linker_scripts/link.icf @@ -14,8 +14,8 @@ define symbol __ICFEDIT_size_proc_stack__ = 0x0; define symbol __ICFEDIT_size_heap__ = 0x0800;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
-define region IROM_region = mem:[from __ICFEDIT_region_IROM1_start__ to __ICFEDIT_region_IROM_end__];
-define region IRAM_region = mem:[from __ICFEDIT_region_IRAM1_start__ to __ICFEDIT_region_IRAM_end__];
+define region IROM_region = mem:[from __ICFEDIT_region_IROM_start__ to __ICFEDIT_region_IROM_end__];
+define region IRAM_region = mem:[from __ICFEDIT_region_IRAM_start__ to __ICFEDIT_region_IRAM_end__];
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block PROC_STACK with alignment = 8, size = __ICFEDIT_size_proc_stack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
@@ -31,6 +31,4 @@ if (isdefinedsymbol(__USE_DLIB_PERTHREAD)) place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in IROM_region { readonly };
-place in EROM_region { readonly section application_specific_ro };
place in IRAM_region { readwrite, block CSTACK, block PROC_STACK, block HEAP };
-place in ERAM_region { readwrite section application_specific_rw };
\ No newline at end of file diff --git a/bsp/mm32l3xx/drivers/linker_scripts/link.icf b/bsp/mm32l3xx/drivers/linker_scripts/link.icf index 5ec2e5561e..a2e05e53a6 100644 --- a/bsp/mm32l3xx/drivers/linker_scripts/link.icf +++ b/bsp/mm32l3xx/drivers/linker_scripts/link.icf @@ -14,8 +14,8 @@ define symbol __ICFEDIT_size_proc_stack__ = 0x0; define symbol __ICFEDIT_size_heap__ = 0x0800;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
-define region IROM_region = mem:[from __ICFEDIT_region_IROM1_start__ to __ICFEDIT_region_IROM_end__];
-define region IRAM_region = mem:[from __ICFEDIT_region_IRAM1_start__ to __ICFEDIT_region_IRAM_end__];
+define region IROM_region = mem:[from __ICFEDIT_region_IROM_start__ to __ICFEDIT_region_IROM_end__];
+define region IRAM_region = mem:[from __ICFEDIT_region_IRAM_start__ to __ICFEDIT_region_IRAM_end__];
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block PROC_STACK with alignment = 8, size = __ICFEDIT_size_proc_stack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
@@ -31,6 +31,4 @@ if (isdefinedsymbol(__USE_DLIB_PERTHREAD)) place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in IROM_region { readonly };
-place in EROM_region { readonly section application_specific_ro };
place in IRAM_region { readwrite, block CSTACK, block PROC_STACK, block HEAP };
-place in ERAM_region { readwrite section application_specific_rw };
\ No newline at end of file |
