Difference between revisions of "J-Link on VirtualBox"

From SEGGER Wiki
Jump to: navigation, search
(How to setup)
Line 12: Line 12:
 
# Install the extension pack
 
# Install the extension pack
 
## On Windows, this can be done by double-clicking the '''.vbox-extpack''' file and following the instructions shown on screen
 
## On Windows, this can be done by double-clicking the '''.vbox-extpack''' file and following the instructions shown on screen
# After successful installation of the extension pack, start the virtual machine
+
# After successful installation of the extension pack, open the virtual machine settings
  +
#* [[File: VirtualBox_Settings.png | 300px | thumb | left | Open VM settings]]<br clear=all>
  +
# In the '''USB''' category, make sure "USB 2.0" is selected
  +
#* [[File: VirtualBox_Settings_USB.png | 300px | thumb | left | VM settings: USB]]<br clear=all>
  +
# Start the virtual machine
 
# Make sure J-Link is attached to the guest system by right-clicking the USB icon in the task bar and selecting the J-Link USB device, if not already checked
 
# Make sure J-Link is attached to the guest system by right-clicking the USB icon in the task bar and selecting the J-Link USB device, if not already checked
#*; [[File: VirtualBox_TaskBar_USB.png]]<br><br>
+
#* [[File: VirtualBox_TaskBar_USB.png]]<br><br>
#*; [[File: VirtualBox_JLink_USB.png]]
+
#* [[File: VirtualBox_JLink_USB.png | 300px]]
 
# Now, J-Link will be successfully detected and can be used by J-Link software running on the guest system
 
# Now, J-Link will be successfully detected and can be used by J-Link software running on the guest system

Revision as of 08:10, 5 April 2022

This article describes how to use J-Link on a guest operating system inside a virtual machine of Oracle's VirtualBox.

Contents

How to setup

Before using J-Link inside a VirtualBox VM, the Oracle VM VirtualBox Extension Pack needs to be installed.
The extension pack provides support for USB 2.0 and USB 3.0 devices (and more) and as such is mandatory to use J-Link. The steps below describe how to install the extension pack:

  1. On the host system, navigate to https://www.virtualbox.org/wiki/Downloads
  2. Download the Oracle VM VirtualBox Extension Pack for All supported platforms
  3. Make sure no VirtualBox virtual machines are running
  4. Install the extension pack
    1. On Windows, this can be done by double-clicking the .vbox-extpack file and following the instructions shown on screen
  5. After successful installation of the extension pack, open the virtual machine settings
    • Open VM settings

  6. In the USB category, make sure "USB 2.0" is selected
    • VM settings: USB

  7. Start the virtual machine
  8. Make sure J-Link is attached to the guest system by right-clicking the USB icon in the task bar and selecting the J-Link USB device, if not already checked
    • VirtualBox TaskBar USB.png

    • VirtualBox JLink USB.png
  9. Now, J-Link will be successfully detected and can be used by J-Link software running on the guest system