diff --git a/project/luatos/inc/luat_conf_bsp.h b/project/luatos/inc/luat_conf_bsp.h index 1d89118..2496fc4 100644 --- a/project/luatos/inc/luat_conf_bsp.h +++ b/project/luatos/inc/luat_conf_bsp.h @@ -276,9 +276,8 @@ #endif #ifdef TYPE_EC718M -#ifndef LUAT_USE_PSRAM_AS_LUAHEAP -#define LUAT_USE_PSRAM_AS_LUAHEAP 1 -#endif +#undef LUAT_HEAP_SIZE +#define LUAT_HEAP_SIZE (600*1024) #endif #endif diff --git a/project/luatos/src/luat_malloc_ec7xx.c b/project/luatos/src/luat_malloc_ec7xx.c index 71faec2..b23e681 100644 --- a/project/luatos/src/luat_malloc_ec7xx.c +++ b/project/luatos/src/luat_malloc_ec7xx.c @@ -32,8 +32,8 @@ static uint8_t* vmheap; #ifndef LUAT_HEAP_SIZE #define LUAT_HEAP_SIZE (200*1024) #endif -#ifdef TPYE_EC718M -static PLAT_FPSRAM_ZI_CUST uint8_t vmheap[LUAT_HEAP_SIZE] __attribute__((aligned(8))); +#ifdef TYPE_EC718M +static __attribute__((__section__(".cust_sect_ap_psram_p2_bss.vmheap"))) uint8_t vmheap[LUAT_HEAP_SIZE] __attribute__((aligned(8))); #else static uint8_t vmheap[LUAT_HEAP_SIZE] __attribute__((aligned(8))); #endif