Skip to content

Commit 232d767

Browse files
author
Jamie Smith
authored
Supply memory bank information from the configuration script (#326)
* New version of memory bank information system * Start upconverting linker scripts and target definitions * Augh my script was being gitignored * Add tests, update Cypress and STM32 linker scripts and target definitions * Fix some CI issues * Fix warning spam on LPC1768 * Fix STM32H745 family compile failure due to failure to include cmsis_nvic.h * Respond to easy comments * Break up function into pieces * Improve type hints, don't write out a JSON file as a side effect * Two more comments
1 parent b352953 commit 232d767

File tree

68 files changed

+2484
-1403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2484
-1403
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ mbed_settings.py
1212

1313
# Default Build Directory
1414
.build/
15-
BUILD/
1615
.mbed
1716
venv/
1817

platform/include/platform/mbed_stats.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ typedef struct {
161161
uint32_t cpu_id; /**< CPUID register data (Cortex-M only supported) */
162162
mbed_compiler_id_t compiler_id; /**< Compiler ID \ref mbed_compiler_id_t */
163163
uint32_t compiler_version; /**< Compiler version */
164-
uint32_t ram_start[MBED_MAX_MEM_REGIONS]; /**< Start addresses of all internal RAM memories */
165-
uint32_t ram_size[MBED_MAX_MEM_REGIONS]; /**< Size of all internal RAM memories in target */
166-
uint32_t rom_start[MBED_MAX_MEM_REGIONS]; /**< Start addresses of all internal ROM memories */
167-
uint32_t rom_size[MBED_MAX_MEM_REGIONS]; /**< Size of all internal ROM memories in target */
164+
uint32_t ram_start[MBED_MAX_MEM_REGIONS]; /**< Configured start addresses of all internal RAM memories */
165+
uint32_t ram_size[MBED_MAX_MEM_REGIONS]; /**< Configured sizes of all internal RAM memories in target */
166+
uint32_t rom_start[MBED_MAX_MEM_REGIONS]; /**< Configured start addresses of all internal ROM memories */
167+
uint32_t rom_size[MBED_MAX_MEM_REGIONS]; /**< Configured sizes of all internal ROM memories in target */
168168
} mbed_stats_sys_t;
169169

170170
/**

platform/source/mbed_stats.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -146,37 +146,37 @@ void mbed_stats_sys_get(mbed_stats_sys_t *stats)
146146

147147
#if defined(MBED_SYS_STATS_ENABLED)
148148
stats->os_version = MBED_VERSION;
149-
#if defined(MBED_RAM_START) && defined(MBED_RAM_SIZE)
150-
stats->ram_start[0] = MBED_RAM_START;
151-
stats->ram_size[0] = MBED_RAM_SIZE;
149+
#if defined(MBED_CONFIGURED_RAM_START) && defined(MBED_CONFIGURED_RAM_SIZE)
150+
stats->ram_start[0] = MBED_CONFIGURED_RAM_START;
151+
stats->ram_size[0] = MBED_CONFIGURED_RAM_SIZE;
152152
#endif
153-
#if defined(MBED_ROM_START) && defined(MBED_ROM_SIZE)
154-
stats->rom_start[0] = MBED_ROM_START;
155-
stats->rom_size[0] = MBED_ROM_SIZE;
153+
#if defined(MBED_CONFIGURED_ROM_START) && defined(MBED_CONFIGURED_ROM_SIZE)
154+
stats->rom_start[0] = MBED_CONFIGURED_ROM_START;
155+
stats->rom_size[0] = MBED_CONFIGURED_ROM_SIZE;
156156
#endif
157-
#if defined(MBED_RAM1_START) && defined(MBED_RAM1_SIZE)
158-
stats->ram_start[1] = MBED_RAM1_START;
159-
stats->ram_size[1] = MBED_RAM1_SIZE;
157+
#if defined(MBED_CONFIGURED_RAM1_START) && defined(MBED_CONFIGURED_RAM1_SIZE)
158+
stats->ram_start[1] = MBED_CONFIGURED_RAM1_START;
159+
stats->ram_size[1] = MBED_CONFIGURED_RAM1_SIZE;
160160
#endif
161-
#if defined(MBED_RAM2_START) && defined(MBED_RAM2_SIZE)
162-
stats->ram_start[2] = MBED_RAM2_START;
163-
stats->ram_size[2] = MBED_RAM2_SIZE;
161+
#if defined(MBED_CONFIGURED_RAM2_START) && defined(MBED_CONFIGURED_RAM2_SIZE)
162+
stats->ram_start[2] = MBED_CONFIGURED_RAM2_START;
163+
stats->ram_size[2] = MBED_CONFIGURED_RAM2_SIZE;
164164
#endif
165-
#if defined(MBED_RAM3_START) && defined(MBED_RAM3_SIZE)
166-
stats->ram_start[3] = MBED_RAM3_START;
167-
stats->ram_size[3] = MBED_RAM3_SIZE;
165+
#if defined(MBED_CONFIGURED_RAM3_START) && defined(MBED_CONFIGURED_RAM3_SIZE)
166+
stats->ram_start[3] = MBED_CONFIGURED_RAM3_START;
167+
stats->ram_size[3] = MBED_CONFIGURED_RAM3_SIZE;
168168
#endif
169-
#if defined(MBED_ROM1_START) && defined(MBED_ROM1_SIZE)
170-
stats->rom_start[1] = MBED_ROM1_START;
171-
stats->rom_size[1] = MBED_ROM1_SIZE;
169+
#if defined(MBED_CONFIGURED_ROM1_START) && defined(MBED_CONFIGURED_ROM1_SIZE)
170+
stats->rom_start[1] = MBED_CONFIGURED_ROM1_START;
171+
stats->rom_size[1] = MBED_CONFIGURED_ROM1_SIZE;
172172
#endif
173-
#if defined(MBED_ROM2_START) && defined(MBED_ROM2_SIZE)
174-
stats->rom_start[2] = MBED_ROM2_START;
175-
stats->rom_size[2] = MBED_ROM2_SIZE;
173+
#if defined(MBED_CONFIGURED_ROM2_START) && defined(MBED_CONFIGURED_ROM2_SIZE)
174+
stats->rom_start[2] = MBED_CONFIGURED_ROM2_START;
175+
stats->rom_size[2] = MBED_CONFIGURED_ROM2_SIZE;
176176
#endif
177-
#if defined(MBED_ROM3_START) && defined(MBED_ROM3_SIZE)
178-
stats->rom_start[3] = MBED_ROM3_START;
179-
stats->rom_size[3] = MBED_ROM3_SIZE;
177+
#if defined(MBED_CONFIGURED_ROM3_START) && defined(MBED_CONFIGURED_ROM3_SIZE)
178+
stats->rom_start[3] = MBED_CONFIGURED_ROM3_START;
179+
stats->rom_size[3] = MBED_CONFIGURED_ROM3_SIZE;
180180
#endif
181181

182182
#if defined(__CORTEX_M)

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT064B0S2_4343W/device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cyb06xxa_cm4_dual.ld

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,14 @@ FLASH_CM0P_SIZE = 0x10000;
5050
/* The size of the MCU boot header area at the start of FLASH */
5151
BOOT_HEADER_SIZE = 0x400;
5252

53-
#if !defined(MBED_ROM_START)
54-
#define MBED_ROM_START 0x10000000
55-
#endif
56-
57-
/* MBED_APP_START is being used by the bootloader build script and
58-
* will be calculate by the system. In case if MBED_APP_START address is
59-
* customized by the bootloader config, the application image should not
60-
* include CM0p prebuilt image.
61-
*/
53+
/*
54+
* Figure out start address and size of application, unless overridden by definitions
55+
*/
6256
#if !defined(MBED_APP_START)
63-
#define MBED_APP_START (MBED_ROM_START + FLASH_CM0P_SIZE)
64-
#endif
65-
66-
#if !defined(MBED_ROM_SIZE)
67-
#define MBED_ROM_SIZE 0x000E8000
57+
#define MBED_APP_START (MBED_CONFIGURED_ROM_BANK_IROM1_START + FLASH_CM0P_SIZE)
6858
#endif
69-
70-
/* MBED_APP_SIZE is being used by the bootloader build script and
71-
* will be calculate by the system.
72-
*/
7359
#if !defined(MBED_APP_SIZE)
74-
#define MBED_APP_SIZE (MBED_ROM_SIZE - FLASH_CM0P_SIZE)
75-
#endif
76-
77-
#if !defined(MBED_RAM_START)
78-
#define MBED_RAM_START 0x08001800
79-
#endif
80-
81-
#if !defined(MBED_RAM_SIZE)
82-
#define MBED_RAM_SIZE 0x000DE800
60+
#define MBED_APP_SIZE (MBED_CONFIGURED_ROM_BANK_IROM1_SIZE - FLASH_CM0P_SIZE)
8361
#endif
8462

8563
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
@@ -108,8 +86,8 @@ MEMORY
10886
* Your changes must be aligned with the corresponding memory regions for CM0+ core in 'xx_cm0plus.ld',
10987
* where 'xx' is the device group; for example, 'cyb06xxa_cm0plus.ld'.
11088
*/
111-
ram (rwx) : ORIGIN = MBED_RAM_START, LENGTH = MBED_RAM_SIZE
112-
cm0p_image (rx) : ORIGIN = (MBED_ROM_START + BOOT_HEADER_SIZE), LENGTH = FLASH_CM0P_SIZE
89+
ram (rwx) : ORIGIN = MBED_CONFIGURED_RAM_BANK_IRAM1_START, LENGTH = MBED_CONFIGURED_RAM_BANK_IRAM1_SIZE
90+
cm0p_image (rx) : ORIGIN = MBED_ROM_BANK_IROM1_START + BOOT_HEADER_SIZE, LENGTH = FLASH_CM0P_SIZE
11391
flash (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
11492

11593
/* This is a 32K flash region used for EEPROM emulation. This region can also be used as the general purpose flash.
@@ -443,8 +421,8 @@ SECTIONS
443421

444422
/* The following symbols used by the cymcuelftool. */
445423
/* Flash */
446-
__cy_memory_0_start = 0x10000000;
447-
__cy_memory_0_length = 0x001D0000;
424+
__cy_memory_0_start = MBED_ROM_BANK_IROM1_START;
425+
__cy_memory_0_length = MBED_ROM_BANK_IROM1_SIZE;
448426
__cy_memory_0_row_size = 0x200;
449427

450428
/* Emulated EEPROM Flash area */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062S2_43012/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cy8c6xxa_cm4_dual.ld

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -47,36 +47,14 @@ ENTRY(Reset_Handler)
4747
/* The size of the Cortex-M0+ application image at the start of FLASH */
4848
FLASH_CM0P_SIZE = 0x2000;
4949

50-
#if !defined(MBED_ROM_START)
51-
#define MBED_ROM_START 0x10000000
52-
#endif
53-
54-
/* MBED_APP_START is being used by the bootloader build script and
55-
* will be calculate by the system. In case if MBED_APP_START address is
56-
* customized by the bootloader config, the application image should not
57-
* include CM0p prebuilt image.
58-
*/
50+
/*
51+
* Figure out start address and size of application, unless overridden by definitions
52+
*/
5953
#if !defined(MBED_APP_START)
60-
#define MBED_APP_START (MBED_ROM_START + FLASH_CM0P_SIZE)
61-
#endif
62-
63-
#if !defined(MBED_ROM_SIZE)
64-
#define MBED_ROM_SIZE 0x00200000
54+
#define MBED_APP_START (MBED_CONFIGURED_ROM_BANK_IROM1_START + FLASH_CM0P_SIZE)
6555
#endif
66-
67-
/* MBED_APP_SIZE is being used by the bootloader build script and
68-
* will be calculate by the system.
69-
*/
7056
#if !defined(MBED_APP_SIZE)
71-
#define MBED_APP_SIZE (MBED_ROM_SIZE - FLASH_CM0P_SIZE)
72-
#endif
73-
74-
#if !defined(MBED_RAM_START)
75-
#define MBED_RAM_START 0x08002000
76-
#endif
77-
78-
#if !defined(MBED_RAM_SIZE)
79-
#define MBED_RAM_SIZE 0x000FD800
57+
#define MBED_APP_SIZE (MBED_CONFIGURED_ROM_BANK_IROM1_SIZE - FLASH_CM0P_SIZE)
8058
#endif
8159

8260
#if !defined(MBED_BOOT_STACK_SIZE)
@@ -106,8 +84,8 @@ MEMORY
10684
* Your changes must be aligned with the corresponding memory regions for CM0+ core in 'xx_cm0plus.ld',
10785
* where 'xx' is the device group; for example, 'cy8c6xx7_cm0plus.ld'.
10886
*/
109-
ram (rwx) : ORIGIN = MBED_RAM_START, LENGTH = MBED_RAM_SIZE
110-
cm0p_image (rx) : ORIGIN = MBED_ROM_START, LENGTH = FLASH_CM0P_SIZE
87+
ram (rwx) : ORIGIN = MBED_CONFIGURED_RAM_BANK_IRAM1_START, LENGTH = MBED_CONFIGURED_RAM_BANK_IRAM1_SIZE
88+
cm0p_image (rx) : ORIGIN = MBED_CONFIGURED_ROM_BANK_IROM1_START, LENGTH = FLASH_CM0P_SIZE
11189
flash (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
11290

11391
/* This is a 32K flash region used for EEPROM emulation. This region can also be used as the general purpose flash.
@@ -440,8 +418,8 @@ SECTIONS
440418

441419
/* The following symbols used by the cymcuelftool. */
442420
/* Flash */
443-
__cy_memory_0_start = 0x10000000;
444-
__cy_memory_0_length = 0x00200000;
421+
__cy_memory_0_start = MBED_ROM_BANK_IROM1_START;
422+
__cy_memory_0_length = MBED_ROM_BANK_IROM1_SIZE;
445423
__cy_memory_0_row_size = 0x200;
446424

447425
/* Emulated EEPROM Flash area */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_BLE/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cy8c6xx7_cm4_dual.ld

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,32 +51,14 @@ FLASH_CM0P_SIZE = 0x2000;
5151
#define MBED_ROM_START 0x10000000
5252
#endif
5353

54-
/* MBED_APP_START is being used by the bootloader build script and
55-
* will be calculate by the system. In case if MBED_APP_START address is
56-
* customized by the bootloader config, the application image should not
57-
* include CM0p prebuilt image.
58-
*/
54+
/*
55+
* Figure out start address and size of application, unless overridden by definitions
56+
*/
5957
#if !defined(MBED_APP_START)
60-
#define MBED_APP_START (MBED_ROM_START + FLASH_CM0P_SIZE)
58+
#define MBED_APP_START (MBED_CONFIGURED_ROM_BANK_IROM1_START + FLASH_CM0P_SIZE)
6159
#endif
62-
63-
#if !defined(MBED_ROM_SIZE)
64-
#define MBED_ROM_SIZE 0x00100000
65-
#endif
66-
67-
/* MBED_APP_SIZE is being used by the bootloader build script and
68-
* will be calculate by the system.
69-
*/
7060
#if !defined(MBED_APP_SIZE)
71-
#define MBED_APP_SIZE (MBED_ROM_SIZE - FLASH_CM0P_SIZE)
72-
#endif
73-
74-
#if !defined(MBED_RAM_START)
75-
#define MBED_RAM_START 0x08002000
76-
#endif
77-
78-
#if !defined(MBED_RAM_SIZE)
79-
#define MBED_RAM_SIZE 0x00045800
61+
#define MBED_APP_SIZE (MBED_CONFIGURED_ROM_BANK_IROM1_SIZE - FLASH_CM0P_SIZE)
8062
#endif
8163

8264
#if !defined(MBED_BOOT_STACK_SIZE)
@@ -106,8 +88,8 @@ MEMORY
10688
* Your changes must be aligned with the corresponding memory regions for CM0+ core in 'xx_cm0plus.ld',
10789
* where 'xx' is the device group; for example, 'cy8c6xx7_cm0plus.ld'.
10890
*/
109-
ram (rwx) : ORIGIN = MBED_RAM_START, LENGTH = MBED_RAM_SIZE
110-
cm0p_image (rx) : ORIGIN = MBED_ROM_START, LENGTH = FLASH_CM0P_SIZE
91+
ram (rwx) : ORIGIN = MBED_CONFIGURED_RAM_BANK_IRAM1_START, LENGTH = MBED_CONFIGURED_RAM_BANK_IRAM1_SIZE
92+
cm0p_image (rx) : ORIGIN = MBED_CONFIGURED_ROM_BANK_IROM1_START, LENGTH = FLASH_CM0P_SIZE
11193
flash (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
11294

11395
/* This is a 32K flash region used for EEPROM emulation. This region can also be used as the general purpose flash.
@@ -440,8 +422,8 @@ SECTIONS
440422

441423
/* The following symbols used by the cymcuelftool. */
442424
/* Flash */
443-
__cy_memory_0_start = 0x10000000;
444-
__cy_memory_0_length = 0x00100000;
425+
__cy_memory_0_start = MBED_ROM_BANK_IROM1_START;
426+
__cy_memory_0_length = MBED_ROM_BANK_IROM1_SIZE;
445427
__cy_memory_0_row_size = 0x200;
446428

447429
/* Emulated EEPROM Flash area */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cy8c6xx7_cm4_dual.ld

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,36 +47,14 @@ ENTRY(Reset_Handler)
4747
/* The size of the Cortex-M0+ application image at the start of FLASH */
4848
FLASH_CM0P_SIZE = 0x2000;
4949

50-
#if !defined(MBED_ROM_START)
51-
#define MBED_ROM_START 0x10000000
52-
#endif
53-
54-
/* MBED_APP_START is being used by the bootloader build script and
55-
* will be calculate by the system. In case if MBED_APP_START address is
56-
* customized by the bootloader config, the application image should not
57-
* include CM0p prebuilt image.
58-
*/
50+
/*
51+
* Figure out start address and size of application, unless overridden by definitions
52+
*/
5953
#if !defined(MBED_APP_START)
60-
#define MBED_APP_START (MBED_ROM_START + FLASH_CM0P_SIZE)
61-
#endif
62-
63-
#if !defined(MBED_ROM_SIZE)
64-
#define MBED_ROM_SIZE 0x00100000
54+
#define MBED_APP_START (MBED_CONFIGURED_ROM_BANK_IROM1_START + FLASH_CM0P_SIZE)
6555
#endif
66-
67-
/* MBED_APP_SIZE is being used by the bootloader build script and
68-
* will be calculate by the system.
69-
*/
7056
#if !defined(MBED_APP_SIZE)
71-
#define MBED_APP_SIZE (MBED_ROM_SIZE - FLASH_CM0P_SIZE)
72-
#endif
73-
74-
#if !defined(MBED_RAM_START)
75-
#define MBED_RAM_START 0x08002000
76-
#endif
77-
78-
#if !defined(MBED_RAM_SIZE)
79-
#define MBED_RAM_SIZE 0x00045800
57+
#define MBED_APP_SIZE (MBED_CONFIGURED_ROM_BANK_IROM1_SIZE - FLASH_CM0P_SIZE)
8058
#endif
8159

8260
#if !defined(MBED_BOOT_STACK_SIZE)
@@ -440,8 +418,8 @@ SECTIONS
440418

441419
/* The following symbols used by the cymcuelftool. */
442420
/* Flash */
443-
__cy_memory_0_start = 0x10000000;
444-
__cy_memory_0_length = 0x00100000;
421+
__cy_memory_0_start = MBED_ROM_BANK_IROM1_START;
422+
__cy_memory_0_length = MBED_ROM_BANK_IROM1_SIZE;
445423
__cy_memory_0_row_size = 0x200;
446424

447425
/* Emulated EEPROM Flash area */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CPROTO_062S3_4343W/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cy8c6xx5_cm4_dual.ld

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -47,36 +47,14 @@ ENTRY(Reset_Handler)
4747
/* The size of the Cortex-M0+ application image at the start of FLASH */
4848
FLASH_CM0P_SIZE = 0x2000;
4949

50-
#if !defined(MBED_ROM_START)
51-
#define MBED_ROM_START 0x10000000
52-
#endif
53-
54-
/* MBED_APP_START is being used by the bootloader build script and
55-
* will be calculate by the system. In case if MBED_APP_START address is
56-
* customized by the bootloader config, the application image should not
57-
* include CM0p prebuilt image.
58-
*/
50+
/*
51+
* Figure out start address and size of application, unless overridden by definitions
52+
*/
5953
#if !defined(MBED_APP_START)
60-
#define MBED_APP_START (MBED_ROM_START + FLASH_CM0P_SIZE)
61-
#endif
62-
63-
#if !defined(MBED_ROM_SIZE)
64-
#define MBED_ROM_SIZE 0x00080000
54+
#define MBED_APP_START (MBED_CONFIGURED_ROM_BANK_IROM1_START + FLASH_CM0P_SIZE)
6555
#endif
66-
67-
/* MBED_APP_SIZE is being used by the bootloader build script and
68-
* will be calculate by the system.
69-
*/
7056
#if !defined(MBED_APP_SIZE)
71-
#define MBED_APP_SIZE (MBED_ROM_SIZE - FLASH_CM0P_SIZE)
72-
#endif
73-
74-
#if !defined(MBED_RAM_START)
75-
#define MBED_RAM_START 0x08002000
76-
#endif
77-
78-
#if !defined(MBED_RAM_SIZE)
79-
#define MBED_RAM_SIZE 0x0003D800
57+
#define MBED_APP_SIZE (MBED_CONFIGURED_ROM_BANK_IROM1_SIZE - FLASH_CM0P_SIZE)
8058
#endif
8159

8260
#if !defined(MBED_BOOT_STACK_SIZE)
@@ -106,8 +84,8 @@ MEMORY
10684
* Your changes must be aligned with the corresponding memory regions for CM0+ core in 'xx_cm0plus.ld',
10785
* where 'xx' is the device group; for example, 'cy8c6xx7_cm0plus.ld'.
10886
*/
109-
ram (rwx) : ORIGIN = MBED_RAM_START, LENGTH = MBED_RAM_SIZE
110-
cm0p_image (rx) : ORIGIN = MBED_ROM_START, LENGTH = FLASH_CM0P_SIZE
87+
ram (rwx) : ORIGIN = MBED_CONFIGURED_RAM_BANK_IRAM1_START, LENGTH = MBED_CONFIGURED_RAM_BANK_IRAM1_SIZE
88+
cm0p_image (rx) : ORIGIN = MBED_CONFIGURED_ROM_BANK_IROM1_START, LENGTH = FLASH_CM0P_SIZE
11189
flash (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
11290

11391
/* This is a 32K flash region used for EEPROM emulation. This region can also be used as the general purpose flash.
@@ -440,8 +418,8 @@ SECTIONS
440418

441419
/* The following symbols used by the cymcuelftool. */
442420
/* Flash */
443-
__cy_memory_0_start = 0x10000000;
444-
__cy_memory_0_length = 0x00080000;
421+
__cy_memory_0_start = MBED_ROM_BANK_IROM1_START;
422+
__cy_memory_0_length = MBED_ROM_BANK_IROM1_SIZE;
445423
__cy_memory_0_row_size = 0x200;
446424

447425
/* Emulated EEPROM Flash area */

0 commit comments

Comments
 (0)