Forum Discussion

ZhiqiangLiang's avatar
ZhiqiangLiang
Icon for Occasional Contributor rankOccasional Contributor
7 months ago

qspi driver in NIOS bsp in Cyclone 10

Hi,

I am running NIOS II in Cyclone 10 LP 10CL120YF484.

The flash I am using is M25P64 which is qspi interface.

The problem is that EPCS flash controller is not compatible for Cyclone 10.

I am going to run qspi flash driver in NIOS so that I can read and write the flash.

The question is:

is qspi friver available? Could you please tell me the related resource of qspi driver and API?

23 Replies

    • Archer_Altera's avatar
      Archer_Altera
      Icon for Occasional Contributor rankOccasional Contributor

      Hi Zhiqiang,

      About the error you see when you do Eclipse-->Run-->Run Configurations and Run, Eclipse report the following error. My understanding is that you want to use eclipse tool to debug your design. It is an issue related to the design or tool usage. So, I suggest you to create a new thread.

      About the issue of programming ELF file into flash, if you still need help, we can discuss it using this thread continuously.

      Thank your for your understanding and cooperation.

  • ZhiqiangLiang's avatar
    ZhiqiangLiang
    Icon for Occasional Contributor rankOccasional Contributor

    @Archer_Altera

    1) about the programming ELF question, I have asked many questions. please read previous post. For example, I have asked what those parameters means when I convert elf to hex file. I asked the question when I convert Programming Files to hex.

    2) The issue I am facing when I debug the C code in eclipse is outwardly related with Eclipse, but it is inwardly related with the hex file and offset address when I generated hex file.

    in addition, I don't know which region you are in, so I wait for your reply and post new questions immediately. However, you usually answer the new posted questions on the second day. I don't know why the answer is so slow.

    • Archer_Altera's avatar
      Archer_Altera
      Icon for Occasional Contributor rankOccasional Contributor

      Hi Zhiqiang,

      Eclipse tool doesn't use the hex file you manually create to download into onchip memory. The tool uses its own toolchain to complete the process automatically.

      If you want to debug your design first, I suggest you to change your design in Qsys by set reset vector and exception vector to onchip memory, then select onchip memory as memory space for all sections when you create BSP project in eclipse tool. Then try to execute Run as command in menu of eclipse tool and see what message is printed during the process. A simple hello world software project is good enough to verify on hardware. After this step is working, you can try to change reset vector to EPCS controller in Qsys and program design into flash and see whether the design is working also.

      I see that the downloading fail address is 0x01000000, it is EPCS flash address range in your design if it is the fact. This address space is indirect access space, it is reasonable to see that error. Nios II processor runs boot coper code to copy binary file from epcs flash to other memory and then run from there. This is described in document :1.5.5. Nios II Processor Application Copied from EPCS Flash to RAM...

  • Hi @ZhiqiangLiang,


    Good day, just following up on the previous clarification.

    By any chances did you managed to look into it?

    Hope to hear from you soon.


    Best Wishes

    BB


  • Hi @ZhiqiangLiang,


    Greetings, as we do not receive any further clarification/updates on the matter, hence would assume challenge are overcome.


    Please login to ‘ https://supporttickets.intel.com/s/?language=en_US’, 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. For new queries, please feel free to open a new thread and we will be right with you. Pleasure having you here.


    Best Wishes

    BB