ST Link and VirtualBox.

Anything not related to a specific project.

ST Link and VirtualBox.

Postby KIBO » Thu Feb 07, 2013 3:43 pm

Hi,

I am wondering if any members here can offer me advice on getting my ST32F4Discovery board working under VirtualBox.

My host is a 64bit Win7 system, and I want to get the GNU-ARM-Eclipse toolchain running under Ubuntu as a guest OS.

For some reason VirtualBox will not connect the ST-Link. It shows in the USB devices, and when I click on it it appears to try to connect, but doesn't. Try to connect again and shows as 'busy'.

Anyone had joy running any J-Tags under window host - other guest OS using VirtualBox?


Many thanks.
KIBO
Newbie
Newbie
 
Posts: 7
Joined: Thu Feb 07, 2013 3:35 pm

Re: ST Link and VirtualBox.

Postby andersm » Thu Feb 07, 2013 5:00 pm

Device debuggers and programmers tend not to work so well under virtual machines. VMWare is supposedly better in this regard, but I don't have personal experience.

Any special reason you don't want to use a Windows-native toolchain?
andersm
Jr. Member
Jr. Member
 
Posts: 60
Joined: Mon Apr 02, 2012 8:13 pm

Re: ST Link and VirtualBox.

Postby KIBO » Thu Feb 07, 2013 5:08 pm

Atolic is limited to 32kb in lite, or one month full.

The GNU-ARM-ECLIPSE thing under windows, well been there, never got the t-shirt. Never got it to work, so many 'special' windows tools to install. Path issues, etc, etc.
KIBO
Newbie
Newbie
 
Posts: 7
Joined: Thu Feb 07, 2013 3:35 pm

Re: ST Link and VirtualBox.

Postby octal » Thu Feb 07, 2013 7:13 pm

I'm using STM32F4Discovery (with its embedded ST-LINK) under running inside a VirtualBox Win7-X64 (Virtual Box is running under Ubuntu 12.04 X86).
I have no problem so far. Everything is working correctly (even debug).
octal
Sr. Member
Sr. Member
 
Posts: 258
Joined: Mon Apr 12, 2010 10:46 am
Location: Gibraltar

Re: ST Link and VirtualBox.

Postby KIBO » Thu Feb 07, 2013 7:31 pm

octal wrote:I'm using STM32F4Discovery (with its embedded ST-LINK) under running inside a VirtualBox Win7-X64 (Virtual Box is running under Ubuntu 12.04 X86).
I have no problem so far. Everything is working correctly (even debug).


Interested in platform(s) you host/guest under and any issues you had.....
KIBO
Newbie
Newbie
 
Posts: 7
Joined: Thu Feb 07, 2013 3:35 pm

Re: ST Link and VirtualBox.

Postby octal » Fri Feb 08, 2013 8:49 am

