File tree Expand file tree Collapse file tree 6 files changed +49
-3
lines changed
TOOLCHAIN_ARM_STD/TARGET_UNO_91H
TOOLCHAIN_GCC_ARM/TARGET_UNO_91H
TOOLCHAIN_IAR/TARGET_UNO_91H Expand file tree Collapse file tree 6 files changed +49
-3
lines changed Original file line number Diff line number Diff line change 21
21
#if defined(RDA_ICACHE_DISABLE)
22
22
#define RDA_CODE_BASE (RDA_FLASH_BASE + RDA_PADDR_OFST)
23
23
#else /* RDA_ICACHE_DISABLE */
24
+
25
+ #if !defined(MBED_APP_START) /* MBED_APP_START */
24
26
#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
+
25
31
#endif /* RDA_ICACHE_DISABLE */
26
- #define RDA_CODE_SIZE (0x001F4000)
32
+
33
+ #if !defined(MBED_APP_SIZE)
34
+ #define MBED_APP_SIZE (0x1F4000)
35
+ #endif
36
+ #define RDA_CODE_SIZE (MBED_APP_SIZE)
27
37
#define RDA_AHB1_BASE (0x40100000)
28
38
#define RDA_MEMC_BASE (RDA_AHB1_BASE + 0x00000)
29
39
Original file line number Diff line number Diff line change 6
6
7
7
STACK_SIZE = MBED_BOOT_STACK_SIZE;
8
8
9
+ #if !defined(MBED_APP_START)
10
+ #define MBED_APP_START 0x18001000
11
+ #endif
12
+
13
+ #if !defined(MBED_APP_SIZE)
14
+ #define MBED_APP_SIZE 2000K
15
+ #endif
16
+
9
17
/* Linker script to configure memory regions. */
10
18
MEMORY
11
19
{
12
20
/* If ICache is enable, use virtual flash base address */
13
21
/* Use partition index : 0 */
14
- FLASH (rx) : ORIGIN = 0x18001000 , LENGTH = 2000K
22
+ FLASH (rx) : ORIGIN = MBED_APP_START , LENGTH = MBED_APP_SIZE
15
23
/* Use partition index : 1 */
16
24
/* FLASH (rx) : ORIGIN = 0x181F5000, LENGTH = 2000K */
17
25
Original file line number Diff line number Diff line change @@ -17,7 +17,12 @@ if (0 == RDA_PARTITION_INDEX) {
17
17
if (1 == RDA_ICACHE_DISABLE) {
18
18
define symbol RDA_CODE_BASE = RDA_FLASH_BASE + RDA_PADDR_OFST;
19
19
} else {
20
+ /* MBED_APP_START */
21
+ if (!isdefinedsymbol(MBED_APP_START)) {
20
22
define symbol RDA_CODE_BASE = RDA_ICACHE_BASE + RDA_PADDR_OFST;
23
+ } else {
24
+ define symbol RDA_CODE_BASE = MBED_APP_START;
25
+ }
21
26
}
22
27
define symbol RDA_CODE_END = RDA_CODE_BASE + 0x1F3FFF;
23
28
define symbol RDA_AHB1_BASE = 0x40100000;
Original file line number Diff line number Diff line change 18
18
#include "flash_data.h"
19
19
#include "mbed_critical.h"
20
20
21
+ #ifndef MBED_ROM_SIZE
22
+ #define MBED_FLASH_SIZE 0x100000
23
+ #else
24
+ //there is 4K BOOTROM at beginning of the flash
25
+ #define MBED_FLASH_SIZE (MBED_ROM_SIZE+0x1000)
26
+ #endif
27
+
28
+
21
29
// This file is automagically generated
22
30
23
31
// This is a flash algo binary blob. It is PIC (position independent code) that should be stored in RAM
@@ -68,7 +76,7 @@ static const sector_info_t sectors_info[] = {
68
76
static const flash_target_config_t flash_target_config = {
69
77
.page_size = 0x100 ,
70
78
.flash_start = 0x18000000 ,
71
- .flash_size = 0x100000 ,
79
+ .flash_size = MBED_FLASH_SIZE ,
72
80
.sectors = sectors_info ,
73
81
.sector_info_count = sizeof (sectors_info ) / sizeof (sector_info_t )
74
82
};
Original file line number Diff line number Diff line change @@ -42,4 +42,12 @@ extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
42
42
#error "no toolchain defined"
43
43
#endif
44
44
45
+ #if defined(TARGET_UNO_91H )
46
+ /* Stack Pointer */
47
+ #ifndef INITIAL_SP
48
+ #define INITIAL_SP (0x120000UL)
49
+ //#define INITIAL_SP (0x1A8000UL)
50
+ #endif
51
+ #endif
52
+
45
53
#endif // MBED_MBED_RTX_H
Original file line number Diff line number Diff line change 8519
8519
"UNO_91H" : {
8520
8520
"inherits" : [" RDA5981X" ],
8521
8521
"detect_code" : [" 8001" ],
8522
+ "components_add" : [" FLASHIAP" ],
8523
+ "bootloader_supported" : true ,
8524
+ "mbed_ram_start" : " 0x00100080" ,
8525
+ "mbed_ram_size" : " 0x1ff80" ,
8526
+ "mbed_rom_start" : " 0x18001000" ,
8527
+ "mbed_rom_size" : " 0x1F4000" ,
8528
+ "sectors" : [[0 ,4096 ]],
8522
8529
"overrides" : {
8523
8530
"network-default-interface-type" : " WIFI"
8524
8531
}
You can’t perform that action at this time.
0 commit comments