Skip to content

Commit 30754bf

Browse files
committed
M2354: Temporary workaround to MBED_ROM_START and friends absent
MBED_ROM_START and friends are absent in Mbed CLI2. Hard-code these values as workaround. ARMmbed/mbed-tools#222
1 parent a382f9f commit 30754bf

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

targets/TARGET_NUVOTON/TARGET_M2354/device/partition_M2354_mem.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,26 @@
3535

3636
/* Resolve non-secure ROM start */
3737
#ifndef MBED_ROM_START
38-
#error("MBED_ROM_START must be present!!!")
38+
/* FIXME: Workaround to cmake build doesn't generate this symbol yet */
39+
#define MBED_ROM_START 0x10070400
3940
#endif
4041

4142
/* Resolve non-secure ROM size */
4243
#ifndef MBED_ROM_SIZE
43-
#error("MBED_ROM_SIZE must be present!!!")
44+
/* FIXME: Workaround to cmake build doesn't generate this symbol yet */
45+
#define MBED_ROM_SIZE 0x8F400
4446
#endif
4547

4648
/* Resolve non-secure RAM start */
4749
#ifndef MBED_RAM_START
48-
#error("MBED_RAM_START must be present!!!")
50+
/* FIXME: Workaround to cmake build doesn't generate this symbol yet */
51+
#define MBED_RAM_START 0x30014000
4952
#endif
5053

5154
/* Resolve non-secure RAM size */
5255
#ifndef MBED_RAM_SIZE
53-
#error("MBED_RAM_SIZE must be present!!!")
56+
/* FIXME: Workaround to cmake build doesn't generate this symbol yet */
57+
#define MBED_RAM_SIZE 0x2C000
5458
#endif
5559

5660
/* Mbed build tool passes just APPLICATION_xxx macros to C/C++ files and just

targets/TARGET_NUVOTON/TARGET_M2354/device/partition_M2354_mem.icf.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,26 @@
2020

2121
/* Resolve non-secure ROM start */
2222
if (! isdefinedsymbol(MBED_ROM_START)) {
23-
error "MBED_ROM_START must be present!!!";
23+
/* FIXME: Workaround to cmake build doesn't generate this symbol yet */
24+
define MBED_ROM_START = 0x10070400;
2425
}
2526

2627
/* Resolve non-secure ROM size */
2728
if (! isdefinedsymbol(MBED_ROM_SIZE)) {
28-
error "MBED_ROM_SIZE must be present!!!";
29+
/* FIXME: Workaround to cmake build doesn't generate this symbol yet */
30+
define MBED_ROM_SIZE = 0x8F400;
2931
}
3032

3133
/* Resolve non-secure RAM start */
3234
if (! isdefinedsymbol(MBED_RAM_START)) {
33-
error "MBED_RAM_START must be present!!!";
35+
/* FIXME: Workaround to cmake build doesn't generate this symbol yet */
36+
define MBED_RAM_START = 0x30014000;
3437
}
3538

3639
/* Resolve non-secure RAM size */
3740
if (! isdefinedsymbol(MBED_RAM_SIZE)) {
38-
error "MBED_RAM_SIZE must be present!!!";
41+
/* FIXME: Workaround to cmake build doesn't generate this symbol yet */
42+
define MBED_RAM_SIZE = 0x2C000;
3943
}
4044

4145
/* Mbed build tool passes just APPLICATION_xxx macros to C/C++ files and just

0 commit comments

Comments
 (0)