Hi Vladimir,
we finally got the KTNF to work.
Try to replace the following line...
sysRegBase = DM365MM_mmap(0x01C40000,0x4000);
with these...
int fm = open("/dev/mem",O_RDWR|O_SYNC);
sysRegBase = (int)mmap( (void*)0,
0x4000,
PROT_READ | PROT_WRITE,
MAP_SHARED,
fm,
0x01C40000);
You can do a quick check by requesting the physical address...
inPhysAddr = OSA_cmemGetPhysAddr(sysRegBase);
OSA_printf("RESULT - inPhysAddr: %x \n", inPhysAddr);
...if this returns 0x01C40000 KTNF should work. (If it returns 0x1000 it won't.)
You may need these additional includes...
#include <sys/mman.h>
#include <sys/types.h>
#include <fcntl.h>
Also check this post which also describes the problem with the DM365MM_mmap...
http://e2e.ti.com/support/embedded/multimedia_software_codecs/f/356/t/157164.aspx#571410
I could'nt reproduce the "kind of red'ish" output frames you've mentioned in your last post, because unfortunately I don't have access to the new version of libktnf.
Hope it helps.
Yours,
Martin