Because of the requirements of the algorithm project code,I want to apply for a memory block with a length of 50574, the code is:
trp = (void*) malloc(50574);
I found that the application was unsuccessful, so I would like to ask how can I solve it? Or how can I store it in SDRAM? How should the code be written?
Hello,It seems that the issue with the size you are allocating. If you allocate more than 32759, the Null value is stored in the variable.From the CCES help, the malloc function returns a null pointer if it is unable to allocate the requested memory. So we have allocated the heap in the external memory and then we can able to allocate your required memory size (50574) using malloc. (Please refer the imgae Malloc_External_Memory.png)
Thank you very much Anand Selvaraj！At first, I was wondering why the memory is all NULL after applying for memory, so I would think that I did not apply successfully. Because I'm using VDSP, I did not so intuitive to see the successful application memory address. Thank you, I tried to use CCES programming.
Hello, I have another question for you. I have a program that can be run in VDSP ++, but when the code is moved to CCES, the following error is reported, and the interrupt cannot be used. I want to ask how can I solve this problem?
with CCES, there are some changes in defining / assigning IRQ handlers,
Check this page
Hello,While migrating from VDSP to CCES, there are a number of ways in which VisualDSP++ applications differ from CCES applications: RTOS, interrupt handling, SSL/DD APIs, and more. If your VisualDSP++ application uses such mechanisms, you have to make corresponding changes to your application's source code before the application can build in CCES. Similarly, if your application uses a customized LDF, the LDF may make references to libraries that are not used in CCES, or omit ones that are.More information about importing VisualDSP++ project files into CrossCore Embedded Studio is available at:ez.analog.com/.../faq-importing-visualdsp-project-files-to-crosscore-embedded-studioWe would also recommend reading the Getting Started with CrossCore Embedded Studio FAQ:ez.analog.com/.../crosscore-embedded-studio-getting-startedWe have a number of CCES introductory videos on our Analog Devices Video Channel.These videos are also indexed on the CrossCore Embedded Studio product page.www.analog.com/.../adswt-cces.htmlRegards,Anand Selvaraj.