Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
d4dcbe0c
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
d4dcbe0c
编写于
2月 22, 2018
作者:
lymzzyh
提交者:
GitHub
2月 22, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1226 from xeonxu/startup
新增了适用于gcc的启动文件
上级
3da9f717
2d2c0157
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
122 addition
and
15 deletion
+122
-15
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f100xb.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f100xb.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f100xe.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f100xe.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101x6.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101x6.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xb.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xb.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xe.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xe.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xg.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xg.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f102x6.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f102x6.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f102xb.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f102xb.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103x6.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103x6.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xg.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xg.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s
+1
-1
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f107xc.s
...e/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f107xc.s
+1
-1
bsp/stm32f10x-HAL/drivers/SConscript
bsp/stm32f10x-HAL/drivers/SConscript
+3
-0
bsp/stm32f10x-HAL/drivers/gcc_startup.s
bsp/stm32f10x-HAL/drivers/gcc_startup.s
+104
-0
bsp/stm32f10x/rtconfig.py
bsp/stm32f10x/rtconfig.py
+1
-1
未找到文件。
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f100xb.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f100xe.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101x6.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xb.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xe.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f101xg.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f102x6.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f102xb.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103x6.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s
浏览文件 @
d4dcbe0c
...
...
@@ -111,7 +111,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s
浏览文件 @
d4dcbe0c
...
...
@@ -113,7 +113,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xg.s
浏览文件 @
d4dcbe0c
...
...
@@ -112,7 +112,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f105xc.s
浏览文件 @
d4dcbe0c
...
...
@@ -109,7 +109,7 @@ LoopFillZerobss:
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/Libraries/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f107xc.s
浏览文件 @
d4dcbe0c
...
...
@@ -112,7 +112,7 @@ LoopFillZerobss:
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bl
main
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32f10x-HAL/drivers/SConscript
浏览文件 @
d4dcbe0c
...
...
@@ -20,6 +20,9 @@ if GetDepend(['RT_USING_USB_DEVICE']):
src
+=
[
'drv_usb.c'
]
if
GetDepend
([
'RT_USING_SDCARD'
]):
src
+=
[
'drv_sdcard.c'
]
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
src
+=
[
'gcc_startup.s'
]
CPPPATH
=
[
cwd
]
...
...
bsp/stm32f10x-HAL/drivers/gcc_startup.s
0 → 100644
浏览文件 @
d4dcbe0c
/**
**************
*
(
C
)
COPYRIGHT
2017
STMicroelectronics
************************
*
@
file
gcc_startup
.
s
*
@
author
MCD
Application
Team
*
@
version
V4
.2.0
*
@
date
31
-
March
-
2017
*
@
brief
Based
on
STM32F103xE
's startup file.
*
This
module
performs
:
*
-
Set
the
initial
SP
*
-
Set
the
initial
PC
==
Reset_Handler
,
*
-
Set
the
vector
table
entries
with
the
exceptions
ISR
address
*
-
Configure
the
clock
system
*
-
Configure
external
SRAM
mounted
on
STM3210E
-
EVAL
board
*
to
be
used
as
data
memory
(
optional
,
to
be
enabled
by
user
)
*
-
Branches
to
entry
in
the
C
library
(
which
eventually
*
calls
main
(),
but
entry
()
in
RT
-
Thread
)
.
*
After
Reset
the
Cortex
-
M3
processor
is
in
Thread
mode
,
*
priority
is
Privileged
,
and
the
Stack
is
set
to
Main
.
*****************************************************************************
*
*
*
<
h2
><
center
>
&c
opy
; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
*
*
Redistribution
and
use
in
source
and
binary
forms
,
with
or
without
modification
,
*
are
permitted
provided
that
the
following
conditions
are
met
:
*
1
.
Redistributions
of
source
code
must
retain
the
above
copyright
notice
,
*
this
list
of
conditions
and
the
following
disclaimer
.
*
2
.
Redistributions
in
binary
form
must
reproduce
the
above
copyright
notice
,
*
this
list
of
conditions
and
the
following
disclaimer
in
the
documentation
*
and
/
or
other
materials
provided
with
the
distribution
.
*
3
.
Neither
the
name
of
STMicroelectronics
nor
the
names
of
its
contributors
*
may
be
used
to
endorse
or
promote
products
derived
from
this
software
*
without
specific
prior
written
permission
.
*
*
THIS
SOFTWARE
IS
PROVIDED
BY
THE
COPYRIGHT
HOLDERS
AND
CONTRIBUTORS
"AS IS"
*
AND
ANY
EXPRESS
OR
IMPLIED
WARRANTIES
,
INCLUDING
,
BUT
NOT
LIMITED
TO
,
THE
*
IMPLIED
WARRANTIES
OF
MERCHANTABILITY
AND
FITNESS
FOR
A
PARTICULAR
PURPOSE
ARE
*
DISCLAIMED
.
IN
NO
EVENT
SHALL
THE
COPYRIGHT
HOLDER
OR
CONTRIBUTORS
BE
LIABLE
*
FOR
ANY
DIRECT
,
INDIRECT
,
INCIDENTAL
,
SPECIAL
,
EXEMPLARY
,
OR
CONSEQUENTIAL
*
DAMAGES
(
INCLUDING
,
BUT
NOT
LIMITED
TO
,
PROCUREMENT
OF
SUBSTITUTE
GOODS
OR
*
SERVICES
; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
*
CAUSED
AND
ON
ANY
THEORY
OF
LIABILITY
,
WHETHER
IN
CONTRACT
,
STRICT
LIABILITY
,
*
OR
TORT
(
INCLUDING
NEGLIGENCE
OR
OTHERWISE
)
ARISING
IN
ANY
WAY
OUT
OF
THE
USE
*
OF
THIS
SOFTWARE
,
EVEN
IF
ADVISED
OF
THE
POSSIBILITY
OF
SUCH
DAMAGE
.
*
*****************************************************************************
*
*/
.
syntax
unified
.
cpu
cortex
-
m3
.
fpu
softvfp
.
thumb
/**
*
@
brief
This
is
the
code
that
gets
called
when
the
processor
first
*
starts
execution
following
a
reset
event
.
Only
the
absolutely
*
necessary
set
is
performed
,
after
which
the
application
*
supplied
main
()
routine
is
called
.
*
@
param
None
*
@
retval
:
None
*/
.
global
Reset_Handler
.
section
.
text
.
Reset_Handler
.
type
Reset_Handler
,
%
function
Reset_Handler
:
/*
Copy
the
data
segment
initializers
from
flash
to
SRAM
*/
movs
r1
,
#
0
b
LoopCopyDataInit
CopyDataInit
:
ldr
r3
,
=
_sidata
ldr
r3
,
[
r3
,
r1
]
str
r3
,
[
r0
,
r1
]
adds
r1
,
r1
,
#
4
LoopCopyDataInit
:
ldr
r0
,
=
_sdata
ldr
r3
,
=
_edata
adds
r2
,
r0
,
r1
cmp
r2
,
r3
bcc
CopyDataInit
ldr
r2
,
=
_sbss
b
LoopFillZerobss
/*
Zero
fill
the
bss
segment
.
*/
FillZerobss
:
movs
r3
,
#
0
str
r3
,
[
r2
],
#
4
LoopFillZerobss
:
ldr
r3
,
=
_ebss
cmp
r2
,
r3
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
Call
the
application
's entry point.*/
bl
entry
bx
lr
.
size
Reset_Handler
,
.
-
Reset_Handler
bsp/stm32f10x/rtconfig.py
浏览文件 @
d4dcbe0c
...
...
@@ -3,7 +3,7 @@ import os
# toolchains options
ARCH
=
'arm'
CPU
=
'cortex-m3'
CROSS_TOOL
=
'
keil
'
CROSS_TOOL
=
'
gcc
'
if
os
.
getenv
(
'RTT_CC'
):
CROSS_TOOL
=
os
.
getenv
(
'RTT_CC'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录