Forum Discussion
Altera_Forum
Honored Contributor
20 years agoAbout DMA problem..please help me
hi all I have try the altera memory test project with Nios II IDE.. but always display "-Testing memory using DMA"... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif the...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- You could have a cache problem. The CPU could be reading its data cache instead of the buffer in memory. Try to create a second pointer:
alt_u8 *uncached_buffer = alt_remap_uncached(buffer,DEPTH);and when you print the contents of the buffer, read the data with uncached_buffer[x], and see if you have different results. --- Quote End --- alt_u8 *uncached_buffer = alt_remap_uncached(buffer,depth); gave compile error : invalid conversion from `volatile void*' to `alt_8*' so i change it to volatile void * uncached_buffer = alt_remap_uncached(buffer,depth);
but now the "uncached_buffer" variable cannot be read.