Skip to content

Commit ef916c2

Browse files
committed
Updated libusb dll
1 parent 110c927 commit ef916c2

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ Be very careful when changing motor types, drivers or the power value.
1212
Incorrect settings may cause unintended movements or damage hardware.
1313

1414

15-
On older windows versions (older than Windows 10) CDC drivers may not load automatically.
16-
17-
Then you need to manually install for example the STM VCP driver for the device. (We will provide an installer later)
18-
1915

2016
![FFB Window](screenshots/FFBwheel.png?raw=true)
2117

@@ -25,7 +21,15 @@ Then you need to manually install for example the STM VCP driver for the device.
2521

2622
![TMC Window](screenshots/TMC.png?raw=true)
2723

28-
Dependencies:
24+
25+
### Installation:
26+
On older windows versions (older than Windows 10) CDC drivers may not load automatically.
27+
28+
Then you need to manually install for example the STM VCP driver for the device.
29+
30+
For DFU on windows a libusb compatible driver is required. Use [Zadig](http://zadig.akeo.ie/) to install a winusb driver for the DFU device or install the STM32CubeProgrammer which uses the same driver and can flash the device as well.
31+
32+
#### Dependencies:
2933

3034
PyQt6
3135
PyQt6-Charts (For TMC graph)

build/OpenFFBoard.spec

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ block_cipher = None
55
folder = ".."
66

77
# Add files that are falsely bundled with the application here to delete them again
8-
delete = ["opengl32sw.dll","d3dcompiler_47.dll","libGLESv2.dll","Qt5Quick.dll","Qt5Qml.dll","Qt5QmlModels.dll",
9-
'api-ms-win-core-console-l1-1-0.dll', 'api-ms-win-core-datetime-l1-1-0.dll', 'api-ms-win-core-debug-l1-1-0.dll', 'api-ms-win-core-errorhandling-l1-1-0.dll', 'api-ms-win-core-file-l1-1-0.dll', 'api-ms-win-core-file-l1-2-0.dll', 'api-ms-win-core-file-l2-1-0.dll', 'api-ms-win-core-handle-l1-1-0.dll', 'api-ms-win-core-heap-l1-1-0.dll', 'api-ms-win-core-interlocked-l1-1-0.dll', 'api-ms-win-core-libraryloader-l1-1-0.dll', 'api-ms-win-core-localization-l1-2-0.dll', 'api-ms-win-core-memory-l1-1-0.dll', 'api-ms-win-core-namedpipe-l1-1-0.dll', 'api-ms-win-core-processenvironment-l1-1-0.dll', 'api-ms-win-core-processthreads-l1-1-0.dll', 'api-ms-win-core-processthreads-l1-1-1.dll', 'api-ms-win-core-profile-l1-1-0.dll', 'api-ms-win-core-rtlsupport-l1-1-0.dll', 'api-ms-win-core-string-l1-1-0.dll', 'api-ms-win-core-synch-l1-1-0.dll', 'api-ms-win-core-synch-l1-2-0.dll', 'api-ms-win-core-sysinfo-l1-1-0.dll', 'api-ms-win-core-timezone-l1-1-0.dll', 'api-ms-win-core-util-l1-1-0.dll', 'api-ms-win-crt-conio-l1-1-0.dll', 'api-ms-win-crt-convert-l1-1-0.dll', 'api-ms-win-crt-environment-l1-1-0.dll', 'api-ms-win-crt-filesystem-l1-1-0.dll', 'api-ms-win-crt-heap-l1-1-0.dll', 'api-ms-win-crt-locale-l1-1-0.dll', 'api-ms-win-crt-math-l1-1-0.dll', 'api-ms-win-crt-multibyte-l1-1-0.dll', 'api-ms-win-crt-process-l1-1-0.dll', 'api-ms-win-crt-runtime-l1-1-0.dll', 'api-ms-win-crt-stdio-l1-1-0.dll', 'api-ms-win-crt-string-l1-1-0.dll', 'api-ms-win-crt-time-l1-1-0.dll', 'api-ms-win-crt-utility-l1-1-0.dll', 'libEGL.dll']
8+
delete = ["opengl32sw.dll","d3dcompiler_47.dll","libGLESv2.dll","Qt6Quick.dll","Qt6Qml.dll","Qt6QmlModels.dll",'api-ms-win-core-console-l1-1-0.dll', 'api-ms-win-core-datetime-l1-1-0.dll', 'api-ms-win-core-debug-l1-1-0.dll', 'api-ms-win-core-errorhandling-l1-1-0.dll', 'api-ms-win-core-file-l1-1-0.dll', 'api-ms-win-core-file-l1-2-0.dll', 'api-ms-win-core-file-l2-1-0.dll', 'api-ms-win-core-handle-l1-1-0.dll', 'api-ms-win-core-heap-l1-1-0.dll', 'api-ms-win-core-interlocked-l1-1-0.dll', 'api-ms-win-core-libraryloader-l1-1-0.dll', 'api-ms-win-core-localization-l1-2-0.dll', 'api-ms-win-core-memory-l1-1-0.dll', 'api-ms-win-core-namedpipe-l1-1-0.dll', 'api-ms-win-core-processenvironment-l1-1-0.dll', 'api-ms-win-core-processthreads-l1-1-0.dll', 'api-ms-win-core-processthreads-l1-1-1.dll', 'api-ms-win-core-profile-l1-1-0.dll', 'api-ms-win-core-rtlsupport-l1-1-0.dll', 'api-ms-win-core-string-l1-1-0.dll', 'api-ms-win-core-synch-l1-1-0.dll', 'api-ms-win-core-synch-l1-2-0.dll', 'api-ms-win-core-sysinfo-l1-1-0.dll', 'api-ms-win-core-timezone-l1-1-0.dll', 'api-ms-win-core-util-l1-1-0.dll', 'api-ms-win-crt-conio-l1-1-0.dll', 'api-ms-win-crt-convert-l1-1-0.dll', 'api-ms-win-crt-environment-l1-1-0.dll', 'api-ms-win-crt-filesystem-l1-1-0.dll', 'api-ms-win-crt-heap-l1-1-0.dll', 'api-ms-win-crt-locale-l1-1-0.dll', 'api-ms-win-crt-math-l1-1-0.dll', 'api-ms-win-crt-multibyte-l1-1-0.dll', 'api-ms-win-crt-process-l1-1-0.dll', 'api-ms-win-crt-runtime-l1-1-0.dll', 'api-ms-win-crt-stdio-l1-1-0.dll', 'api-ms-win-crt-string-l1-1-0.dll', 'api-ms-win-crt-time-l1-1-0.dll', 'api-ms-win-crt-utility-l1-1-0.dll', 'libEGL.dll']
109

1110
a = Analysis([os.path.join(folder,'main.py')],
1211
binaries=[],
13-
datas=[(os.path.join(folder,'res'), 'res'),(os.path.join(folder,"libusb-1.0.dll"),".")],
12+
datas=[(os.path.join(folder,'res'), 'res'),(os.path.join(folder,"libusb-1.0.dll"),"."),(os.path.join(folder,"libusb-1.0_32b.dll"),".")],
1413
hiddenimports=[],
1514
hookspath=[],
1615
runtime_hooks=[],

libusb-1.0_32b.dll

127 KB
Binary file not shown.

pydfu.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@
7979
import platform
8080
import usb.backend.libusb1
8181
def get_backend(): # Return a specific backend for windows
82+
bits, linkage = platform.architecture()
8283
if platform.system() == "Windows":
83-
return usb.backend.libusb1.get_backend(find_library=lambda x: ".\libusb-1.0.dll")
84+
if bits == "64bit":
85+
return usb.backend.libusb1.get_backend(find_library=lambda x: ".\libusb-1.0.dll")
86+
else:
87+
return usb.backend.libusb1.get_backend(find_library=lambda x: ".\libusb-1.0_32b.dll")
8488
return None # default
8589

8690
import inspect

screenshots/FFBwheel.png

-7.13 KB
Loading

0 commit comments

Comments
 (0)