Skip to content

Commit 49845bb

Browse files
danielinuxdgarske
authored andcommitted
Fixed compile flags for psoc6
1 parent 7563839 commit 49845bb

2 files changed

Lines changed: 54 additions & 53 deletions

File tree

arch.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ ifeq ($(TARGET),stm32wb)
152152
endif
153153

154154
ifeq ($(TARGET),psoc6)
155+
CORTEX_M0=1
155156
PKA_EXTRA_OBJS+= $(CYPRESS_PDL)/drivers/source/cy_flash.o \
156157
$(CYPRESS_PDL)/drivers/source/cy_ipc_pipe.o \
157158
$(CYPRESS_PDL)/drivers/source/cy_ipc_sema.o \

hal/psoc6.ld

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
MEMORY
2-
{
3-
FLASH (rx) : ORIGIN = 0x10000000, LENGTH = ##WOLFBOOT_PARTITION_BOOT_ADDRESS##
4-
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
5-
}
6-
7-
SECTIONS
8-
{
9-
10-
.text :
11-
{
12-
_start_text = .;
13-
KEEP(*(.isr_vector))
14-
. = ALIGN(0x400);
15-
*(.text*)
16-
*(.rodata*)
17-
*(.init*)
18-
*(.fini*)
19-
. = ALIGN(4);
20-
_end_text = .;
21-
} > FLASH
22-
23-
.edidx :
24-
{
25-
. = ALIGN(4);
26-
*(.ARM.exidx*)
27-
} > FLASH
28-
29-
_stored_data = .;
30-
31-
.data : AT (_stored_data)
32-
{
33-
_start_data = .;
34-
KEEP(*(.data*))
35-
. = ALIGN(4);
36-
_end_data = .;
37-
} > RAM
38-
39-
.bss (NOLOAD) :
40-
{
41-
_start_bss = .;
42-
__bss_start__ = .;
43-
*(.bss*)
44-
*(COMMON)
45-
. = ALIGN(4);
46-
_end_bss = .;
47-
__bss_end__ = .;
48-
_end = .;
49-
} > RAM
50-
. = ALIGN(4);
51-
}
52-
53-
END_STACK = ORIGIN(RAM) + LENGTH(RAM);
1+
MEMORY
2+
{
3+
FLASH (rx) : ORIGIN = 0x10000000, LENGTH = ##WOLFBOOT_PARTITION_BOOT_ADDRESS##
4+
RAM (rwx) : ORIGIN = 0x08000000, LENGTH = 64K
5+
}
6+
7+
SECTIONS
8+
{
9+
10+
.text :
11+
{
12+
_start_text = .;
13+
KEEP(*(.isr_vector))
14+
. = ALIGN(0x400);
15+
*(.text*)
16+
*(.rodata*)
17+
*(.init*)
18+
*(.fini*)
19+
. = ALIGN(4);
20+
_end_text = .;
21+
} > FLASH
22+
23+
.edidx :
24+
{
25+
. = ALIGN(4);
26+
*(.ARM.exidx*)
27+
} > FLASH
28+
29+
_stored_data = .;
30+
31+
.data : AT (_stored_data)
32+
{
33+
_start_data = .;
34+
KEEP(*(.data*))
35+
. = ALIGN(4);
36+
_end_data = .;
37+
} > RAM
38+
39+
.bss (NOLOAD) :
40+
{
41+
_start_bss = .;
42+
__bss_start__ = .;
43+
*(.bss*)
44+
*(COMMON)
45+
. = ALIGN(4);
46+
_end_bss = .;
47+
__bss_end__ = .;
48+
_end = .;
49+
} > RAM
50+
. = ALIGN(4);
51+
}
52+
53+
END_STACK = ORIGIN(RAM) + LENGTH(RAM);

0 commit comments

Comments
 (0)