void* heap_caps_malloc(size_t size, uint64_t capabilities); ``` 参数解释: 1. `size`:要分配的内存块的大小(以字节为单位)。 2. `capabilities`:一个 64 位整数,用于指定分配的内存块的能力。这可以是一个或多个预定义的能力值,例如`CAP_SYS_ADMIN`、`CAP_SYS_RAWIO` 等。这些能力定义了内存块...
Code: Select all void *heap_caps_malloc( size_t size, uint32_t caps ) { return NULL; } Is this function deprecated? what is flash_mock.cpp?In the heap_caps.c I have also found the real heap_caps_malloc function declaration: ...
My question is if my transfer buffer is a void *heap_caps_malloc(size_t size, uint32_t caps) where size is multiple of 4 bytes and caps is MALLOC_CAP_DMA) is the buffer address guaranteed by be on a 32 bit boundary? If not what can one do to guarantee the buffer address is on...
In my source code I was calling heap_caps_malloc() to allocate memory As I have enabled External ram to allocate memory In my case heap_caps_malloc() called successfully but failed to allocate the memory FYI, Heap memory was still available HEAP SIZE : 74291 bytes And I was in ne...