I would like to use the Consoleviewer to trace the exceptions thrown from the software on the brick.
I have managed to use the console via a RConsole.openUSB(..) statement, but as far as I understand it, I can only use this to print stuff from within the program.
What I really want is to have the console display the exception thrown, and the location in the source code where it occured.
I have read the debugging tutorial, especially this part:
- Code: Select all
..this time -od to create the debug information and -gr to add the remote console debug code to the program.
and I have compiled my program, linked it with the specified commands and uploaded it. Upon starting, I instantly get an error (an exception?) and the 'error sound'.
The LCD reads:
- Code: Select all
Exception: 115
FExec
at: 530(15)
...
(if the following lines are of importance, Ill copy them here).
Any hint what I am doing wrong? Do I have to do anything with the debug file that is created by the "-od" option?
On a side note: Is it possible in eclipse to tell the run configuration that compiles/links/uploads with which parameters to run the linker?
Thanks for any comments!
