解决cvg申请内存导致不足的的问题

This commit is contained in:
2025-04-24 11:39:31 +08:00
parent fc6412adf0
commit 73ea1d6f5f
8 changed files with 38 additions and 17 deletions

View File

@@ -51,9 +51,12 @@ void *os_mem_malloc(module_id_t module_id, size_t size)
#endif
{
(void)module_id; // avoid warning. to be fixed.
void *buf = pvPortMalloc(size);
#if IOT_OS_MALLOC_DEBUG
iot_printf("%s:%d malloc.\n", file, line);
iot_printf("os_mem_malloc: size=%d\n", size);
#endif
void* buf = pvPortMalloc(size);
#if IOT_OS_MALLOC_DEBUG
iot_printf("%s:%d malloc. p=%p\n", file, line, buf);
#endif
if (buf) {
os_mem_set(buf, 0, size);