Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

Build Problems..unrecognized instruction

Altera_Forum
Honored Contributor II
1,589 Views

Hi... 

 

I'm trying to merge Nios/quartus hardware with software. 

 

File structure is: 

 

C: 

Project_File 

Software (this contains all the C code, etc) 

Quartus_stuff (This contains all the Quartus files, including the .PTF file) 

 

I enter the IDE and: 

 

File> Import> Existing Altera Nios II project into workspace> browse to Software folder 

 

 

File >new >other > (select Altera Nios II system library) and 1) name it "my_syslib" 2) location is C:/Project_File/Quartus_stuff 3)SOPC Builder system is the .PTF file 

 

 

 

Then: Set properties of project so project references and Associated System library point to the library created in previous step 

 

 

 

 

Then: Project > Rebuild Project. 

 

 

 

Things go along well, then I get a ton of error messages 

 

First is: Can't open nios_Macros.s for reading: no such file or directory 

 

THen a ton of "Error: unrecognized instruction GEQU 

 

 

Evidently, my path to My_syslib/cpu_0_sdk/inc/nios_macros.s is invalid or not recognized.  

 

 

I can see this file in the navigator. 

 

 

WHAT AM I DOING WRONG?????? TOTALLY GRATEFUL FOR ANY HELP!!! 

 

 

Thanks!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
527 Views

Mixing Legacy SDK based software with the HAL-based flow is not supported. It appears that this is what you're trying to do. 

 

Go through both the HW and SW tutorials to see how you should be doing things. 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
527 Views

You've given me a clue here.... 

 

At one point I used legacy components and therefore checked the "legacy SDK support" box on the "More "CPU_0 settings" panel. I no longer use the legacy components, but it seems the files don't get erased. 

 

Should I simply delete the cpu_0_SDK folder from the library? (I'll give that a try pending a reply) 

 

Thanks!
0 Kudos
Altera_Forum
Honored Contributor II
527 Views

Yes, that appears to be it....normal build now 

 

Thanks for pointing me in the right direction
0 Kudos
Reply