== Getting started with 825 app development == 825 app development is done in a preconfigured Linux virtual machine. Be sure that a good deal of disk space is available for the virtual machine. The download is a 7-zip compressed archive that is over 17G. The VMWare virtual machine can be downloaded from Teams: After downloading the file use 7-zip to un-compress the virtual machine. The uncompressed VM is around 35G. During operation additional space will be needed. Open the virtual machine using VMWare Workstation or VMWare Player. [[Image(825vmlogin.png)]] Login with user password: new825 Toolbar at the bottom of the screen is configured with icons to open helpful programs for 825 development. [[Image(825vmtoolbar.png)]] ||[[Image(825vmicon_applauncher.png)]]||Fedora "Application Launcher"|| ||[[Image(825vmicon_firefox.png)]]||Firefox Web Browser|| ||[[Image(825vmicon_chromium.png)]]||Chromium Web Browser|| ||[[Image(825vmicon_filemanager.png)]]||Dolphin File Manager|| ||[[Image(825vmicon_calc.png)]]||KCalc Scientific Calculator|| ||[[Image(825vmicon_terminal.png)]]||Konsole Terminal|| ||[[Image(825vmicon_eclipse.png)]]||Eclipse IDE (Integrated Development Environment)|| ||[[Image(825vmicon_simulator.png)]]||825 Simulator|| ||[[Image(825vmicon_simulator_debug.png)]]||825 Simulator for debugging an app|| ||[[Image(825vmicon_legacy_simulator.png)]]||Legacy 825 Simulator|| ||[[Image(825vmicon_legacy_simulator_debug.png)]]||Legacy 825 simulator for debugging an app|| ||[[Image(825vmicon_db_brower.png)]]||DB Browser for SQLite|| ||[[Image(825vmicon_mysql_workbench.png)]]||MySQL Workbench|| ||[[Image(825vmicon_meld.png)]]||Meld Diff Viewer (Tool for comparing files or directories)|| ||[[Image(825vmicon_putty.png)]]||PuTTY terminal|| ||[[Image(825vmicon_softwarecenter.png)]]||Discover Software Center|| ||[[Image(825vmicon_gimp.png)]]||GIMP (GNU Image Manipulation Program) Image Editor|| The Eclipse IDE is used for developing 825 apps. The "Project Explorer" shows existing projects in the current workspace. For more information about the project refer to the page: App Source Code Repositories These existing projects in the VM may be out of date. To update them make sure the VM is properly configured to have internet access. Right-click on each project name, select "Team", and then "Update to HEAD". You may be prompted for login Contact Cardinal for login to the server. The projects with names starting "lib" are libraries that are used by apps. The most common library that is used for an 825 app is lib825ev. A good way to learn is to view code, build and modify existing projects. Build configurations Right-click on a project and select "Build Configurations", "Set Active" to see possible build configurations. For developing for new 825 use "Debug-ARM825". Debug builds often have additional diagnostic messages that are output to the terminal. Right-click and select "Clean Project" to remove intermediate files and the executable for the selected project. Right-click and select "Build Project" to compile and link all modules to create the executable for the selected project. The GCC ARM 64-bit compiler compiles each source file and then the linker links the objects to create the executable file. In the above example the executable file is /srv/nfs/arm825_nand/apps/ids_dbg The "File Manager" may be used to view this. In this case use the change directory "cd" command to select the output directory. The "file" command can be used to provide information about an executable file. ids_dbg: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, with debug_info, not stripped Note the ARM aarch64 indicates the file is for 64-bit ARM architecture. The file may be copied to the 825 using the scp command such as: scp /srv/nfs/arm825_nand/apps/ids_dbg root@10.1.0.176:/mnt/nand/apps However, it is often useful to not copy the file to the 825 every time. Instead the 825 can mount the VM drive with NFS so that the file can be run while still in the VM. Connect to the 825 with ssh ssh can be used from the terminal in the VM or if you have multiple monitors it can be convenient to use ssh from Windows powershell in another monitor. First time for each session: source test825 Period is a shortcut for source command. For example: . test825 10.1.5.157 (a space is necessary after the period) Then from ssh into the 825 make sure appropriate directory is selected such as: cd /mnt/nfs/arm825_nand/apps Run the app ./ids_dbg It is best to exit the app when done instead of Ctrl-C. If the app is terminated with Ctrl-C it may not cleanup and leave mainboard communications in an undesirable state.