Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stlink needs binary releases for windows #166

Closed
sbeh opened this issue Jul 6, 2013 · 10 comments
Closed

Stlink needs binary releases for windows #166

sbeh opened this issue Jul 6, 2013 · 10 comments

Comments

@sbeh
Copy link

sbeh commented Jul 6, 2013

Hi everyone,

thanks for this nice tool. While working with Debian I did not came across any problem, but now I would like to use it on Windows Server 2012 as well.

So I build it using Cygwin:

$ cd stlink
$ ./autogen.sh
$ CFLAGS='-O0 -ggdb3' ./configure
$ make

And running it with administration privileges gives the following output:

$ gdb -q ./st-util.exe -ex 'run --verbose=99'
Reading symbols from /cygdrive/c/Storage/STM/stlink/st-util.exe...done.
Starting program: /cygdrive/c/Storage/STM/stlink/st-util.exe --verbose=99
[New Thread 1080.0xd54]
[New Thread 1080.0xed8]
[New Thread 1080.0x9f8]
2013-07-06T06:21:39 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2013-07-06T06:21:39 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2013-07-06T06:21:39 DEBUG src/stlink-common.c: *** stlink_reset ***
2013-07-06T06:21:39 INFO src/stlink-common.c: Loading device parameters....
2013-07-06T06:21:39 DEBUG src/stlink-common.c: *** stlink_core_id ***
2013-07-06T06:21:39 DEBUG src/stlink-common.c: core_id = 0x2ba01477
2013-07-06T06:21:39 DEBUG src/stlink-common.c: *** stlink_read_debug32 10036422 is 0xe0042000
2013-07-06T06:21:39 DEBUG src/stlink-common.c: *** stlink_read_debug32 ffff0100 is 0x1ffff7cc
2013-07-06T06:21:39 INFO src/stlink-common.c: Device connected is: F3 device, id 0x10036422
2013-07-06T06:21:39 INFO src/stlink-common.c: SRAM size: 0xa000 bytes (40 KiB), Flash: 0x40000 bytes (256 KiB) in pages of 2048 bytes
2013-07-06T06:21:39 DEBUG src/stlink-common.c: *** looking up stlink version
2013-07-06T06:21:39 DEBUG src/stlink-common.c: st vid         = 0x0483 (expect 0x0483)
2013-07-06T06:21:39 DEBUG src/stlink-common.c: stlink pid     = 0x3748
2013-07-06T06:21:39 DEBUG src/stlink-common.c: stlink version = 0x2
2013-07-06T06:21:39 DEBUG src/stlink-common.c: jtag version   = 0x10
2013-07-06T06:21:39 DEBUG src/stlink-common.c: swim version   = 0x0
2013-07-06T06:21:39 DEBUG src/stlink-common.c:     notice: the firmware doesn't support a swim interface

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
(gdb) thr 2
[Switching to thread 2 (Thread 1080.0xed8)]
#0  0x779fdc54 in ?? ()
(gdb) bt
#0  0x779fdc54 in ?? ()
#1  0x610de6be in wait_sig(void*) () from /usr/bin/cygwin1.dll
#2  0x61004a05 in cygthread::callfunc(bool) () from /usr/bin/cygwin1.dll
#3  0x61004f8f in cygthread::stub(void*) () from /usr/bin/cygwin1.dll
#4  0x00000000 in ?? ()
(gdb) thr 3
[Switching to thread 3 (Thread 1080.0x9f8)]
#0  0x779fe1a4 in ?? ()
(gdb) bt
#0  0x779fe1a4 in ?? ()
#1  0x77806ab5 in WaitForMultipleObjects () from /cygdrive/c/Windows/SysWOW64/KERNEL32.DLL
#2  0x6e29a494 in windows_clock_gettime_threaded@4 () from /usr/bin/cygusb-1.0.dll
#3  0x61005d1d in _cygtls::call2(unsigned long (*)(void*, void*), void*, void*) () from /usr/bin/cygwin1.dll
(gdb)

Additionally a stackdump file is generated:

$ cat st-util.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=00000000
eax=80010250 ebx=00000000 ecx=6118AC10 edx=00000001 esi=00000000 edi=0028CD68
ebp=00000000 esp=0028AC0C program=C:\Storage\STM\stlink\st-util.exe, pid 3784, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
End of stack trace

Since it already detects my STM3F3Discovery-Board (which switches on the green LED instantly), I guess this is a minor problem. I would be glad to help provide more debugging information so we can fix this issue.

Bye, sbeh.

@rusefi
Copy link

rusefi commented May 7, 2014

One way or another, some support of Windows would be great

There are some pre-combiled binaries at http://www.emb4fun.de/archive/stlink/index.html#download but I am not sure how current are these and I am having some issues with them anyway :(

@xor-gate xor-gate added this to the v2.0.0 milestone May 17, 2016
@xor-gate xor-gate changed the title Cygwin Stlink needs binary releases for windows May 17, 2016
@xor-gate
Copy link
Member

I did give compilation with CMake + Visual Studio 2015 on windows a shot yesterday and it needs some refactoring before we can make a windows release.

@xor-gate
Copy link
Member

Building the tools with MinGW64 toolchain works. I have tested st-info --probe on windows 10 and it seems to work (See #465).

@xor-gate xor-gate modified the milestones: v1.3.0, Unplanned (Contributions Welcome) Sep 19, 2016
@xor-gate xor-gate self-assigned this Sep 19, 2016
@xor-gate
Copy link
Member

xor-gate commented Sep 19, 2016

I will create a binary release for v1.3.0 with MinGW64.

@xor-gate
Copy link
Member

This will happen as v1.3.0 is tagged, thanks all for reporting.

@dalbert2
Copy link

dalbert2 commented Jan 5, 2017

Thanks xor-gate! Since this issue is closed, can you point us to where the binary is and perhaps add a link to the wiki?

@xor-gate
Copy link
Member

xor-gate commented Jan 5, 2017

As noted by myself, this will happen as soon v1.3.0 is released/tagged. I can not make guarantee when this exactly will happen (hopefully < 2 months) as I'm doing this on best-effort and free-time basis. I run myself only linux and mac machines, but will do my best.

I will reopen this so we and others don't get confused there is no binary.

@xor-gate xor-gate reopened this Jan 5, 2017
@dalbert2
Copy link

dalbert2 commented Jan 5, 2017

Thanks xor-gate, I appreciate all of the work you are doing and didn't mean to be a pest, I just assumed it had already been released because the issue was closed. I think re-opening the issue will make it clear to others...thank you!

@xor-gate
Copy link
Member

xor-gate commented Jan 5, 2017

Your are assumptions are correct, I just wanted to let you know the current status. We will hit v1.3.0 very soon.

xor-gate added a commit that referenced this issue Jan 5, 2017
Add note about windows binaries (refs #166)
@xor-gate
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants