From 1736a34d19fe86ba454262e4e61863c233c0ef4b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 23 Nov 2015 09:41:59 +0000 Subject: Fixes to the LCF file and project. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8519 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.lcf | 18 ++++++++++-------- demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.mcp | Bin 61981 -> 61981 bytes 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'demos/SPC5') diff --git a/demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.lcf b/demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.lcf index 6c41a2e33..0596ad34a 100644 --- a/demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.lcf +++ b/demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.lcf @@ -22,7 +22,7 @@ */ MEMORY { - flash : org = 0x00000000, len = 0x00040000 + rom : org = 0x00000000, len = 0x00040000 dataflash : org = 0x00800000, len = 0x00010000 ram : org = 0x40000000, len = 0x00004000 } @@ -36,8 +36,6 @@ __ram_end__ = ADDR(ram) + SIZEOF(ram); SECTIONS { - . = ADDR(flash); - GROUP: { .boot ALIGN(16): @@ -95,7 +93,9 @@ SECTIONS extab: {} extabindex: {} - } > flash + . = ALIGN(4); + __romdata_start__ = .; + } > rom GROUP: { @@ -114,14 +114,15 @@ SECTIONS __main_thread_stack_end__ = .; } - .data (DATA): + .data (DATA) LOAD(__romdata_start__): { . = ALIGN(4); __data_start__ = .; *(.data) + . = ALIGN(4); } - .sdata (DATA): + .sdata (DATA) LOAD(ROMADDR(.data) + SIZEOF(.data)): { __sdata_start__ = . + 0x8000; *(.sdata) @@ -148,7 +149,8 @@ SECTIONS . = ADDR(ram) + SIZEOF(ram); __heap_end__ = .; } + + .PPC.EMB.sdata0: {} + .PPC.EMB.sbss0: {} } > ram } - -__romdata_start__ = _f_data_rom; diff --git a/demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.mcp b/demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.mcp index b9c560a16..3a21d9bd3 100644 Binary files a/demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.mcp and b/demos/SPC5/RT-SPC560D-EVB/cw/ch/ch.mcp differ -- cgit v1.2.3