JLink at Win7 guest. Can't get Jlink and Virtual COM simultaneously.

Discussions related to using VirtualBox on Linux hosts.
Post Reply
SilverFork
Posts: 2
Joined: 16. Nov 2016, 14:51

JLink at Win7 guest. Can't get Jlink and Virtual COM simultaneously.

Post by SilverFork »

Hello!!!
My environment:
Ubuntu 14Lts as a host, Win7 as a guest OS, VB Version 5.1.8

What I want to do:
I try to connect JLink debugger on my guest OS (Win7) through the host OS (Ubuntu). I also need an functionality UART from JLink device.

My problem:
if I connect the JLink device according to the chapter "3.10. USB suppor" of manual, I see Jlink device,
but i can't get data from Virtual Com port(I see it in Windows device manager, but there is no data transmission in the Putty or in any other terminal).
Otherwise if I do all steps from the chapter "3.9. Serial ports", I see data transmission, but there is no JLink device in windows device manager, so I can't flash and debug
my board through it.

I've spent two days to solve this issue. Can any one help me?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: JLink at Win7 guest. Can't get Jlink and Virtual COM simultaneously.

Post by mpack »

If you need functionality that isn't exposed by a virtual serial port, then disable the virtual serial port and use the USB interface exclusively. Install the guest drivers needed to expose the functionality you require.

USB is not designed to share devices between two or more PCs (virtual or otherwise). So, either the host owns your serial device (and virtual COM works), or, the guest owns the USB device in which case the guest must use the USB serial driver. It can't use a mixture of interfaces as USB doesn't support that.
SilverFork
Posts: 2
Joined: 16. Nov 2016, 14:51

Re: JLink at Win7 guest. Can't get Jlink and Virtual COM simultaneously.

Post by SilverFork »

mpack wrote:or, the guest owns the USB device in which case the guest must use the USB serial driver.
Yes, that's what I want! Guest(Win7) shall use USB device and USB serial driver simultaneosly. But I can't get data from my board through VC in that case.
One more time. I connect Jlink to guest OS (Win7). In this case I can use it as USB device (flash my board and debug it). I see virtual com port device in
windows device manager. But I don't see any data transport from my board through this virtual COM port to the guest OS (Win7).

Moreover. I tried to swap OSs(Win7 as a host, Ubuntu as a guest). And there was no problems.

Thank you for your reply. Unfortunately I need a little more of your time.
Post Reply