File tree Expand file tree Collapse file tree 4 files changed +34
-2
lines changed
device/TOOLCHAIN_GCC_ARM/TARGET_UNO_91H Expand file tree Collapse file tree 4 files changed +34
-2
lines changed 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 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 8509
8509
"UNO_91H" : {
8510
8510
"inherits" : [" RDA5981X" ],
8511
8511
"detect_code" : [" 8001" ],
8512
+ "components_add" : [" FLASHIAP" ],
8513
+ "bootloader_supported" : true ,
8514
+ "mbed_ram_start" : " 0x00100080" ,
8515
+ "mbed_ram_size" : " 0x1ff80" ,
8516
+ "mbed_rom_start" : " 0x18001000" ,
8517
+ "mbed_rom_size" : " 0x1F4000" ,
8518
+ "device_name" : " RDA5981X" ,
8519
+ "sectors" : [[0 ,4096 ]],
8512
8520
"overrides" : {
8513
8521
"network-default-interface-type" : " WIFI"
8514
8522
}
You can’t perform that action at this time.
0 commit comments