Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wwsmg1
rt-thread
提交
aaf01868
R
rt-thread
项目概览
wwsmg1
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
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,发现更多精彩内容 >>
提交
aaf01868
编写于
3月 29, 2013
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update GCC porting of LPC178x
上级
8e6a534f
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
69 addition
and
223 deletion
+69
-223
bsp/lpc178x/CMSIS/CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s
...ceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s
+69
-75
bsp/lpc178x/lpc17xx_rom.ld
bsp/lpc178x/lpc17xx_rom.ld
+0
-133
bsp/lpc178x/lpc17xx_rom.sct
bsp/lpc178x/lpc17xx_rom.sct
+0
-15
未找到文件。
bsp/lpc178x/CMSIS/CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s
浏览文件 @
aaf01868
...
...
@@ -9,6 +9,16 @@
//***
<<<
Use
Configuration
Wizard
in
Context
Menu
>>>
***
*/
.
syntax
unified
.
cpu
cortex
-
m3
.
fpu
softvfp
.
thumb
.
word
_sidata
.
word
_sdata
.
word
_edata
.
word
_sbss
.
word
_ebss
/*
//
<
h
>
Stack
Configuration
...
...
@@ -16,7 +26,7 @@
//
</
h
>
*/
.
equ
Stack_Size
,
0x00000
1
00
.
equ
Stack_Size
,
0x00000
2
00
.
section
".stack"
,
"w"
.
align
3
.
globl
__cs3_stack_mem
...
...
@@ -28,26 +38,6 @@ __cs3_stack_mem:
.
size
__cs3_stack_mem
,
.
-
__cs3_stack_mem
.
set
__cs3_stack_size
,
.
-
__cs3_stack_mem
/*
//
<
h
>
Heap
Configuration
//
<
o
>
Heap
Size
(
in
Bytes
)
<
0x0
-
0xFFFFFFFF
:
8
>
//
</
h
>
*/
.
equ
Heap_Size
,
0x00001000
.
section
".heap"
,
"w"
.
align
3
.
globl
__cs3_heap_start
.
globl
__cs3_heap_end
__cs3_heap_start
:
.
if
Heap_Size
.
space
Heap_Size
.
endif
__cs3_heap_end
:
/*
Vector
Table
*/
.
section
".cs3.interrupt_vector"
...
...
@@ -56,7 +46,7 @@ __cs3_heap_end:
__cs3_interrupt_vector_cortex_m
:
.
long
__cs3_stack
/*
Top
of
Stack
*/
.
long
__cs3_reset
/*
Reset
Handler
*/
.
long
Reset_Handler
/*
Reset
Handler
*/
.
long
NMI_Handler
/*
NMI
Handler
*/
.
long
HardFault_Handler
/*
Hard
Fault
Handler
*/
.
long
MemManage_Handler
/*
MPU
Fault
Handler
*/
...
...
@@ -118,45 +108,49 @@ __cs3_interrupt_vector_cortex_m:
.
size
__cs3_interrupt_vector_cortex_m
,
.
-
__cs3_interrupt_vector_cortex_m
.
thumb
/*
Reset
Handler
*/
.
section
.
cs3
.
reset
,
"x"
,%
progbits
.
thumb_func
.
globl
__cs3_reset_cortex_m
.
type
__cs3_reset_cortex_m
,
%
function
__cs3_reset_cortex_m
:
.
section
.
text
.
Reset_Handler
.
weak
Reset_Handler
.
type
Reset_Handler
,
%
function
Reset_Handler
:
.
fnstart
#if (RAM_MODE)
/*
Clear
.
bss
section
(
Zero
init
)
*/
MOV
R0
,
#
0
LDR
R1
,
=
__bss_start__
LDR
R2
,
=
__bss_end__
CMP
R1
,
R2
BEQ
BSSIsEmpty
LoopZI
:
CMP
R1
,
R2
BHS
BSSIsEmpty
STR
R0
,
[
R1
]
ADD
R1
,
#
4
BLO
LoopZI
BSSIsEmpty
:
LDR
R0
,
=
SystemInit
BLX
R0
LDR
R0
,=
main
BX
R0
#else
LDR
R0
,
=
SystemInit
BLX
R0
LDR
R0
,=
_start
BX
R0
#endif
/*
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
]
add
r1
,
r1
,
#
4
LoopCopyDataInit
:
ldr
r0
,
=
_sdata
ldr
r3
,
=
_edata
add
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
the
application
's entry point.*/
bl
main
bx
lr
.
pool
.
cantunwind
.
fnend
.
size
__cs3_reset_cortex_m
,
.
-
__cs3_reset_cortex_m
.
size
Reset_Handler
,
.
-
Reset_Handler
.
section
".text"
...
...
bsp/lpc178x/lpc17xx_rom.ld
已删除
100644 → 0
浏览文件 @
8e6a534f
/*
* linker script for LPC1788 (512kB Flash, 48kB + 48kB SRAM ) with GNU ld
* yiyue.fang 2012-04-14
*/
/* Program Entry, set to mark it as "used" and avoid gc */
MEMORY
{
CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x00080000
DATA (rw) : ORIGIN = 0x10000000, LENGTH = 0x00010000
}
ENTRY(Reset_Handler)
_system_stack_size = 0x200;
SECTIONS
{
.text :
{
. = ALIGN(4);
KEEP(*(.interrupt_vector)) /* Startup code */
. = ALIGN(4);
*(.text) /* remaining code */
*(.text.*) /* remaining code */
*(.rodata) /* read-only data (constants) */
*(.rodata*)
*(.glue_7)
*(.glue_7t)
*(.gnu.linkonce.t*)
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
. = ALIGN(4);
__vsymtab_start = .;
KEEP(*(VSymTab))
__vsymtab_end = .;
. = ALIGN(4);
. = ALIGN(4);
_etext = .;
} > CODE = 0
/* .ARM.exidx is sorted, so has to go in its own output section. */
__exidx_start = .;
.ARM.exidx :
{
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
/* This is used by the startup in order to initialize the .data secion */
_sidata = .;
} > CODE
__exidx_end = .;
/* .data section which is used for initialized data */
.data : AT (_sidata)
{
. = ALIGN(4);
/* This is used by the startup in order to initialize the .data secion */
_sdata = . ;
*(.data)
*(.data.*)
*(.gnu.linkonce.d*)
. = ALIGN(4);
/* This is used by the startup in order to initialize the .data secion */
_edata = . ;
} >DATA
.stack :
{
. = . + _system_stack_size;
. = ALIGN(4);
_estack = .;
} >DATA
__bss_start = .;
.bss :
{
. = ALIGN(4);
/* This is used by the startup in order to initialize the .bss secion */
_sbss = .;
*(.bss)
*(.bss.*)
*(COMMON)
. = ALIGN(4);
/* This is used by the startup in order to initialize the .bss secion */
_ebss = . ;
*(.bss.init)
} > DATA
__bss_end = .;
_end = .;
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
* Symbols in the DWARF debugging sections are relative to the beginning
* of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
}
bsp/lpc178x/lpc17xx_rom.sct
已删除
100644 → 0
浏览文件 @
8e6a534f
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x00000000 0x00080000 { ; load region size_region
ER_IROM1 0x00000000 0x00080000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x10000000 0x00010000 { ; RW data
.ANY (+RW +ZI)
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录