mirror of https://github.com/ARMmbed/mbed-os.git
Enable COG boards instruction cache
parent
bfb43799af
commit
6feef97409
|
@ -157,8 +157,8 @@ void SramInit(void)
|
|||
adi_system_EnableRetention(ADI_SRAM_BANK_2, true);
|
||||
/* To disable the instruction SRAM and entire 64K of SRAM is used as DSRAM */
|
||||
adi_system_EnableISRAM(false);
|
||||
/* To disable the instruction cache */
|
||||
adi_system_EnableCache(false);
|
||||
/* To enable the 4K instruction cache out of DSRAM */
|
||||
adi_system_EnableCache(true);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE {
|
|||
.ANY (+RW +ZI)
|
||||
}
|
||||
|
||||
ADUCM_IRAM3 0x20040000 0x8000 { ; non-retainable memory region
|
||||
ADUCM_IRAM3 0x20040000 0x7000 { ; non-retainable memory region
|
||||
.ANY (+RW +ZI)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ MEMORY
|
|||
DSRAM_A (rwx) : ORIGIN = 0x20000200, LENGTH = 16k - 0x200
|
||||
DSRAM_C (rwx) : ORIGIN = 0x20004000, LENGTH = 16k
|
||||
/* SRAM bank 3 */
|
||||
DSRAM_B (rwx) : ORIGIN = 0x20040000, LENGTH = 32k
|
||||
DSRAM_B (rwx) : ORIGIN = 0x20040000, LENGTH = 28k
|
||||
}
|
||||
|
||||
/* Library configurations */
|
||||
|
|
|
@ -48,7 +48,7 @@ define region ROM_PAGE0_CHECKSUM = mem:[from MBED_APP_START+ADUCM_VECTO
|
|||
define region ROM_REGION = mem:[from MBED_APP_START+ADUCM_SECTOR_SIZE size MBED_APP_SIZE-ADUCM_SECTOR_SIZE];
|
||||
define region RAM_bank1_region = mem:[from 0x20000200 size 0x00003E00];
|
||||
define region RAM_bank2_region = mem:[from 0x20004000 size 0x00004000]
|
||||
| mem:[from 0x20040000 size 0x00008000];
|
||||
| mem:[from 0x20040000 size 0x00007000];
|
||||
define block CSTACK with alignment = 16, size = 0x1000 { };
|
||||
define block HEAP with alignment = 16, size = 0x2000 { };
|
||||
do not initialize { section .noinit };
|
||||
|
|
|
@ -150,10 +150,10 @@ void SramInit(void)
|
|||
ADI_SRAM_BANK_5 |
|
||||
ADI_SRAM_BANK_6 |
|
||||
ADI_SRAM_BANK_7, true);
|
||||
/* To disable the instruction SRAM and entire 64K of SRAM is used as DSRAM */
|
||||
/* To disable the instruction SRAM and entire 128K of SRAM is used as DSRAM */
|
||||
adi_system_EnableISRAM(false);
|
||||
/* To disable the instruction cache */
|
||||
adi_system_EnableCache(false);
|
||||
/* To enable the 4K instruction cache out of DSRAM */
|
||||
adi_system_EnableCache(true);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
@ -58,7 +58,7 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE {
|
|||
|
||||
RW_IRAM1 0x20040000 EMPTY 0 { }
|
||||
|
||||
ADUCM_IRAM2 0x20000200 0x7E00 { *(+RW) }
|
||||
ADUCM_IRAM2 0x20000200 0x6E00 { *(+RW) }
|
||||
|
||||
ADUCM_IRAM3 0x20048000 0x10000 { *(+ZI) }
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ MEMORY
|
|||
/* The rest of the flash */
|
||||
FLASH (rx) : ORIGIN = MBED_APP_START + ADUCM_SECTOR_SIZE, LENGTH = MBED_APP_SIZE - ADUCM_SECTOR_SIZE
|
||||
/* SRAM bank 0 */
|
||||
DSRAM_A (rwx) : ORIGIN = 0x20000200, LENGTH = 32k - 0x200
|
||||
DSRAM_A (rwx) : ORIGIN = 0x20000200, LENGTH = 28k - 0x200
|
||||
/* SRAM bank 3+4+5+6+7 */
|
||||
DSRAM_B (rwx) : ORIGIN = 0x20048000, LENGTH = 64k
|
||||
/* stack must not be in bank 1,2,7 where ISRAM or CACHE
|
||||
|
|
|
@ -47,7 +47,7 @@ define region ROM_PAGE0_INTVEC = mem:[from MBED_APP_START size ADUCM_
|
|||
define region ROM_PAGE0_CHECKSUM = mem:[from MBED_APP_START+ADUCM_VECTOR_SIZE size ADUCM_SECTOR_SIZE-ADUCM_VECTOR_SIZE];
|
||||
define region ROM_REGION = mem:[from MBED_APP_START+ADUCM_SECTOR_SIZE size MBED_APP_SIZE-ADUCM_SECTOR_SIZE];
|
||||
define region RAM_bank1_region = mem:[from 0x20040000 size 0x00008000];
|
||||
define region RAM_bank2_region = mem:[from 0x20000200 size 0x00007E00]
|
||||
define region RAM_bank2_region = mem:[from 0x20000200 size 0x00006E00]
|
||||
| mem:[from 0x20048000 size 0x00010000];
|
||||
define block CSTACK with alignment = 16, size = 0x2000 { };
|
||||
define block HEAP with alignment = 16, size = 0x6000 { };
|
||||
|
|
Loading…
Reference in New Issue