VM Development Package

From Embedded Systems Learning Academy
Revision as of 04:25, 30 August 2018 by Preet (talk | contribs) (Created page with "=== Download === * [https://sourceforge.net/projects/armdevpkg/files/virtualbox_experimental Download this virtual hard disk] file from Sourceforge * Unzip the virtual hard...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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