Changeset 427 for EcnlProtoTool/trunk/prototool
- Timestamp:
- Jun 1, 2020, 6:25:09 PM (4 years ago)
- Location:
- EcnlProtoTool/trunk/prototool
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/prototool/.cproject
r426 r427 16 16 <option id="toolchain.id" value="gcc-arm-embedded"/> 17 17 <option id="toolchain.version" value="6.3.1.20170620"/> 18 <option id="toolchain.enable" value="false"/> 18 19 </storageModule> 19 20 <storageModule moduleId="cdtBuildSystem" version="4.0.0"> -
EcnlProtoTool/trunk/prototool/src/linker_scriptDebug.ld
r426 r427 8 8 9 9 MEMORY { 10 ROM (rx) : ORIGIN = 0x18000000, LENGTH = 0x07FFC000 11 RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 10M 10 BOOT_LOADER : ORIGIN = 0x18000000, LENGTH = 0x00220000 11 ROM (rx) : ORIGIN = 0x18220000, LENGTH = 0x005E0000 12 RAM (xrw) : ORIGIN = 0x20100000, LENGTH = 8M 12 13 } 13 14 … … 19 20 .boot : { 20 21 KEEP(*(.boot)) 21 } > ROM22 } > BOOT_LOADER 22 23 23 24 .text : { 24 25 __start_text = .; 25 *(.vector)26 *(.text )26 KEEP(*(.vector)) 27 *(.text*) 27 28 *(.glue_7t) 28 29 *(.glue_7) 30 KEEP(*(.init)) 31 KEEP(*(.fini)) 29 32 __end_kernel = .; 30 33 } > ROM … … 34 37 .rodata ALIGN(4) : { 35 38 __start_rodata = .; 36 *(.rodata )39 *(.rodata*) 37 40 __end_rodata = .; 38 41 } > ROM … … 62 65 .data : ALIGN(4) { 63 66 __start_data = .; 64 *(.data) 67 *(.data*) 68 *(.got*) 65 69 __end_data = .; 66 70 } > RAM AT > ROM … … 72 76 .bss ALIGN(4) : { 73 77 __start_bss = .; 74 *(.bss )78 *(.bss*) 75 79 *(COMMON) 76 80 __end_bss = .; -
EcnlProtoTool/trunk/prototool/src/main.c
r331 r427 514 514 515 515 void _start_c(long *p); 516 int _data, _mdata, _edata;517 int _bss, _ebss;516 extern int __start_idata, __start_data, __end_data; 517 extern int __start_bss, __end_bss; 518 518 519 519 void _PowerON_Reset(long *args) 520 520 { 521 memcpy(&_ data, &_mdata, (size_t)&_edata - (size_t)&_data);522 memset(&_ bss, 0, (size_t)&_ebss - (size_t)&_bss);521 memcpy(&__start_data, &__start_idata, (size_t)&__end_data - (size_t)&__start_data); 522 memset(&__start_bss, 0, (size_t)&__end_bss - (size_t)&__start_bss); 523 523 524 524 _start_c(args); 525 525 } 526 526 527 #define FVECT_SECT __attribute__ ((section (". fvectors")))527 #define FVECT_SECT __attribute__ ((section (".vector"))) 528 528 const void *HardwareVectors[] FVECT_SECT = { 529 529 _PowerON_Reset, 530 530 mrdb_break, 531 531 }; 532 533 char stack_space[0x100000] __attribute__ ((section (".stack")));
Note:
See TracChangeset
for help on using the changeset viewer.