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.
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'!
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.?
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.
--- 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.