提交 3ed1ef79 编写于 作者: S SummerGift

[bsp][STM32] optimize bsp linker_scripts && README.md

上级 0a4abb8f
...@@ -770,7 +770,7 @@ ...@@ -770,7 +770,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f10x.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc': ...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Dgcc' CFLAGS = DEVICE + ' -std=c99 -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/stm32f10x.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc': ...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu Cortex-M3 ' DEVICE = ' --cpu Cortex-M3 '
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
AFLAGS = DEVICE + ' --apcs=interwork ' AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --scatter "board\linker_scripts\stm32f10x.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict' LFLAGS = DEVICE + ' --scatter "board\linker_scripts\link.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib'
...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar': ...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar':
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'
LFLAGS = ' --config "board/linker_scripts/stm32f10x.icf"' LFLAGS = ' --config "board/linker_scripts/link.icf"'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'
EXEC_PATH = EXEC_PATH + '/arm/bin/' EXEC_PATH = EXEC_PATH + '/arm/bin/'
......
...@@ -755,7 +755,7 @@ ...@@ -755,7 +755,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f10x.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -770,7 +770,7 @@ ...@@ -770,7 +770,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc': ...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Dgcc' CFLAGS = DEVICE + ' -std=c99 -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/stm32f4xx.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc': ...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu Cortex-M4.fp ' DEVICE = ' --cpu Cortex-M4.fp '
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
AFLAGS = DEVICE + ' --apcs=interwork ' AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --scatter "board\linker_scripts\stm32f4xx.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict' LFLAGS = DEVICE + ' --scatter "board\linker_scripts\link.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib'
...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar': ...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar':
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'
LFLAGS = ' --config "board/linker_scripts/stm32f4xx.icf"' LFLAGS = ' --config "board/linker_scripts/link.icf"'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'
EXEC_PATH = EXEC_PATH + '/arm/bin/' EXEC_PATH = EXEC_PATH + '/arm/bin/'
......
...@@ -755,7 +755,7 @@ ...@@ -755,7 +755,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -770,7 +770,7 @@ ...@@ -770,7 +770,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32l4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32l4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc': ...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Dgcc' CFLAGS = DEVICE + ' -std=c99 -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/stm32l4xx.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc': ...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu Cortex-M4.fp ' DEVICE = ' --cpu Cortex-M4.fp '
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
AFLAGS = DEVICE + ' --apcs=interwork ' AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict --scatter "board\linker_scripts\stm32l4xx.sct"' LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict --scatter "board\linker_scripts\link.sct"'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib'
...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar': ...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar':
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'
LFLAGS = ' --config "board/linker_scripts/stm32l4xx.icf"' LFLAGS = ' --config "board/linker_scripts/link.icf"'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'
EXEC_PATH = EXEC_PATH + '/arm/bin/' EXEC_PATH = EXEC_PATH + '/arm/bin/'
......
...@@ -755,7 +755,7 @@ ...@@ -755,7 +755,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32l4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32l4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -30,7 +30,7 @@ ATK-NANO STM32F103 是正点原子推出的一款基于 ARM Cortex-M3 内核的 ...@@ -30,7 +30,7 @@ ATK-NANO STM32F103 是正点原子推出的一款基于 ARM Cortex-M3 内核的
- 常用接口:USB 转串口、DS18B20/DHT11 接口 、USB SLAVE - 常用接口:USB 转串口、DS18B20/DHT11 接口 、USB SLAVE
- 调试接口,板载的 ST-LINK SWD 下载 - 调试接口,板载的 ST-LINK SWD 下载
开发板更多详细信息请参考正点原子 [STM32 ATK-NANO 开发板介绍](https://item.taobao.com/item.htm?id=575313690747) 开发板更多详细信息请参考正点原子 [STM32 ATK-NANO 开发板介绍](https://eboard.taobao.com/index.htm)
## 外设支持 ## 外设支持
...@@ -112,4 +112,4 @@ msh > ...@@ -112,4 +112,4 @@ msh >
维护人: 维护人:
- [guozhanxin](https://github.com/Guozhanxin) , 邮箱:<guozhanxin@rt-thread.com> - [guozhanxin](https://github.com/Guozhanxin)
\ No newline at end of file \ No newline at end of file
...@@ -770,7 +770,7 @@ ...@@ -770,7 +770,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f10x.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc': ...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Dgcc' CFLAGS = DEVICE + ' -std=c99 -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/stm32f10x.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc': ...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu Cortex-M3 ' DEVICE = ' --cpu Cortex-M3 '
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
AFLAGS = DEVICE + ' --apcs=interwork ' AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --scatter "board\linker_scripts\stm32f10x.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict' LFLAGS = DEVICE + ' --scatter "board\linker_scripts\link.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib'
...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar': ...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar':
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'
LFLAGS = ' --config "board/linker_scripts/stm32f10x.icf"' LFLAGS = ' --config "board/linker_scripts/link.icf"'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'
EXEC_PATH = EXEC_PATH + '/arm/bin/' EXEC_PATH = EXEC_PATH + '/arm/bin/'
......
...@@ -755,7 +755,7 @@ ...@@ -755,7 +755,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f10x.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口 - 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口
- 调试接口,标准 JTAG/SWD - 调试接口,标准 JTAG/SWD
开发板更多详细信息请参考野火 [STM32 霸道开发板介绍](https://item.taobao.com/item.htm?id=44360066246) 开发板更多详细信息请参考野火 [STM32 霸道开发板介绍](https://fire-stm32.taobao.com/index.htm)
## 外设支持 ## 外设支持
...@@ -123,4 +123,4 @@ msh > ...@@ -123,4 +123,4 @@ msh >
维护人: 维护人:
- [guozhanxin](https://github.com/Guozhanxin) , 邮箱:<guozhanxin@rt-thread.com> - [guozhanxin](https://github.com/Guozhanxin)
\ No newline at end of file \ No newline at end of file
...@@ -772,7 +772,7 @@ ...@@ -772,7 +772,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f10x.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc': ...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Dgcc' CFLAGS = DEVICE + ' -std=c99 -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/stm32f10x.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc': ...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu Cortex-M3 ' DEVICE = ' --cpu Cortex-M3 '
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
AFLAGS = DEVICE + ' --apcs=interwork ' AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --scatter "board\linker_scripts\stm32f10x.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict' LFLAGS = DEVICE + ' --scatter "board\linker_scripts\link.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib'
...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar': ...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar':
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'
LFLAGS = ' --config "board/linker_scripts/stm32f10x.icf"' LFLAGS = ' --config "board/linker_scripts/link.icf"'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'
EXEC_PATH = EXEC_PATH + '/arm/bin/' EXEC_PATH = EXEC_PATH + '/arm/bin/'
......
...@@ -755,7 +755,7 @@ ...@@ -755,7 +755,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f10x.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f10x.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口、USB SLAVE、USB HOST - 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口、USB SLAVE、USB HOST
- 调试接口,标准 JTAG/SWD - 调试接口,标准 JTAG/SWD
开发板更多详细信息请参考正点原子 [STM32 探索者开发板介绍](https://item.taobao.com/item.htm?id=42213707873) 开发板更多详细信息请参考正点原子 [STM32 探索者开发板介绍](https://eboard.taobao.com/index.htm)
## 外设支持 ## 外设支持
...@@ -122,4 +122,4 @@ msh > ...@@ -122,4 +122,4 @@ msh >
维护人: 维护人:
- [guozhanxin](https://github.com/Guozhanxin) , 邮箱:<guozhanxin@rt-thread.com> - [guozhanxin](https://github.com/Guozhanxin)
\ No newline at end of file \ No newline at end of file
...@@ -770,7 +770,7 @@ ...@@ -770,7 +770,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc': ...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Dgcc' CFLAGS = DEVICE + ' -std=c99 -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/stm32f4xx.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc': ...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu Cortex-M4.fp ' DEVICE = ' --cpu Cortex-M4.fp '
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
AFLAGS = DEVICE + ' --apcs=interwork ' AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --scatter "board\linker_scripts\stm32f4xx.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict' LFLAGS = DEVICE + ' --scatter "board\linker_scripts\link.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib'
...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar': ...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar':
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'
LFLAGS = ' --config "board/linker_scripts/stm32f4xx.icf"' LFLAGS = ' --config "board/linker_scripts/link.icf"'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'
EXEC_PATH = EXEC_PATH + '/arm/bin/' EXEC_PATH = EXEC_PATH + '/arm/bin/'
......
...@@ -755,7 +755,7 @@ ...@@ -755,7 +755,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口 - 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口
- 调试接口,标准 JTAG/SWD - 调试接口,标准 JTAG/SWD
开发板更多详细信息请参考正点原子 [STM32 阿波罗开发板介绍](https://item.taobao.com/item.htm?id=534585837612) 开发板更多详细信息请参考正点原子 [STM32 阿波罗开发板介绍](https://eboard.taobao.com/index.htm)
## 外设支持 ## 外设支持
...@@ -126,4 +126,4 @@ msh > ...@@ -126,4 +126,4 @@ msh >
维护人: 维护人:
- [guozhanxin](https://github.com/Guozhanxin) , 邮箱:<guozhanxin@rt-thread.com> - [SummerGift](https://github.com/SummerGGift)
\ No newline at end of file \ No newline at end of file
...@@ -772,7 +772,7 @@ ...@@ -772,7 +772,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) </Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) </Misc>
......
...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc': ...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Dgcc' CFLAGS = DEVICE + ' -std=c99 -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/stm32f4xx.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc': ...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu Cortex-M4.fp ' DEVICE = ' --cpu Cortex-M4.fp '
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
AFLAGS = DEVICE + ' --apcs=interwork ' AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --scatter "board\linker_scripts\stm32f4xx.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict' LFLAGS = DEVICE + ' --scatter "board\linker_scripts\link.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib'
...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar': ...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar':
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'
LFLAGS = ' --config "board/linker_scripts/stm32f4xx.icf"' LFLAGS = ' --config "board/linker_scripts/link.icf"'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'
EXEC_PATH = EXEC_PATH + '/arm/bin/' EXEC_PATH = EXEC_PATH + '/arm/bin/'
......
...@@ -755,7 +755,7 @@ ...@@ -755,7 +755,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口 - 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口
- 调试接口,标准 JTAG/SWD - 调试接口,标准 JTAG/SWD
开发板更多详细信息请参考野火 [STM32 挑战者开发板介绍](https://item.taobao.com/item.htm?id=545418358219) 开发板更多详细信息请参考野火 [STM32 挑战者开发板介绍](https://fire-stm32.taobao.com/index.htm)
## 外设支持 ## 外设支持
...@@ -124,4 +124,4 @@ msh > ...@@ -124,4 +124,4 @@ msh >
维护人: 维护人:
- [guozhanxin](https://github.com/Guozhanxin) , 邮箱:<guozhanxin@rt-thread.com> - [SummerGift](https://github.com/SummerGGift)
\ No newline at end of file \ No newline at end of file
...@@ -770,7 +770,7 @@ ...@@ -770,7 +770,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase /> <pXoBase />
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs /> <IncludeLibs />
<IncludeLibsPath /> <IncludeLibsPath />
<Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc> <Misc> --keep *.o(.rti_fn.*) --keep *.o(FSymTab)</Misc>
......
...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc': ...@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS = DEVICE + ' -std=c99 -Dgcc' CFLAGS = DEVICE + ' -std=c99 -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/stm32f4xx.ld' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc': ...@@ -66,7 +66,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu Cortex-M4.fp ' DEVICE = ' --cpu Cortex-M4.fp '
CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99'
AFLAGS = DEVICE + ' --apcs=interwork ' AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --scatter "board\linker_scripts\stm32f4xx.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict' LFLAGS = DEVICE + ' --scatter "board\linker_scripts\link.sct" --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict'
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib'
...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar': ...@@ -123,7 +123,7 @@ elif PLATFORM == 'iar':
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'
LFLAGS = ' --config "board/linker_scripts/stm32f4xx.icf"' LFLAGS = ' --config "board/linker_scripts/link.icf"'
LFLAGS += ' --entry __iar_program_start' LFLAGS += ' --entry __iar_program_start'
EXEC_PATH = EXEC_PATH + '/arm/bin/' EXEC_PATH = EXEC_PATH + '/arm/bin/'
......
...@@ -755,7 +755,7 @@ ...@@ -755,7 +755,7 @@
</option> </option>
<option> <option>
<name>IlinkIcfFile</name> <name>IlinkIcfFile</name>
<state>$PROJ_DIR$\board\linker_scripts\stm32f4xx.icf</state> <state>$PROJ_DIR$\board\linker_scripts\link.icf</state>
</option> </option>
<option> <option>
<name>IlinkIcfFileSlave</name> <name>IlinkIcfFileSlave</name>
......
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
<TextAddressRange>0x08000000</TextAddressRange> <TextAddressRange>0x08000000</TextAddressRange>
<DataAddressRange>0x20000000</DataAddressRange> <DataAddressRange>0x20000000</DataAddressRange>
<pXoBase></pXoBase> <pXoBase></pXoBase>
<ScatterFile>.\board\linker_scripts\stm32f4xx.sct</ScatterFile> <ScatterFile>.\board\linker_scripts\link.sct</ScatterFile>
<IncludeLibs></IncludeLibs> <IncludeLibs></IncludeLibs>
<IncludeLibsPath></IncludeLibsPath> <IncludeLibsPath></IncludeLibsPath>
<Misc></Misc> <Misc></Misc>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册