Skip to content
Merged

Ls1b #284

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bsp/ls1bdev/applications/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void rtthread_startup(void)
rt_system_scheduler_start();

/* never reach here */
return ;
return;
}

/*@}*/
6 changes: 6 additions & 0 deletions bsp/ls1bdev/ls1b_ram.lds
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ SECTIONS
KEEP(*(VSymTab))
__vsymtab_end = .;
. = ALIGN(4);

. = ALIGN(4);
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
__rt_init_end = .;
. = ALIGN(4);
}

. = ALIGN(4);
Expand Down
11 changes: 3 additions & 8 deletions bsp/ls1bdev/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@
if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc'
EXEC_PATH = 'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_MIPS_ELF/bin'
elif CROSS_TOOL == 'keil':
print '================ERROR============================'
print 'Not support keil yet!'
print '================================================='
exit(0)
elif CROSS_TOOL == 'iar':
else:
print '================ERROR============================'
print 'Not support iar yet!'
print 'Not support %s yet!' % CROSS_TOOL
print '================================================='
exit(0)

Expand All @@ -43,7 +38,7 @@
DEVICE = ' -mips32'
CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer'
AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp -DSYSTEM_STACK=0x80003fe8'
LFLAGS = DEVICE + ' -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds'
LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds'

CPATH = ''
LPATH = ''
Expand Down