Forum Discussion
Altera_Forum
Honored Contributor
14 years agodma instability
Hi...i am tring to copy memory from sram to sdram using dma. For some reason some of the data dosent transfered... Are there any suggestions what to look for to solve this problem? Thanks. A...
Altera_Forum
Honored Contributor
14 years agoIf you want to always bypass the cache with the allocated pointers then I recommend using the uncached version of malloc. I forget what it's called but it's most likely "uncache_malloc". If you search through the software handbook you should be able to find it where all the other cache bypassing APIs are located. Using uncache_malloc will ensure that the data cache gets flushed before you attempt to use the pointer to avoid the issue dsl is talking about. The cache/uncache remapping APIs should do the same thing safely for you as well.
*edit* Also do you need to allocate pointers? I usually try to avoid malloc since I don't like debugging stack and heap collisions :)