Forum Discussion

ScottShin's avatar
ScottShin
Icon for Occasional Contributor rankOccasional Contributor
5 years ago
Solved

modification Qsys

Hi everyone

I'm working on a Terasic balance_car project in the DE10-NANO board by using Nios2.first of all, I using the BAL_CAR_Nios_Code project's demo code of Terasic, also add the EPCS Flash controller's IP in Qsys, it programs in EPCS64 and works successfully. Then I want to add PIO IP in Qsys, but it works not correctly, even my original function.

Below is my step:

1.add PIO IP in QSYS (set five input)

2. click system>>assign base address

3.ctrl+s(save QSYS), and generate HDL

4.click close

The steps in QSYS

----------------------------------------------------

1.add export name in main code.

2.compilar(the pin was set already ).

The steps in Quartus

connect  

-------------------------------------------------

1. In bsp folder: ''NIOS2">>"generate BSP" ->"clean project"-> Build project

2.In main.cpp folder: "NIOS2">>"Editor BSP" -> Build project

The steps in Eclipse

--------------------------------------

Finally, I combine .sof and .elf to .jic, and program on EPCS64, but this step already check is correct by trying another project.

Hope anyone can find a mistake in my step.

Thank's for anyone to give me advice.

attach Terasic's demo project.

  • Finally, I fixed the problem by delete all data in the Eclipse IDE workspace and create a new project again.

    I figure the matter is my .sof version doesn't match .elf, so rebuild it can fix it.

4 Replies

  • Hi @ScottShin,

    Thank you for posting in Intel community forum, hope this message find you well and apologies for the delayed in response.
    To help us understand the situation better, can you please let us know what is the mention not working correctly behavior stated?

    Warm regards.
    BB

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

    Finally, I fixed the problem by delete all data in the Eclipse IDE workspace and create a new project again.

    I figure the matter is my .sof version doesn't match .elf, so rebuild it can fix it.