diff --git a/scripts/iap.ld b/scripts/iap.ld index cd5cda2..70f079c 100644 --- a/scripts/iap.ld +++ b/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 : { diff --git a/targets/xc_ppf1901/flash.ld b/targets/xc_ppf1901/flash.ld index 4d89660..26db45f 100644 --- a/targets/xc_ppf1901/flash.ld +++ b/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 = .; diff --git a/targets/xc_ppf1901/target.h b/targets/xc_ppf1901/target.h index 1c39da2..0cc40ea 100644 --- a/targets/xc_ppf1901/target.h +++ b/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