Fixed compile flags for psoc6

pull/44/head
Daniele Lacamera 2020-05-08 16:25:28 +02:00 committed by David Garske
parent 75638394b1
commit 49845bb72d
2 changed files with 54 additions and 53 deletions

View File

@ -152,6 +152,7 @@ ifeq ($(TARGET),stm32wb)
endif endif
ifeq ($(TARGET),psoc6) ifeq ($(TARGET),psoc6)
CORTEX_M0=1
PKA_EXTRA_OBJS+= $(CYPRESS_PDL)/drivers/source/cy_flash.o \ PKA_EXTRA_OBJS+= $(CYPRESS_PDL)/drivers/source/cy_flash.o \
$(CYPRESS_PDL)/drivers/source/cy_ipc_pipe.o \ $(CYPRESS_PDL)/drivers/source/cy_ipc_pipe.o \
$(CYPRESS_PDL)/drivers/source/cy_ipc_sema.o \ $(CYPRESS_PDL)/drivers/source/cy_ipc_sema.o \

View File

@ -1,53 +1,53 @@
MEMORY MEMORY
{ {
FLASH (rx) : ORIGIN = 0x10000000, LENGTH = ##WOLFBOOT_PARTITION_BOOT_ADDRESS## FLASH (rx) : ORIGIN = 0x10000000, LENGTH = ##WOLFBOOT_PARTITION_BOOT_ADDRESS##
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K RAM (rwx) : ORIGIN = 0x08000000, LENGTH = 64K
} }
SECTIONS SECTIONS
{ {
.text : .text :
{ {
_start_text = .; _start_text = .;
KEEP(*(.isr_vector)) KEEP(*(.isr_vector))
. = ALIGN(0x400); . = ALIGN(0x400);
*(.text*) *(.text*)
*(.rodata*) *(.rodata*)
*(.init*) *(.init*)
*(.fini*) *(.fini*)
. = ALIGN(4); . = ALIGN(4);
_end_text = .; _end_text = .;
} > FLASH } > FLASH
.edidx : .edidx :
{ {
. = ALIGN(4); . = ALIGN(4);
*(.ARM.exidx*) *(.ARM.exidx*)
} > FLASH } > FLASH
_stored_data = .; _stored_data = .;
.data : AT (_stored_data) .data : AT (_stored_data)
{ {
_start_data = .; _start_data = .;
KEEP(*(.data*)) KEEP(*(.data*))
. = ALIGN(4); . = ALIGN(4);
_end_data = .; _end_data = .;
} > RAM } > RAM
.bss (NOLOAD) : .bss (NOLOAD) :
{ {
_start_bss = .; _start_bss = .;
__bss_start__ = .; __bss_start__ = .;
*(.bss*) *(.bss*)
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
_end_bss = .; _end_bss = .;
__bss_end__ = .; __bss_end__ = .;
_end = .; _end = .;
} > RAM } > RAM
. = ALIGN(4); . = ALIGN(4);
} }
END_STACK = ORIGIN(RAM) + LENGTH(RAM); END_STACK = ORIGIN(RAM) + LENGTH(RAM);