Skip to content

Commit 6822ba9

Browse files
Oren CohenMichael Schwarcz
authored andcommitted
Reserve space for secure storage
1 parent f64a5fc commit 6822ba9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8C63XX/TARGET_MCU_PSOC6_M0/device/TOOLCHAIN_ARM_STD/cy8c6xx7_cm0plus.sct

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#endif
3636

3737
#if !defined(MBED_ROM_SIZE)
38-
#define MBED_ROM_SIZE 0x78000
38+
#define MBED_ROM_SIZE 0x80000
3939
#endif
4040

4141
#if !defined(MBED_RAM_START)
@@ -62,7 +62,7 @@
6262
#define FLASH_START MBED_ROM_START
6363
#define FLASH_SIZE MBED_ROM_SIZE
6464

65-
; The following defines describe a 32K flash region used for EEPROM emulation.
65+
; The following defines describe a 32K flash region used for EEPROM emulation.
6666
; This region can also be used as the general purpose flash.
6767
; You can assign sections to this memory region for only one of the cores.
6868
; Note some middleware (e.g. BLE, Emulated EEPROM) can place their data into this memory region.
@@ -100,7 +100,7 @@
100100
#define EFUSE_SIZE 0x100000
101101

102102

103-
LR_IROM1 FLASH_START FLASH_SIZE
103+
LR_IROM1 FLASH_START (FLASH_SIZE - 0x8000)
104104
{
105105
.cy_app_header +0
106106
{

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8C63XX/TARGET_MCU_PSOC6_M0/device/TOOLCHAIN_GCC_ARM/cy8c6xx7_cm0plus.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ENTRY(Reset_Handler)
3333
#endif
3434

3535
#if !defined(MBED_ROM_SIZE)
36-
#define MBED_ROM_SIZE 0x78000
36+
#define MBED_ROM_SIZE 0x80000
3737
#endif
3838

3939
#if !defined(MBED_RAM_START)
@@ -63,7 +63,7 @@ MEMORY
6363
* where 'xx' is the device group; for example, 'cy8c6xx7_cm4_dual.ld'.
6464
*/
6565
ram (rwx) : ORIGIN = MBED_RAM_START, LENGTH = MBED_RAM_SIZE
66-
flash (rx) : ORIGIN = MBED_ROM_START, LENGTH = MBED_ROM_SIZE
66+
flash (rx) : ORIGIN = MBED_ROM_START, LENGTH = (MBED_ROM_SIZE - 0x8000)
6767

6868
/* This is a 32K flash region used for EEPROM emulation. This region can also be used as the general purpose flash.
6969
* You can assign sections to this memory region for only one of the cores.

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8C63XX/TARGET_MCU_PSOC6_M0/device/TOOLCHAIN_IAR/cy8c6xx7_cm0plus.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if (!isdefinedsymbol(MBED_ROM_START)) {
3434
}
3535

3636
if (!isdefinedsymbol(MBED_ROM_SIZE)) {
37-
define symbol MBED_ROM_SIZE = 0x78000;
37+
define symbol MBED_ROM_SIZE = 0x80000;
3838
}
3939

4040
if (!isdefinedsymbol(MBED_RAM_START)) {
@@ -59,7 +59,7 @@ define symbol __ICFEDIT_region_IRAM1_start__ = MBED_RAM_START;
5959
define symbol __ICFEDIT_region_IRAM1_end__ = (MBED_RAM_START + MBED_RAM_SIZE);
6060
/* Flash */
6161
define symbol __ICFEDIT_region_IROM1_start__ = MBED_ROM_START;
62-
define symbol __ICFEDIT_region_IROM1_end__ = (MBED_ROM_START + MBED_ROM_SIZE);
62+
define symbol __ICFEDIT_region_IROM1_end__ = (MBED_ROM_START + MBED_ROM_SIZE - 0x8000);
6363

6464
/* The following symbols define a 32K flash region used for EEPROM emulation.
6565
* This region can also be used as the general purpose flash.

targets/targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7465,7 +7465,7 @@
74657465
"deliver_to_target": "FUTURE_SEQUANA_PSA",
74667466
"overrides": {
74677467
"secure-rom-start": "0x10000000",
7468-
"secure-rom-size": "0x78000",
7468+
"secure-rom-size": "0x80000",
74697469
"non-secure-rom-start": "0x10080000",
74707470
"non-secure-rom-size": "0x78000",
74717471
"secure-ram-start": "0x08000000",
@@ -7485,7 +7485,7 @@
74857485
"macros_add": ["PSOC6_DYNSRM_DISABLE=1"],
74867486
"overrides": {
74877487
"secure-rom-start": "0x10000000",
7488-
"secure-rom-size": "0x78000",
7488+
"secure-rom-size": "0x80000",
74897489
"non-secure-rom-start": "0x10080000",
74907490
"non-secure-rom-size": "0x78000",
74917491
"secure-ram-start": "0x08000000",

0 commit comments

Comments
 (0)