Difference between revisions of "VM Development Package"

From Embedded Systems Learning Academy
Jump to: navigation, search
(Created page with "=== Download === * [https://sourceforge.net/projects/armdevpkg/files/virtualbox_experimental Download this virtual hard disk] file from Sourceforge * Unzip the virtual hard...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=== Download ===
 
=== Download ===
 
*  [https://sourceforge.net/projects/armdevpkg/files/virtualbox_experimental Download this virtual hard disk] file from Sourceforge
 
*  [https://sourceforge.net/projects/armdevpkg/files/virtualbox_experimental Download this virtual hard disk] file from Sourceforge
*  Unzip the virtual hard disk to somewhere safe and permanent, such as '''C:/Documents/sjsu_vm/```
+
*  Unzip the virtual hard disk to somewhere safe and permanent, such as '''C:/Documents/sjsu_vm/'''
  
 
=== Setup VM on VirtualBox ===
 
=== Setup VM on VirtualBox ===
Line 24: Line 24:
 
*  Start your Ubuntu OS
 
*  Start your Ubuntu OS
 
*  Plugin your USB cable to the board and ensure your board has power
 
*  Plugin your USB cable to the board and ensure your board has power
*  After the system boots, go to '''Devices''' on VirtualBox menu, then '''USB" and select the USB board to virtually plug into the VM
+
*  After the system boots, go to '''Devices''' on VirtualBox menu, then '''USB''' and select the USB board to virtually plug into the VM
  
 
=== Use Development Environment ===
 
=== Use Development Environment ===
Line 36: Line 36:
 
**  Note that this assumes your serial port is at '''/dev/ttyUSB0'''
 
**  Note that this assumes your serial port is at '''/dev/ttyUSB0'''
 
**  If the assumptions above are not true, you can edit the '''run_flash''' file
 
**  If the assumptions above are not true, you can edit the '''run_flash''' file
 +
 +
=== Be an Engineer ===
 +
* Figure out how to use '''Minicom''' on your own
 +
** This will let you open up the serial port and interact with your board and see the Board's output data from printf()

Latest revision as of 04:28, 30 August 2018

Download

Setup VM on VirtualBox

  • Download and install VirtualBox for your operating system (Windows, MacOS etc.)
  • Install and run VirtualBox
  • Click on NEW
  • Give your VM (virtual machine) a name
  • Select the Type as Linux
  • Select Version as Ubuntu (64-bit) and click Continue
  • Choose 2560 or more MB of RAM and click Continue
  • Choose Use an existing virtual hard disk file and browse to the VM disk you downloaded, and then click Create

Configure VM

  • Click on the VM you created in VirtualBox, then click Settings
  • Go to Advanced and under Shared Clipboard, select Bidirectional
  • Click on System and ensure 2560 Mbytes (2.5 GBytes) or greater RAM (assuming your laptop has at least 8 Gbytes or so
  • If your system allows, use 2 CPUs under Processor
  • Under Display use 128Mbytes of RAM
  • Under Audio, de-select to disable Audio

Setup COM port on VM

  • Start your Ubuntu OS
  • Plugin your USB cable to the board and ensure your board has power
  • After the system boots, go to Devices on VirtualBox menu, then USB and select the USB board to virtually plug into the VM

Use Development Environment

  • Open the SJSU_dev folder when the Ubuntu VM boots
  • Double click on run_eclipse to start Eclipse IDE
  • Develop your code and hit Ctrl + B to compile in Eclipse
    • Ensure the program has compiled successfully
  • Right click anywhere (but not on a file) in SJSU_dev folder and then click on Open terminal
  • Type sudo ./run_flash to program the compiled HEX file to the board
    • Note that this assumes you have a file built at projects/lpc1758_freertos/_build/lpc1758_freertos.hex
    • Note that this assumes your serial port is at /dev/ttyUSB0
    • If the assumptions above are not true, you can edit the run_flash file

Be an Engineer

  • Figure out how to use Minicom on your own
    • This will let you open up the serial port and interact with your board and see the Board's output data from printf()