arm: cypress/psoc6: add SoC specific linker input sections
The Cypress PSoC6 specifies some input sections in the startup scripts. These sections (.heap, .stack, etc.) need to be placed at correct location. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
2fed930f4e
commit
08c165f2b0
4 changed files with 26 additions and 0 deletions
|
@ -114,6 +114,8 @@ SECTIONS
|
||||||
|
|
||||||
KEEP(*(IRQ_VECTOR_TABLE))
|
KEEP(*(IRQ_VECTOR_TABLE))
|
||||||
|
|
||||||
|
KEEP(*(.vectors))
|
||||||
|
|
||||||
KEEP(*(.openocd_dbg))
|
KEEP(*(.openocd_dbg))
|
||||||
KEEP(*(".openocd_dbg.*"))
|
KEEP(*(".openocd_dbg.*"))
|
||||||
|
|
||||||
|
|
|
@ -11,5 +11,7 @@ config SOC_SERIES_PSOC62
|
||||||
select SYS_POWER_LOW_POWER_STATE_SUPPORTED
|
select SYS_POWER_LOW_POWER_STATE_SUPPORTED
|
||||||
select CPU_HAS_SYSTICK
|
select CPU_HAS_SYSTICK
|
||||||
select HAS_CYPRESS_DRIVERS
|
select HAS_CYPRESS_DRIVERS
|
||||||
|
select SOC_NOINIT_LD
|
||||||
|
select SOC_RWDATA_LD
|
||||||
help
|
help
|
||||||
Enable support for Cypress PSoC6 MCU series
|
Enable support for Cypress PSoC6 MCU series
|
||||||
|
|
16
soc/arm/cypress/psoc6/soc-noinit.ld
Normal file
16
soc/arm/cypress/psoc6/soc-noinit.ld
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Extracted from:
|
||||||
|
* ext/hal/cypress/.../devices/psoc6/linker/gcc/cy8c6xx6_cm0plus.ld
|
||||||
|
*
|
||||||
|
* Size of sections are calculated in the startup scripts,
|
||||||
|
* so they don't have to be specified here.
|
||||||
|
*/
|
||||||
|
|
||||||
|
. = ALIGN(8);
|
||||||
|
KEEP(*(.ram_vectors))
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
KEEP(*(.heap))
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
KEEP(*(.stack))
|
6
soc/arm/cypress/psoc6/soc-rwdata.ld
Normal file
6
soc/arm/cypress/psoc6/soc-rwdata.ld
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
* Extracted from:
|
||||||
|
* ext/hal/cypress/.../devices/psoc6/linker/gcc/cy8c6xx6_cm0plus.ld
|
||||||
|
*/
|
||||||
|
|
||||||
|
KEEP(*(.cy_ramfunc))
|
Loading…
Add table
Add a link
Reference in a new issue