[BSP] fix the compiling issue in mb9bf568r bsp
This commit is contained in:
parent
7ed7aadd24
commit
d8f9c7fe40
@ -150,8 +150,10 @@ __cs3_interrupt_vector_cortex_m:
|
|||||||
.section .cs3.reset,"x",%progbits
|
.section .cs3.reset,"x",%progbits
|
||||||
.thumb_func
|
.thumb_func
|
||||||
.globl __cs3_reset_cortex_m
|
.globl __cs3_reset_cortex_m
|
||||||
|
.globl _start
|
||||||
.type __cs3_reset_cortex_m, %function
|
.type __cs3_reset_cortex_m, %function
|
||||||
__cs3_reset_cortex_m:
|
__cs3_reset_cortex_m:
|
||||||
|
_start:
|
||||||
.fnstart
|
.fnstart
|
||||||
LDR R0, =SystemInit
|
LDR R0, =SystemInit
|
||||||
BLX R0
|
BLX R0
|
||||||
|
@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
|
|||||||
DEVICE = ' -mcpu=cortex-m4 -mthumb'
|
DEVICE = ' -mcpu=cortex-m4 -mthumb'
|
||||||
CFLAGS = DEVICE
|
CFLAGS = DEVICE
|
||||||
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
||||||
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-' + BOARD_NAME + '.map,-cref,-u,Reset_Handler -T rtthread-' + BOARD_NAME + '.ld'
|
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-' + BOARD_NAME + '.map,-cref,-u,Reset_Handler -T rtthread-' + BOARD_NAME + '.ld -nostartfiles'
|
||||||
|
|
||||||
CPATH = ''
|
CPATH = ''
|
||||||
LPATH = ''
|
LPATH = ''
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||||
ENTRY(_start)
|
ENTRY(_start)
|
||||||
SEARCH_DIR(.)
|
SEARCH_DIR(.)
|
||||||
GROUP(-lgcc -lc -lcs3 -lcs3unhosted -lcs3micro)
|
|
||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user