Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
838 Views

"Source not found"

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 I
33 Views

Interesting, error only pop on that particular lines?

Altera_Forum
Honored Contributor I
33 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 I
33 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 I
33 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 I
33 Views

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

Altera_Forum
Honored Contributor I
33 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.