Altera_Forum
Honored Contributor
9 years agoMAX10M08 Flash Accelerator
Hi,
I am working on a project using the MAX10M08 with Nios ii /f and Quartus Prime Lite 15.1.2. Up to now i used the onchipmemory as instruction memory. But the goal is run from the onchipflash. The Guide “Nios II Flash Accelerator Using Max 10” describes the configuration of the Nios Flash Accelerator and the matching settings for the onchipflash IP. The cachelinesize is set to 64bit according to the guide, because the Flash Wrapped Read Burstsize of the M08 is 2 (cachelinesize => 2*32bit). “Read burst mode“ of the onchipflash IP is set to Wrapping. But there is a problem. With the settings mentioned above i can start a debuggingsession within eclipse, “nios2-download” verify of flash content is successful, but the debugger won’t jump to main() (harwarebreakpoints and databreakpoints are set to 4). If I click on “pause / halt processer” and again “run” the debuggingsession terminates. Error: Processor failed to go into debug mode when requested. So I used gdb with console, set a hardwarebreakpoint at the reset address. The processor jumps to the reset vector pointing to flash and stops. After a single step gdb hangs / the processor hangs. I also tried setting the cachelinesize to 128bit and it works, but I don’t think that’s the correct setting for the flash accelerator with MAX10M08 and will cause problems / no increase in performance. Is anyone successfully using the flash accelerator? I have attached my configurations and qsys design. Thanks in advance!