I need to run an image processing application on my DM3730 dual core (ARM/DSP).
I'm using dsplink 1.65.2.9 and first of all I wanted to try and configure the memory used for arm/dsp communications starting from the example loop.
When i try to call it with a buffer size <= 16384 (16kB) everything goes right but if I try with 16385 byte the application will return the following output:
================= Sample Application : LLOP ========
==== Executing sample for DSP processor Id 0 ====
Entered LOOP_Create ()
CHNL_allocateBuffer failed (output). Status = [0x8000800b]
Leaving LOOP_Create ()
etc...
If I further increase the buffer size (the threshold is something in between 400kB and 500kB) the application returns a different error:
================= Sample Application : LLOP ========
==== Executing sample for DSP processor Id 0 ====
Entered LOOP_Create ()
[11378.099792] Error: Configured pool size is insufficient for passed parameters.
[11378.099822] Check /dsplink/config/all/CFG_<PLATFORM>.c
POOL_open () failed. Status [0x80008013]
Leaving LOOP_Create ()
etc...
Now I tried to have a look at CFG_OMAP3530_SHMEM.c but couldn't find any memory size that is exactly 16kB or about 400-500kB.
Since I don't quite understand what the different fields should do I tried to enlarge some memory sizes in the CFG_OMAP3530_SHMEM.c and to do the corresponding changes in dsplink-omap3530-base.tci and rebuild the sample but the application keeps returning the same errors when fed with the same arguments.
I tried to modify the boot.scr file too, to reduce the amount of memory dedicated to Linux but nothing changed.
I'm not surprised that I couldn't figure out how to increase the memory that can be used for the arm/dsp communication, but I can't understand why the application behaves in the same exact way even if I change the memory tables.
Now, I'd really appreciate if someone could tell me in the easiest way what are the steps that I should follow to e.g. increase the buffer size limit from 16kB to 32kB. It would be a great point to start from in order to understand how to manage the memory tables.
Thanks,
Filippo