Browse Source

xc_ppf1901: move heap to sdram

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 6 years ago
parent
commit
09abaeabcb
  1. 1
      scripts/iap.ld
  2. 7
      targets/xc_ppf1901/flash.ld
  3. 2
      targets/xc_ppf1901/target.h

1
scripts/iap.ld

@ -6,7 +6,6 @@ MEMORY {
eeprom (rx): org = 0x08004000, len = 16K
ram (xrw): org = 0x20000000, len = 112K
ccmram (rw): org = 0x10000000, len = 64K
sdram (rw): org = 0xc0000000, len = 32M
}
SECTIONS {
.isr_vector : {

7
targets/xc_ppf1901/flash.ld

@ -84,11 +84,14 @@ SECTIONS {
*(.ccmram)
*(.ccmram*)
_eccmram = .;
} >ccmram AT> flash
. = ALIGN(4);
.bigheap : {
. = ALIGN(4);
*(.heap)
*(.heap.*)
} >ccmram AT> flash
. = ALIGN(4);
} > sdram
.bss : {
_sbss = .;

2
targets/xc_ppf1901/target.h

@ -10,7 +10,7 @@
#define TICKS_PERIOD (2) /* mill seconds */
#define CONSOLE_BAUDRATE (115200)
#define TARGET_HEAP_SIZE (8192)
#define TARGET_HEAP_SIZE (0x200000)
#define TARGET_HAS_SPI1 1
#define TARGET_HAS_SPI2 1

Loading…
Cancel
Save