Forum Discussion
Altera_Forum
Honored Contributor
16 years agoSGDMA Core loop problem - setting CHAIN_COMPLETED
Hello. OK, I have cut my project back so it consists of just the NIOS, SGDMA, SDRAM controller, and an onchip memory component. If I set up the SGDMA to transfer a set of bytes between t...
Altera_Forum
Honored Contributor
16 years agoI don't see anything wrong with your code, except maybe the "should be safe area of sdram" which could be a bad assumption ;)
You should use a malloc call or a static table just to be sure that you don't overwrite any part of the memory. Try also to use the constants defined in system.h instead of the static addresses, it makes things easier if SOPC builder changes the addresses of all the components. Did you check all the connections in SOPC builder? The read and write masters must be connected to both the onchip RAM and the SRAM. The same applies to the descriptor master if you want to put the descriptors in different places.