Skip to content

Commit 5311b90

Browse files
Michael Schwarcz0xc0170
authored andcommitted
LPC55S69_S: reduce ITS size to 32KB
- Reduce LPC55S69 secure side ITS from 64KB to 32KB
1 parent e1d08ad commit 5311b90

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

features/storage/kvstore/conf/tdb_internal/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"internal_base_address": "0x10038000"
2121
},
2222
"LPC55S69_S": {
23-
"internal_size": "0x10000",
23+
"internal_size": "0x8000",
2424
"internal_base_address": "0x00028000"
2525
}
2626
}

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_M33_NS/device/TOOLCHAIN_IAR/LPC55S69_cm33_core0_flash.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
** ###################################################################
2424
*/
2525

26-
define symbol NS_CODE_START = 0x00038000;
27-
define symbol NS_CODE_SIZE = 0x00060000;
26+
define symbol NS_CODE_START = 0x00030000;
27+
define symbol NS_CODE_SIZE = 0x00068000;
2828
define symbol NS_DATA_START = 0x20022000;
2929
define symbol NS_DATA_SIZE = 0x00022000;
3030

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/partition/flash_layout.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
/* Flash layout on LPC55S69 without BL2:
2727
*
2828
* 0x0000_0000 Secure image primary
29-
* 0x0003_0000 SST / ITS
30-
* 0x0004_0000 Non-secure
29+
* 0x0002_8000 SST / ITS
30+
* 0x0003_0000 Non-secure
3131
*/
3232

3333
/* This header file is included from linker scatter file as well, where only a
@@ -63,12 +63,12 @@
6363

6464
#define FLASH_SST_AREA_OFFSET (FLASH_AREA_IMAGE_0_OFFSET + \
6565
FLASH_AREA_IMAGE_0_SIZE) // 0x00028000
66-
#define FLASH_SST_AREA_SIZE (0x00010000) /* 64 KB */
66+
#define FLASH_SST_AREA_SIZE (0x00008000) /* 32 KB */
6767

6868
/* Non-secure image */
6969
#define FLASH_AREA_IMAGE_1_OFFSET (FLASH_SST_AREA_OFFSET +\
70-
FLASH_SST_AREA_SIZE) // 0x00038000
71-
#define FLASH_AREA_IMAGE_1_SIZE (0x00060000)
70+
FLASH_SST_AREA_SIZE) // 0x00030000
71+
#define FLASH_AREA_IMAGE_1_SIZE (0x00068000)
7272

7373
#define FLASH_AREA_IMAGE_SCRATCH_OFFSET (FLASH_AREA_IMAGE_1_OFFSET +\
7474
FLASH_AREA_IMAGE_1_SIZE)
@@ -78,8 +78,8 @@
7878
#define SECURE_IMAGE_OFFSET 0x0
7979
#define SECURE_IMAGE_MAX_SIZE 0x00028000
8080

81-
#define NON_SECURE_IMAGE_OFFSET 0x00038000
82-
#define NON_SECURE_IMAGE_MAX_SIZE 0x00060000
81+
#define NON_SECURE_IMAGE_OFFSET 0x00030000
82+
#define NON_SECURE_IMAGE_MAX_SIZE 0x00068000
8383

8484
/* Flash device name used by BL2 and SST
8585
* Name is defined in flash driver file: Driver_Flash.c

targets/targets.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,8 +2092,8 @@
20922092
"post_binary_hook": {"function": "LPC55S69Code.binary_hook"},
20932093
"secure_image_filename": "tfm.bin",
20942094
"overrides": {
2095-
"non-secure-rom-start": "0x00038000",
2096-
"non-secure-rom-size": "0x60000",
2095+
"non-secure-rom-start": "0x00030000",
2096+
"non-secure-rom-size": "0x68000",
20972097
"non-secure-ram-start": "0x20022000",
20982098
"non-secure-ram-size": "0x22000",
20992099
"secure-rom-start": "0x10000000",
@@ -2128,8 +2128,8 @@
21282128
"deliver_to_target": "LPC55S69_NS",
21292129
"delivery_dir": "TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_M33_NS/prebuilt",
21302130
"overrides": {
2131-
"non-secure-rom-start": "0x00038000",
2132-
"non-secure-rom-size": "0x60000",
2131+
"non-secure-rom-start": "0x00030000",
2132+
"non-secure-rom-size": "0x68000",
21332133
"non-secure-ram-start": "0x20022000",
21342134
"non-secure-ram-size": "0x22000",
21352135
"secure-rom-start": "0x10000000",

0 commit comments

Comments
 (0)