Ok, thanks you.The default memset from gcc uses a data cache clear instruction which won't work on uncached buffers (which a mmap from above top of memory will be). Replace it with a less optimised memset.
Then I now have the problem of how to get a physical address from the virtual address.
Or does the allocated block start exactly at 0xc1800000 and I can use the offset to get the exact physical address of the allocated mem for DMA
Statistics: Posted by drLaplace — Wed Nov 20, 2024 9:05 am