I dont really understand what you mean KIBO, sorry :(
I simply said that my PC is under UBUNTU 12.04 -X86, and that I'm running a Win7-X64 inside VirtualBox. I never got problems with ST-Link.
octal
Sr. Member
Sr. Member
 
Posts: 258
Joined: Mon Apr 12, 2010 10:46 am
Location: Gibraltar

Re: ST Link and VirtualBox.

Postby KIBO » Fri Feb 08, 2013 10:26 am

Ah OK, I'm running Win7 64bit as host and Ubuntu as the guest under VirtualBox.
KIBO
Newbie
Newbie
 
Posts: 7
Joined: Thu Feb 07, 2013 3:35 pm

Re: ST Link and VirtualBox.

Postby octal » Sat Feb 09, 2013 7:48 am

Why not use your Win7 directly then?
and I think that ST-Link is only supported under Windows, as ST does provide only Windows DLLs.
octal
Sr. Member
Sr. Member
 
Posts: 258
Joined: Mon Apr 12, 2010 10:46 am
Location: Gibraltar

Re: ST Link and VirtualBox.

Postby KIBO » Sat Feb 09, 2013 2:57 pm

octal wrote:Why not use your Win7 directly then?
and I think that ST-Link is only supported under Windows, as ST does provide only Windows DLLs.


Because the only unlimited tool-chain out there that's free is the GNU-ARM-ECLIPSE-GDB/OpenOCD. And with all the hassles of getting it to work under windows (I never did get it to work) I gave up and went to Ubuntu.

But looks like I'm going to have to dual-boot between Ubuntu and Win7. Sigh.
KIBO
Newbie
Newbie
 
Posts: 7
Joined: Thu Feb 07, 2013 3:35 pm

Re: ST Link and VirtualBox.

Postby andersm » Sat Feb 09, 2013 3:12 pm

Wouldn't your time be better spent getting it to work? And it's not like there's a shortage of pre-packaged GCC ARM toolchains for Windows to try.
andersm
Jr. Member
Jr. Member
 
Posts: 60
Joined: Mon Apr 02, 2012 8:13 pm

Re: ST Link and VirtualBox.

Postby arhi » Sun Feb 10, 2013 4:41 pm

KIBO wrote:I am wondering if any members here can offer me advice on getting my ST32F4Discovery board working under VirtualBox.


I have Linux host (64bit, Fedora) and windoze virtual machine inside vbox (winxp 32bit) and programming and debugging from inside virtualbox works perfectly on all discovery boards (including st32f4discovery) - using atollic true studio. I never tried using windoze host so can't help there, but with linux host everything works great.
User avatar
arhi
Hero Member
Hero Member
 
Posts: 2109
Joined: Thu Jun 24, 2010 11:41 am
Location: Belgrade, Serbia

Re: ST Link and VirtualBox.

Postby KIBO » Mon Feb 11, 2013 9:15 am

andersm wrote:Wouldn't your time be better spent getting it to work? And it's not like there's a shortage of pre-packaged GCC ARM toolchains for Windows to try.


Free? With no limitations?
KIBO
Newbie
Newbie
 
Posts: 7
Joined: Thu Feb 07, 2013 3:35 pm

Re: ST Link and VirtualBox.

Postby arhi » Mon Feb 11, 2013 10:01 am

the only free no limit prepackaged for windows that works is coocox and their support for F4 is rather limited
User avatar
arhi
Hero Member
Hero Member
 
Posts: 2109
Joined: Thu Jun 24, 2010 11:41 am
Location: Belgrade, Serbia

Re: ST Link and VirtualBox.

Postby andersm » Mon Feb 11, 2013 12:03 pm

KIBO wrote:Free? With no limitations?

Yes. Here's a couple:
http://www.yagarto.de/
https://launchpad.net/gcc-arm-embedded/+download
https://sourceforge.net/projects/devkitpro/
http://www.mentor.com/embedded-software ... e-edition/ (can't use the hardfp abi, not otherwise limited)
http://www.coocox.org/

There's also plenty of scripts and tutorials for building the toolchain youself.
andersm
Jr. Member
Jr. Member
 
Posts: 60
Joined: Mon Apr 02, 2012 8:13 pm

Re: ST Link and VirtualBox.

Postby arhi » Mon Feb 11, 2013 12:35 pm



Dead



Just a compiler without any libraries nor tools (debugger, programmer..)



never used it but from what I see it's using mingw - that's immediately turning on red lights

andersm wrote:http://www.mentor.com/embedded-software ... e-edition/ (can't use the hardfp abi, not otherwise limited)


closed, no debugger



- very limited support for mcu's (especially for stm32f4)
- uses their own libs (not that bad) but not simple to add native stm32 libraries in it

all in all - a simple to install and setup toolchain with ide, debugger and programmer that's free and unlimited .. I do not know about it
User avatar
arhi
Hero Member
Hero Member
 
Posts: 2109
Joined: Thu Jun 24, 2010 11:41 am
Location: Belgrade, Serbia

Next

Return to General discussion