Skip to content

Commit c3efc6e

Browse files
fredlee12001adbridge
authored andcommitted
PDMC support for ARMCC and IAR
1 parent 1cfdbfd commit c3efc6e

File tree

2 files changed

+16
-1
lines changed
  • targets/TARGET_RDA/TARGET_UNO_91H/device

2 files changed

+16
-1
lines changed

targets/TARGET_RDA/TARGET_UNO_91H/device/TOOLCHAIN_ARM_STD/TARGET_UNO_91H/RDA5981C.sct

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,19 @@
2121
#if defined(RDA_ICACHE_DISABLE)
2222
#define RDA_CODE_BASE (RDA_FLASH_BASE + RDA_PADDR_OFST)
2323
#else /* RDA_ICACHE_DISABLE */
24+
25+
#if !defined(MBED_APP_START) /* MBED_APP_START */
2426
#define RDA_CODE_BASE (RDA_ICACHE_BASE + RDA_PADDR_OFST)
27+
#else /* MBED_APP_START */
28+
#define RDA_CODE_BASE (MBED_APP_START)
29+
#endif /* MBED_APP_START */
30+
2531
#endif /* RDA_ICACHE_DISABLE */
26-
#define RDA_CODE_SIZE (0x001F4000)
32+
33+
#if !defined(MBED_APP_SIZE)
34+
#define MBED_APP_SIZE 2000K
35+
#endif
36+
#define RDA_CODE_SIZE (MBED_APP_SIZE)
2737
#define RDA_AHB1_BASE (0x40100000)
2838
#define RDA_MEMC_BASE (RDA_AHB1_BASE + 0x00000)
2939

targets/TARGET_RDA/TARGET_UNO_91H/device/TOOLCHAIN_IAR/TARGET_UNO_91H/RDA5981C.icf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ if (0 == RDA_PARTITION_INDEX) {
1717
if (1 == RDA_ICACHE_DISABLE) {
1818
define symbol RDA_CODE_BASE = RDA_FLASH_BASE + RDA_PADDR_OFST;
1919
} else {
20+
21+
/* MBED_APP_START */
22+
if (!isdefinedsymbol(MBED_APP_START)) {
2023
define symbol RDA_CODE_BASE = RDA_ICACHE_BASE + RDA_PADDR_OFST;
24+
else
25+
define symbol RDA_CODE_BASE = MBED_APP_START;
2126
}
2227
define symbol RDA_CODE_END = RDA_CODE_BASE + 0x1F3FFF;
2328
define symbol RDA_AHB1_BASE = 0x40100000;

0 commit comments

Comments
 (0)