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.

AM5728: CMEM erroe: Failed to find a pool

Part Number: AM5728

Hello 

Recently, I was testing the interaction between ARM and DSP. When I ran a routine which used dsplib. But something went wrong.

While, the size of pool is depends on a picture. Here is a part of my codes.

And there are some details of cmem 

 

SDK:

ti-processor-sdk-linux-am57xx-evm-06.03.00.106

RTOS:

ti-processor-sdk-rtos-am57xx-evm-06.03.00.106

  • Hi Yubo,

    What CMEM API are you using in your application? Is this your own custom application, or you are re-using the simple_buffer_example?

    Please try rebuilding the CMEM kernel module with DEBUG traces so that you get more verbose debug traces.

    regards

    Suman

  • Hi Suman,

    It's not my own custom application. I just get this from website to use imglib and dsplib. I want to use ARM and DSP' s communication to process the image

    from the capture. While, the API of CEME is come from my own PC. I used the command to find cmem.h and copy it to my compile file without any change.

    Actually I am not familiar with CMEM, it is hard to understand. I will be appreciate that you can tell me how to do these,please!

    Regards

    Yubo

  • Hi Yubo,

    Can you try once with BIG_DATA_POOL_SIZE set to 0x1000000 (same as in the simple_buffer_example) and 0x100000 to see if even those buffers fail?

    regards

    Suman

  • Hi Suman,

    I haved tried to set the size to 0x100000 and 0x1000000. And I  checked the simple_buffer_example

    However, these two hexadecimal numbers did not work.

    P1: simple_buffer_example 

    P2:  set pool size to 0x100000

    P3: set pool size to 0x1000000

    What should I do next?

    Regards

    Yubo

  • Hi Yubo,

    Are you able to run the simple_buffer_example provided in TI SDKs? This is the Big Data IPC Example.

    regards

    Suman

  • Hi Suman,

    I supposed I run this example few weeks ago.

    Above this, it's do helpful. And my logs were almost same to these.

    However,  I just processed this step.

    Regards

    Yubo

  • Hi Yubo,

    I am glad you were able to run the sample. Please use the example as reference in making your changes.

    regards

    Suman

  • Hi Suman,

    Thank you so much ! I will have a try.

    Regards

    Yubo

  • Hi Suman,

    I suppose I meet some troubles when I rebuild this sample. Host side is rebuilt successfully, but dsp side occurs some problems.

    It reminds me that there has no rules to make target"bin//release/obj/MainDsp.oe66". While I enter this file, it is empty, I cannot find MainDsp.oe66.

    And it also reminds "makefile:63:recipe for target 'release' failed "

    Could you tell me how to deal with them? Thank you!

    regards

    Yubo

  • Hi Yubo,

    Are you still stuck with the building of this firmware? If you are still blocked, can you give the exact steps you used.

    regards

    Suman

  • Hi Suman,

    Version SDK 06.03.00.106

                   RTOS SDK 06.03.00.106

    There are my steps about rebuilding this example.  

    First I entered the host_linux>simple_buffer_example

    And I modified some paths in products.mak.

    These paths might not happen error because I use these paths to rebuild messageq successfully. I was not change other file 'Makefile' .

    However, when I call the make command at this level, it shows make: nothing needs to be done for "all". So I chose to rebuild arm and dsp respectively.

    While the arm side had been rebuilt successfully, the dsp side happened this error as I mentioned before ( I modified nothing in the dsp folder ).

    I don't know how to deal this trouble. 

    Thank you,

    regards

    Yubo 

  • Hi Suman,

    I found that I was wrong. I didn't follow the steps completely. I rebuilt the HOST side and DSP side respectively according to the previous rebuilt method for messageq, so the rebuilt of DSP side cannot succeed. When I looked at this document again, I found that following this step is correct and can be rebuilt successfully. If there are some problems, I call the  make XXXX_clean, then make again. This command should be called at the  level which includes the example-applications

    regards

    Yubo

  • Hi Suman,

    I'm sorry to interrupt you that I meet some problems. When I run this demo, it reminds the same error as I mentioned above

    I use the command  systemctl stop ti-mct-daemon.service before I test this demo. I need to reboot my am5728, but it not always useful.

    And when I call the server.xe66 which is rebuilt also happens some fault. However, the path maybe the right.

     

    Could you help me?

    regards

    Yubo
  • It is very strange to me that I call the same command after rerun the board. It can bind successfully now. However. there also have some troubles, it stopped running again. I supposed my codes have a little problems. Furthermore, I know the reason why it reminds me 'failed to find a pool......' 

    Reference: e2e.ti.com/.../linux-tmdxidk5718-cmem-error