SLS Audio NEEK Board Support Package uClinux User Manual

Page 51

Advertising
background image

uClinux NEEK BSP

Debugging Kernel and User Applications

8. Project types, executable, Hello world ANSI C Project, (or empty project

and add your source).Finish.

9. Now, setup for nios2 tool chain in Eclipse IDE on the host by following

the steps below:

a) Select the project Helloworld under Project Explorer.
b) Right click on Helloworld and select Properties. Project properties

dialog box opens.

• Select Settings>GCC C Compiler under C/C++ build. Make

following settings:

• Command: nios2-linux-uclibc-gcc
• All options: -O0 -g -Wall -c -fmessage-length=0

• Click Apply.

• Select Settings>GCC C Linker under C/C++ build and make

following settings

• Command: nios2-linux-uclibc-gcc

• All Options: -elf2flt

• Select Miscellaneous under GCC C Linker

• Linker flags: -elf2flt

• Click Apply

c) Select Run/Debug Settings under Project properties. Run/Debug

settings dialog box opens

• Click on New button. Select Configuration Type dialog box

opens

• Select C/C++ Local application.

• Click OK. Properties for new Configuration dialog box opens.
• Under Main tab do the following settings:

• Browse the Helloworld project under project.

• Type Debug/Helloworld.gdb

• Select Debugger tab. Make following settings

• Debugger: gdbserver Debugger

• Under Main tab of Debugger options make following settings

• GDB Debugger: nios2-linux-uclibc-gdb

• Under Connection tab

• Type: TCP
• Host name or IP address: 192.168.0.14 (IP address of

NEEK board)

• Port Number: 9999 (you can give any number)

• Click Apply and click OK. You have finished setting of

run/debug settings.

• Click Apply and click OK. This finishes project properties

settings.

d) Select Project>Build Configuration>Build>All to build your project.

System Level Solutions

43

Advertising