mirror of https://github.com/ARMmbed/mbed-os.git
Add configuration to support PDMC compile
Configurable flash size for UNO_91Hpull/10449/head
parent
46603f831e
commit
784f2a070a
|
@ -6,12 +6,20 @@
|
|||
|
||||
STACK_SIZE = MBED_BOOT_STACK_SIZE;
|
||||
|
||||
#if !defined(MBED_APP_START)
|
||||
#define MBED_APP_START 0x18001000
|
||||
#endif
|
||||
|
||||
#if !defined(MBED_APP_SIZE)
|
||||
#define MBED_APP_SIZE 2000K
|
||||
#endif
|
||||
|
||||
/* Linker script to configure memory regions. */
|
||||
MEMORY
|
||||
{
|
||||
/* If ICache is enable, use virtual flash base address */
|
||||
/* Use partition index: 0 */
|
||||
FLASH (rx) : ORIGIN = 0x18001000, LENGTH = 2000K
|
||||
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
|
||||
/* Use partition index: 1 */
|
||||
/* FLASH (rx) : ORIGIN = 0x181F5000, LENGTH = 2000K */
|
||||
|
||||
|
|
|
@ -18,6 +18,14 @@
|
|||
#include "flash_data.h"
|
||||
#include "mbed_critical.h"
|
||||
|
||||
#ifndef MBED_ROM_SIZE
|
||||
#define MBED_FLASH_SIZE 0x100000
|
||||
#else
|
||||
//there is 4K BOOTROM at beginning of the flash
|
||||
#define MBED_FLASH_SIZE (MBED_ROM_SIZE+0x1000)
|
||||
#endif
|
||||
|
||||
|
||||
// This file is automagically generated
|
||||
|
||||
// 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[] = {
|
|||
static const flash_target_config_t flash_target_config = {
|
||||
.page_size = 0x100,
|
||||
.flash_start = 0x18000000,
|
||||
.flash_size = 0x100000,
|
||||
.flash_size = MBED_FLASH_SIZE,
|
||||
.sectors = sectors_info,
|
||||
.sector_info_count = sizeof(sectors_info) / sizeof(sector_info_t)
|
||||
};
|
||||
|
|
|
@ -42,4 +42,12 @@ extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
|
|||
#error "no toolchain defined"
|
||||
#endif
|
||||
|
||||
#if defined(TARGET_UNO_91H)
|
||||
/* Stack Pointer */
|
||||
#ifndef INITIAL_SP
|
||||
#define INITIAL_SP (0x120000UL)
|
||||
//#define INITIAL_SP (0x1A8000UL)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // MBED_MBED_RTX_H
|
||||
|
|
|
@ -8508,6 +8508,14 @@
|
|||
"UNO_91H": {
|
||||
"inherits": ["RDA5981X"],
|
||||
"detect_code": ["8001"],
|
||||
"components_add": ["FLASHIAP"],
|
||||
"bootloader_supported": true,
|
||||
"mbed_ram_start": "0x00100080",
|
||||
"mbed_ram_size": "0x1ff80",
|
||||
"mbed_rom_start": "0x18001000",
|
||||
"mbed_rom_size": "0x1F4000",
|
||||
"device_name": "RDA5981X",
|
||||
"sectors": [[0,4096]],
|
||||
"overrides": {
|
||||
"network-default-interface-type" : "WIFI"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue