![]() In the "Project/targets options" window, click on the "Build targets" tab, and then click on the "Build options." button. Select from the drop-down list the compiler configured in the previous section and click on "Finish".Ī sample "Hello world" project will show up in the IDE.įrom the previous view, right click on the project name and then click on "Properties.". Unless you prefer changing something, click "Next" in the "Welcome" and "Language" windows.įill in the project details according to your preferences and click on "Next". ![]() In the "New from template" window, select "Console application" and click on "Go". ![]() sh files executable:ĥ Create a sample "Console application" project with Code::Blocksįrom the menu bar, click on "File", then on "New" and then on "Project.". #!/bin/bash readonly PROGRAM = " $1 " PROGRAMNAME = " $(basename $PROGRAM ) "Įcho "Starting GDB Server on Target" # kill gdbserver on target Here, we will create the following files:Ĭonfiguration file hosting target parametersĬreate the file /home/user/bin/nf using the right IP address of the target board: sysroot=/opt/fslc-xwayland/3.1/sysroots/aarch64-fslc-linuxĬlick on the "Linker settings" tab, then on the "Other linker options" tab, and add the appropriate options.Ĥ Create the reference helper scripts to deploy and debug with Code::Blocks Debugger: GDB/CDB debugger: Variscite GDBĬlick on the "Compiler settings" tab, then on the "Other compiler options" tab, and add the appropriate options.Linker for static libs: aarch64-fslc-linux-ar.Linker for dynamic libs: aarch64-fslc-linux-g++.Compiler's installation directory: /opt/fslc-xwayland/3.1/sysroots/x86_64-fslcsdk-linux/usr/bin/aarch64-fslc-linux.In the "Add new compiler" window, enter the new compiler's name and click on "OK".Ī popup windows will remind you to update the "Toolchain executables" page - just click on "OK".Ĭlick on the "Toolchain executables" tab and fill in the fields according your Yocto toolchain.įor the Debugger, in the drop-down list you should select the one created above. In the "Global compiler settings" window, click on "Copy". The next steps depend on the previous section: here we assume the debugger is already configured.įrom the menu bar, click on "Settings" and then on "Compiler.". Set sysroot /opt/fslc-xwayland/3.1/sysroots/aarch64-fslc-linux Then, add the set sysroot command in the "Debugger initialization commands" section, to speedup the gdb startup. ![]() opt/fslc-xwayland/3.1/sysroots/x86_64-fslcsdk-linux/usr/bin/aarch64-fslc-linux/aarch64-fslc-linux-gdb Select the new configuration in the left pane, and fill in the "Executables path" field. In the "Create config" window, enter the new debugger's name and click on "OK". In the "Debugger settings" window, select "GDB/CDB debugger" and click on "Create Config". This section uses the default toolchain path, assuming you followed the default instruction in Variscite's Yocto Toolchain installation guide.Ĭhanges may be required if you installed the toolchain in a different path or used different distro settings.įrom the menu bar, click on "Settings" and then on "Debugger." To install the toolchain, follow Variscite's Yocto Toolchain installation guide. $ sudo apt-get -y install build-essential gdb gdb-multiarch gitĢ.2 Install Code::Blocks $ sudo apt install codeblocks codeblocks-contribĪ toolchain is necessary for cross compiling applications. Please follow the steps below to prepare a fresh Ubuntu 20.04 installation for Code::Blocks debugging:Ģ.1 Install Dependencies $ sudo apt-get -y update 5 Create a sample "Console application" project with Code::Blocksġ Create your rootfs with Code::Blocks debug supportĭebugging with Code::Blocks requires your preferred SSH server (openssh, dropbear, etc.), gdb, and gdbserver installed on the target device.Īppend the following to the conf/nf file in your Yocto build directory:.4 Create the reference helper scripts to deploy and debug with Code::Blocks.1 Create your rootfs with Code::Blocks debug support.
0 Comments
Leave a Reply. |