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: SharedRegion

Part Number: AM5728


Tool/software:

Hi expert, I create 4 SharedRegions and do mmap() on ARM side, two of them are 1MegaBytes, and the other two  are 4MegaBytes.

As I do the mmap(), the virtual address return to me is 0x40000000, 0x80000000, 0xC0000000, and also 0x00000000.

sharedRegionAllocPtr = (unsigned int* )mmap(NULL, phy_size, PROT_WRITE |PROT_READ, MAP_SHARED, shm_fd, phy_base);
sem_wait(&sem_printf);
printf("SharedRegion_mmap sharedRegionAllocPtr=0x%08x, phy_base=0x%08x, phy_size=0x%08x\n", (unsigned int)sharedRegionAllocPtr, phy_base, phy_size);

Question are,

1. can I do this memory map? DDR is 1 GigaBytes. This virtual address seems not normal, how to avoid it?

2. Can I create SharedRegion()just on ARM side, can it share this region with the other 2 DSPs?

Thanks,