hi everyone,
may I get detailed documentation on the oal_memory_allocator.c section of s32r45 sdk?The following issues were found during debugging.I need to know the Max memory limit,thanks!
log:
解決済! 解決策の投稿を見る。
Hello,
The error seems clear: "Failed to allocate 0x180040 bytes from chunk 1"
Maybe the CHUNK IDs are not obvious? That I agree. Those can be found in the app
app_mem_mgr.h
Best regards,
Peter
Hello,
CHUNK 1 is SRAM.
S32R45 has 8MB of SRAM.
Best regards,
Peter
Hello,
Let me ask RSDK team and I will come back to you ASAP.
Best regards,
Peter
Hello,
The error seems clear: "Failed to allocate 0x180040 bytes from chunk 1"
Maybe the CHUNK IDs are not obvious? That I agree. Those can be found in the app
app_mem_mgr.h
Best regards,
Peter
hello Peter,
I already know the define of CHUNK ID in app_mem_mgr.h. But I face this error often, even though the request size is 512K that less than 8M SRAM size.
Running Range FFT Kernel...[WRN] [OAL_OS_AllocPhysicalMemory:68] Failed to allocate 0x80000 bytes from chunk 1
[WRN] [allocPhysMem:97] Failed to allocate physical memory
[WRN] [allocMemoryArea:491] Failed to allocate physical memory
AppMemAllocBuffer: failed to alloc 524288 bytes.
Best regards,
Ray
Hello,
Without knowing what app are you running ( if it is RSDK or custom) and what RSDK is used, the only assumption I can make is that memory is allocated in SRAM but not properly deallocated so after a few iterations, the error occurs because there is no more available space in that chunk
As for documentation, apart from what is in the user manual, the source code is available for OAL. Other than that I'm not aware of other, more detailed documentation.
Best regards,
Peter