This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi , guys
I was wondering How I could do dynamic memory allocation like a malloc function in vision apps of psdk.
I've found several example such as udma_memcpy_test and udma_dru_test. You know there aren't any memory allocation function.
I think I should memory allocation functions to run my CNN which needs a lot of kernel and data.
Actually, I used that function on tda2x environment.
Please check it, and let me know how to use memory allocation function based on openVX in vision_apps.
Best regards,
Yongsig.
Hi Yongsig,
can you check this document and see if it can help you: psdk_rtos_auto_j7_06_00_00_00/vision_apps/docs/user_guide/group__group__vision__apps__utils__mem.html
Regards,
Yordan
Hi, Yordan
First of all, thank you for your reply.
I read that document and It was definitely helpful.
I would like to know one more thing. Its a sequence to allocate memory.
I was wondering if you could recommend a sequence to allocate memory either DDR or any cache.
As an example, If I try allocating cache memory, should I do as below?
- appMemInit --> appMemAlloc(Heap ID is L1) --> appMemFree
Best regards
Yongsig.
Hi Yongsig,
you can look at psdk_rtos_auto_j7_06_00_00_00/vision_apps/apps/basic_demos/app_linux_arm_mem/main_linux_arm.c
You can have sequence like:
appCommonInit() // this function calls appMemInit() and does some other initializations
appMemAlloc()
appMemFree()
appCommonDeInit()
Regards,
Yordan