Forum Discussion

Oliver_I_Sedlacek's avatar
3 years ago

Autostart NIOS from external SDRAM problem

So my NIOS code has outgrown the available on chip RAM and I've moved it to off chip SDRAM. Very slow, but I fire up Eclipse and I can get it to run. I need to get it to run automatically and I've found snippets of information by perusing the NIOSII software developers Handbook but can anyone point me to definitive documentation. I know I need to persuade the compiler to produce a ROM image that becomes a MIF, which I believe it does, and get something (maybe a bootloader) to do the initialisation, and somewhere I need to tell the tools to run that code.

Can anyone help with the blanks?

36 Replies

  • Hi,


    If there are no error from Quartus/Nios II SBT, you might need to check your configuration in your Quartus design and you MSEL pin of your board.


    • Oliver_I_Sedlacek's avatar
      Oliver_I_Sedlacek
      Icon for Contributor rankContributor

      Everything, I repeat everything, works except the booting with code in external memory. The FPGA configures, the custom logic works, the NIOS2 runs my code if I debug from Eclipse without trying to boot from external memory. How do I debug why it wont boot? The handbook just gives me a great long sequence of instructions with no guidance on figuring out which step I've done wrong.

  • Hi,


    I am will provide you the example for Quartus 20.1 Lite based on the doc, allow me a few days to get this to you.


  • Hi,


    I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.



    p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.



    • Oliver_I_Sedlacek's avatar
      Oliver_I_Sedlacek
      Icon for Contributor rankContributor

      As per email discussion, this problem is still unresolved and has moved up in priority.