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.

TDA4VM: using fd to map memory

Part Number: TDA4VM

Hi. expert


SDK: ti-processor-sdk-rtos-j7-evm-07_03_00_05

producer:
void* data = tivxMemAlloc(1024, TIVX_MEM_EXTERNAL);
int32_t fd;
void* phy_addr;
status = tivxMemTranslateVirtAddr(data,
&fd,
&phy_addr);

fd(20) vir_addr(0xFFFF7CB20000) phy_addr(0xB8000000) // physical address


consumer:fd created by producer

int32_t fd = atoi(argv[1]);
void* data = tivxMemAlloc(1024, TIVX_MEM_EXTERNAL); // must alloc memory here
void* vir_addr;
void* phy_addr;
status = tivxMemTranslateFd((uint64_t)fd,
1024,
&vir_addr,
&phy_addr);

Fd(20) malloc_addr(0xFFFF7F100000) vir_addr(0xFFFF7F100000) phy_addr(0xB8010000) // different physical address

result: mapping a different physical address

Regards,

    gj