Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- mulligan22, you might want to include your system.h library ( in your main) which shows the proper addresses to your system. Make sure that your indeed writing to the correct address. The code to me looks like it shouldn't loop over.. -Trukng --- Quote End --- Yes normally I would include the system.h , but in this case I am just creating a pointer and pointing it directly to the memory address 0x0 which is the base address of the DDR3 specified in Qsys. "Hello World!" just keeps looping forever on the terminal and doesn't go any further in the program.. strange. If like I said, change the ddr_base to 0xFFF and start writing from there , the program works ok. It seems from 0x0 to 0xFFF in DDR3 is being used for something, but why would it cause this looping? Could it be that part of my program is being loaded to the DDR3 aswell as the on-chip RAM? I wouldn't expect this tho. The on-chip RAM is only where I want the program stored and it is at base address 0x4000_0000. The Nios only has the instruction master connected to the on-chip RAM. Any ideas?