User manual
5 Software Development
– mount -t cifs -o username=user //192.168.254.253/onrisc /home/user/onrisc_examples
– enter password
– exit
– cd onrisc_examples
Now you can edit and compile programs on the PC and execute them on the OnRISC.
5.5. Debugging
You have the possibility to debug your own applications with the gdbserver
44
on the target. To
debug your application, start the server with the following command:
gdbserver :9000 /home/user/examples/ioctls
Make a connection to the server with the Insight
45
debugger:
arm-linux-insight ioctls
Go to the menu Target Settings (see Figure 3) and enter your destination data. Than you can
get connected to the target with Run\Connect to Target. The rest of the debugging is up to
you.
Figure 3: Insight: target selection
To get Insight download the source files and compile the code using the instructions given by
the Insight developers in their FAQ (http://sourceware.org/insight/faq.php#q-2.2). In the case of
OnRISC take the following steps:
host> ls
src/
44
Please make sure to install gdb package: apt-get install gdb
45
http://sourceware.org/insight
May 2014 OnRISC User Manual 37