![]() To start ftp type ftp 192.168.1.230 which is the IP ADDRESS of our target device MINI2440. To transfer this file on to the target device,use FTP method.Open the Linux Terminal & change directory to the folder where your final output file exists.Here it is There you find your final output executable bin file “welcome”. Open File system ,browse to /Home/welcome/bin/Debug Just click on Build.The bin file is ready to be transferred on to the target ARM device,mini2440.īy default the result file is stored in your Home. Note that if you select Build and Run you’ll get error, as this program is intended to run on ARM platform & not on your x86 PC. Now feed the code as below ,just to print out message “Welcome to FriendlyARM…!” 5 times:Ĭlick File –> Save All & then click Build –>Build opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi/debug-root/usr/bin Inside this bin directory you see all the require Program files.Select as per list above. To select the path click on the eclipses. Linker for static libs : arm-none-linux-gnueabi-ar Linker for dynamic libs : arm-none-linux-gnueabi-g++ Under the Program Files tab make sure the settings are as below :Ĭ compiler : arm-none-linux-gnueabi-gcc-4.4.3Ĭ++ compiler : arm-none-linux-gnueabi-c++ The Compiler’s installation directory is /opt/FriendlyARM/toolschain/4.4.3/įor installation procedure of cross compiler read the previous post here. This part is the most important part of Compiler settings.Please take care to select as per screenshot below : ![]() Under selected compiler make sure that the entry is GNU ARM GCC Compiler. Select the Compiler as “ GNU ARM GCC Compiler”.Ĭlick Next to see the Workspace window.To the left hand side under Projects tab you can see the project name “welcome” & if you expand Sources you can see main.c file automatically created.Double click this main.c file.īy default, a sample Hello world program is presented.Īs we are cross compiling the program for ARM platform ,we’ve to do the Compiler settings as below: Select Console Application ,click Go button & in the next window select C as the language.Ĭlick Next & provide a name for your project,e.g., welcome. Install Code Blocks using the Ubuntu Software Center.Just type code blocks in the search box & click install.Īfter installation ,the Code Blocks icon appears on the Launch bar.Ĭlick the Icon to fire Up Code Blocks.To start a new program Click Create New Project button. Lastly, Code Blocks colors the source-code syntax, includes a 'code folding' function for C++ and XML languages, has a tabbed interface, comes with a class browser, and a feature for completing the source-code.In this post I shall demonstrate the ways of developing programs for mini2440 using Code Blocks.Ĭode Blocks is a free cross platform IDE with powerful features. ![]() Another noteworthy feature are the custom memory dumps. You can also create defined inspections by user. It has a fast, customized construction system that doesn't require makefiles, and allows you to perform parallel constructions on systems with a multi-core CPU.Ĭode Block's debugger supports the application of breakpoints on the source code, or on the data that the program handles, as well as the establishment of conditions and counters for said breakpoints. The default compiler that this Code Blocks packet comes with is MinGW.Ĭode Blocks' functionality can be expanded by using plugins. It is an open-source, integrated, cross-platform development environment that supports the use of multiple compilers, such as: GCC (MingW/GNU GCC), MSVC, Digital Mars, Borland C++ 5.5, and Open Watcom. Code Blocks is an excellent option for programming in C++.
0 Comments
Leave a Reply. |