Altera_Forum
Honored Contributor
13 years ago.rwdata and .bss do not work with custom memory controller
Hi,
I have designed a custom SRAM memory controller connected to a NIOS II processor that - as far as I can see - works. Running a test program from on-chip memory, reading/writing happens without any errors. It was only once I started assigning linker sections to the SRAM that I noticed something wasn't quite right (mainly, the JTAG UART was not working). I am now in a situation where I have successfully executed a complex program where .entry, .exceptions, .heap, .rodata, .stack and .text are assigned to the SRAM and .rwdata and .bss are assigned to on-chip memory. If I dare assign .rwdata and .bss to the SRAM it stops working again and I am at a loss as to why this is happening. Hoping that SignalTap would give me the answer, I wrote a short program that did read/write operations on static variables and again, everything worked fine, both in the logic analyser and the NIOS II debugger. Would anybody have any suggestions/ideas what it could be? Many Thanks