Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

"Source not found"

Altera_Forum
Honored Contributor II
949 Views

Very noob question but can you tell me why I keep getting "Source not found" when trying to debug a NIOS2 program for DE0 on Fedora? 

It happens as soon as it hits a line that needs an include such as calling rand from stdlib.h  

Sending it to the board works fine and I can light random LEDs, but I can't debug anything without commenting that stuff out which is daft.
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
144 Views

Interesting, error only pop on that particular lines?

Altera_Forum
Honored Contributor II
144 Views

At first yes. Mainly I just wanted random numbers. I gave up trying to talk to clock or timer external functions, then gave up using stdlib.h and just put the actual snippet from it into my code. Trying to debug that, it says Source not found on a line that has nothing external on it, just basic operators like divide and multiply. Very odd. It's done this to at least one other student I know. Googling, the only official Altera answer I could find was 'port your project to Eclipse'!

Altera_Forum
Honored Contributor II
144 Views

this is bad.... but since your observation quite strange, did you maybe try to load a simple hello world with some normal operator just to confirm the setup that you have should be working normally.?

Altera_Forum
Honored Contributor II
144 Views

Yeah, debug USUALLY works fine when there aren't new includes, and code with the include will compile and run fine on the DE0, if its good code. But when something goes wrong with the code and I want to watch variables to find out where, I can't, unless I remove all references to the external functions first.

Altera_Forum
Honored Contributor II
144 Views

for this observation. possible only happens on with /s or /f type of nios core?

Altera_Forum
Honored Contributor II
144 Views

 

--- Quote Start ---  

for this observation. possible only happens on with /s or /f type of nios core? 

--- Quote End ---  

 

 

I don't understand what you mean, could you clarify? Please remember I'm a novice.
Reply