Skip to content

Commit

Permalink
update:718XM的luatos ram划分到P2
Browse files Browse the repository at this point in the history
  • Loading branch information
allewalker committed Dec 4, 2024
1 parent e48cce0 commit 3de69e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions project/luatos/inc/luat_conf_bsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions project/luatos/src/luat_malloc_ec7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3de69e0

Please sign in to comment.