diff --git a/bsp/lpc176x/project.ewp b/bsp/lpc176x/project.ewp
index b5dd6673c3..f5ba2b9c01 100644
--- a/bsp/lpc176x/project.ewp
+++ b/bsp/lpc176x/project.ewp
@@ -10,7 +10,7 @@
General
3
- 17
+ 20
1
1
@@ -27,8 +27,8 @@
Variant
- 13
- 36
+ 18
+ 37
GEndianMode
@@ -58,7 +58,7 @@
FPU
- 0
+ 2
0
@@ -79,17 +79,13 @@
RTDescription
Use the normal configuration of the C/C++ runtime library. No locale interface, C locale, no file descriptor support, no multibytes in printf and scanf, and no hex floats in strtod.
-
- RTConfigPath
- $TOOLKIT_DIR$\INC\DLib_Config_Normal.h
-
OGProductVersion
- 5.41.0.51757
+ 6.10.3.52260
OGLastSavedByProductVersion
- 5.41.0.51757
+ 6.10.3.52260
GeneralEnableMisra
@@ -133,13 +129,27 @@
0
111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+ RTConfigPath2
+ $TOOLKIT_DIR$\INC\c\DLib_Config_Normal.h
+
+
+ GFPUCoreSlave
+ 18
+ 37
+
+
+ GBECoreSlave
+ 18
+ 37
+
ICCARM
2
- 21
+ 26
1
1
@@ -184,7 +194,7 @@
CCDiagSuppress
-
+ Pa050
CCDiagRemark
@@ -257,11 +267,7 @@
OutputFile
-
-
-
- CCLangSelect
- 0
+ $FILE_BNAME$.o
CCLibConfigHeader
@@ -298,10 +304,6 @@
CCStdIncCheck
0
-
- CCStdIncludePath
- ###Uninitialized###
-
CCCodeSection
.text
@@ -337,13 +339,61 @@
0
111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+ CCPosIndRopi
+ 0
+
+
+ CCPosIndRwpi
+ 0
+
+
+ CCPosIndNoDynInit
+ 0
+
+
+ IccLang
+ 0
+
+
+ IccCDialect
+ 1
+
+
+ IccAllowVLA
+ 0
+
+
+ IccCppDialect
+ 1
+
+
+ IccExceptions
+ 1
+
+
+ IccRTTI
+ 1
+
+
+ IccStaticDestr
+ 1
+
+
+ IccRelaxedFpPrecision
+ 0
+
+
+ IccCppInlineSemantics
+ 0
+
AARM
2
- 7
+ 8
1
1
@@ -469,7 +519,7 @@
AOutputFile
-
+ $FILE_BNAME$.o
AMultibyteSupport
@@ -487,10 +537,6 @@
AIgnoreStdInclude
0
-
- AStdIncludes
- $TOOLKIT_DIR$\INC\
-
AUserIncludes
@@ -523,7 +569,7 @@
OOCOutputFile
-
+ project.srec
OOCCommandLineProducer
@@ -560,7 +606,7 @@
ILINK
0
- 8
+ 11
1
1
@@ -577,7 +623,7 @@
IlinkOutputFile
- template.out
+ project.out
IlinkDebugInfoEnable
@@ -637,11 +683,11 @@
IlinkIcfOverride
- 0
+ 1
IlinkIcfFile
- $TOOLKIT_DIR$\CONFIG\generic_cortex.icf
+ $PROJ_DIR$\rtthread-lpc17xx.icf
IlinkIcfFileSlave
@@ -774,6 +820,38 @@
IlinkIElfToolPostProcess
0
+
+ IlinkLogAutoLibSelect
+ 0
+
+
+ IlinkLogRedirSymbols
+ 0
+
+
+ IlinkLogUnusedFragments
+ 0
+
+
+ IlinkCrcReverseByteOrder
+ 0
+
+
+ IlinkCrcUseAsInput
+ 1
+
+
+ IlinkOptInline
+ 0
+
+
+ IlinkOptExceptionsAllow
+ 1
+
+
+ IlinkOptExceptionsForce
+ 0
+
@@ -813,7 +891,7 @@
General
3
- 17
+ 20
1
0
@@ -830,7 +908,7 @@
Variant
- 13
+ 18
0
@@ -861,7 +939,7 @@
FPU
- 0
+ 2
0
@@ -882,13 +960,9 @@
RTDescription
-
- RTConfigPath
- dl-stnl0.a
-
OGProductVersion
- 5.41.0.51757
+ 6.10.3.52260
OGLastSavedByProductVersion
@@ -936,13 +1010,27 @@
0
111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+ RTConfigPath2
+
+
+
+ GFPUCoreSlave
+ 18
+ 1
+
+
+ GBECoreSlave
+ 18
+ 1
+
ICCARM
2
- 21
+ 26
1
0
@@ -1062,10 +1150,6 @@
OutputFile
-
- CCLangSelect
- 0
-
CCLibConfigHeader
1
@@ -1101,10 +1185,6 @@
CCStdIncCheck
0
-
- CCStdIncludePath
- ###Uninitialized###
-
CCCodeSection
.text
@@ -1140,13 +1220,61 @@
0
111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+ CCPosIndRopi
+ 0
+
+
+ CCPosIndRwpi
+ 0
+
+
+ CCPosIndNoDynInit
+ 0
+
+
+ IccLang
+ 0
+
+
+ IccCDialect
+ 1
+
+
+ IccAllowVLA
+ 0
+
+
+ IccCppDialect
+ 1
+
+
+ IccExceptions
+ 1
+
+
+ IccRTTI
+ 1
+
+
+ IccStaticDestr
+ 1
+
+
+ IccRelaxedFpPrecision
+ 0
+
+
+ IccCppInlineSemantics
+ 0
+
AARM
2
- 7
+ 8
1
0
@@ -1290,10 +1418,6 @@
AIgnoreStdInclude
0
-
- AStdIncludes
- $TOOLKIT_DIR$\INC\
-
AUserIncludes
@@ -1363,7 +1487,7 @@
ILINK
0
- 8
+ 11
1
0
@@ -1577,6 +1701,38 @@
IlinkIElfToolPostProcess
0
+
+ IlinkLogAutoLibSelect
+ 0
+
+
+ IlinkLogRedirSymbols
+ 0
+
+
+ IlinkLogUnusedFragments
+ 0
+
+
+ IlinkCrcReverseByteOrder
+ 0
+
+
+ IlinkCrcUseAsInput
+ 1
+
+
+ IlinkOptInline
+ 1
+
+
+ IlinkOptExceptionsAllow
+ 1
+
+
+ IlinkOptExceptionsForce
+ 0
+
diff --git a/bsp/lpc176x/rtthread-lpc17xx.icf b/bsp/lpc176x/rtthread-lpc17xx.icf
index 68d22fff9e..b24c7f2e89 100644
--- a/bsp/lpc176x/rtthread-lpc17xx.icf
+++ b/bsp/lpc176x/rtthread-lpc17xx.icf
@@ -4,29 +4,37 @@
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
/*-Memory Regions-*/
-define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
+define symbol __ICFEDIT_region_ROM_start__ = 0x00000100;
define symbol __ICFEDIT_region_ROM_end__ = 0x0007FFFF;
-define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
-define symbol __ICFEDIT_region_RAM_end__ = 0x2000FFFF;
+define symbol __ICFEDIT_region_RAM_start__ = 0x10000000;
+define symbol __ICFEDIT_region_RAM_end__ = 0x10007FFF;
/*-Sizes-*/
-define symbol __ICFEDIT_size_cstack__ = 0x400;
-define symbol __ICFEDIT_size_heap__ = 0x800;
+define symbol __ICFEDIT_size_cstack__ = 0x800;
+define symbol __ICFEDIT_size_heap__ = 0x400;
/**** End of ICF editor section. ###ICF###*/
-
define memory mem with size = 4G;
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
+define symbol _AHB_RAM_start__ = 0x2007C000;
+define symbol _AHB_RAM_end__ = 0x20083FFF;
+define region AHB_RAM_region = mem:[from _AHB_RAM_start__ to _AHB_RAM_end__];
+
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
initialize by copy { readwrite };
-//initialize by copy with packing = none { section __DLIB_PERTHREAD }; // Required in a multi-threaded application
do not initialize { section .noinit };
+do not initialize { section USB_DMA_RAM };
+
+keep { section FSymTab };
+keep { section VSymTab };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
-
place in ROM_region { readonly };
place in RAM_region { readwrite,
block CSTACK, block HEAP };
+place in AHB_RAM_region
+ { readwrite data section AHB_RAM_MEMORY, section USB_DMA_RAM, section EMAC_DMA_RAM};
+
diff --git a/bsp/lpc176x/template.ewp b/bsp/lpc176x/template.ewp
index 3f66c77438..82f30e4724 100644
--- a/bsp/lpc176x/template.ewp
+++ b/bsp/lpc176x/template.ewp
@@ -12,7 +12,7 @@
General
3
- 17
+ 20
1
1
@@ -29,8 +29,8 @@
Variant
- 13
- 36
+ 18
+ 37
GEndianMode
@@ -60,7 +60,7 @@
FPU
- 0
+ 2
0
@@ -81,17 +81,13 @@
RTDescription
Use the normal configuration of the C/C++ runtime library. No locale interface, C locale, no file descriptor support, no multibytes in printf and scanf, and no hex floats in strtod.
-
- RTConfigPath
- $TOOLKIT_DIR$\INC\DLib_Config_Normal.h
-
OGProductVersion
- 5.41.0.51757
+ 6.10.3.52260
OGLastSavedByProductVersion
- 5.41.0.51757
+ 6.10.3.52260
GeneralEnableMisra
@@ -135,13 +131,27 @@
0
111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+ RTConfigPath2
+ $TOOLKIT_DIR$\INC\c\DLib_Config_Normal.h
+
+
+ GFPUCoreSlave
+ 18
+ 37
+
+
+ GBECoreSlave
+ 18
+ 37
+
ICCARM
2
- 21
+ 26
1
1
@@ -186,7 +196,7 @@
CCDiagSuppress
-
+ Pa050
CCDiagRemark
@@ -259,11 +269,7 @@
OutputFile
-
-
-
- CCLangSelect
- 0
+ $FILE_BNAME$.o
CCLibConfigHeader
@@ -285,10 +291,6 @@
CCStdIncCheck
0
-
- CCStdIncludePath
- ###Uninitialized###
-
CCCodeSection
.text
@@ -324,13 +326,61 @@
0
111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+ CCPosIndRopi
+ 0
+
+
+ CCPosIndRwpi
+ 0
+
+
+ CCPosIndNoDynInit
+ 0
+
+
+ IccLang
+ 0
+
+
+ IccCDialect
+ 1
+
+
+ IccAllowVLA
+ 0
+
+
+ IccCppDialect
+ 1
+
+
+ IccExceptions
+ 1
+
+
+ IccRTTI
+ 1
+
+
+ IccStaticDestr
+ 1
+
+
+ IccRelaxedFpPrecision
+ 0
+
+
+ IccCppInlineSemantics
+ 0
+
AARM
2
- 7
+ 8
1
1
@@ -456,7 +506,7 @@
AOutputFile
-
+ $FILE_BNAME$.o
AMultibyteSupport
@@ -474,10 +524,6 @@
AIgnoreStdInclude
0
-
- AStdIncludes
- $TOOLKIT_DIR$\INC\
-
AUserIncludes
@@ -510,7 +556,7 @@
OOCOutputFile
-
+ project.srec
OOCCommandLineProducer
@@ -547,7 +593,7 @@
ILINK
0
- 8
+ 11
1
1
@@ -564,7 +610,7 @@
IlinkOutputFile
- template.out
+ project.out
IlinkDebugInfoEnable
@@ -624,11 +670,11 @@
IlinkIcfOverride
- 0
+ 1
IlinkIcfFile
- $TOOLKIT_DIR$\CONFIG\generic_cortex.icf
+ $PROJ_DIR$\rtthread-lpc17xx.icf
IlinkIcfFileSlave
@@ -761,6 +807,38 @@
IlinkIElfToolPostProcess
0
+
+ IlinkLogAutoLibSelect
+ 0
+
+
+ IlinkLogRedirSymbols
+ 0
+
+
+ IlinkLogUnusedFragments
+ 0
+
+
+ IlinkCrcReverseByteOrder
+ 0
+
+
+ IlinkCrcUseAsInput
+ 1
+
+
+ IlinkOptInline
+ 0
+
+
+ IlinkOptExceptionsAllow
+ 1
+
+
+ IlinkOptExceptionsForce
+ 0
+
@@ -800,7 +878,7 @@
General
3
- 17
+ 20
1
0
@@ -817,7 +895,7 @@
Variant
- 13
+ 18
0
@@ -848,7 +926,7 @@
FPU
- 0
+ 2
0
@@ -869,13 +947,9 @@
RTDescription
-
- RTConfigPath
- dl-stnl0.a
-
OGProductVersion
- 5.41.0.51757
+ 6.10.3.52260
OGLastSavedByProductVersion
@@ -923,13 +997,27 @@
0
111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+ RTConfigPath2
+
+
+
+ GFPUCoreSlave
+ 18
+ 1
+
+
+ GBECoreSlave
+ 18
+ 1
+
ICCARM
2
- 21
+ 26
1
0
@@ -1049,10 +1137,6 @@
OutputFile
-
- CCLangSelect
- 0
-
CCLibConfigHeader
1
@@ -1073,10 +1157,6 @@
CCStdIncCheck
0
-
- CCStdIncludePath
- ###Uninitialized###
-
CCCodeSection
.text
@@ -1112,13 +1192,61 @@
0
111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111
+
+ CCPosIndRopi
+ 0
+
+
+ CCPosIndRwpi
+ 0
+
+
+ CCPosIndNoDynInit
+ 0
+
+
+ IccLang
+ 0
+
+
+ IccCDialect
+ 1
+
+
+ IccAllowVLA
+ 0
+
+
+ IccCppDialect
+ 1
+
+
+ IccExceptions
+ 1
+
+
+ IccRTTI
+ 1
+
+
+ IccStaticDestr
+ 1
+
+
+ IccRelaxedFpPrecision
+ 0
+
+
+ IccCppInlineSemantics
+ 0
+
AARM
2
- 7
+ 8
1
0
@@ -1262,10 +1390,6 @@
AIgnoreStdInclude
0
-
- AStdIncludes
- $TOOLKIT_DIR$\INC\
-
AUserIncludes
@@ -1335,7 +1459,7 @@
ILINK
0
- 8
+ 11
1
0
@@ -1549,6 +1673,38 @@
IlinkIElfToolPostProcess
0
+
+ IlinkLogAutoLibSelect
+ 0
+
+
+ IlinkLogRedirSymbols
+ 0
+
+
+ IlinkLogUnusedFragments
+ 0
+
+
+ IlinkCrcReverseByteOrder
+ 0
+
+
+ IlinkCrcUseAsInput
+ 1
+
+
+ IlinkOptInline
+ 1
+
+
+ IlinkOptExceptionsAllow
+ 1
+
+
+ IlinkOptExceptionsForce
+ 0
+