Skip to content

Commit e4b04bf

Browse files
committed
Add PortentaH7 bootloader drivers
1 parent f3d32e7 commit e4b04bf

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

boards.txt

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ envie_m7.compiler.mbed.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
2222
envie_m7.compiler.mbed="{build.variant.path}/libs/libmbed.a"
2323
envie_m7.vid.0=0x2341
2424
envie_m7.pid.0=0x025b
25+
envie_m7.vid.1=0x2341
26+
envie_m7.pid.1=0x035b
27+
envie_m7.vid.2=0x2341
28+
envie_m7.pid.2=0x045b
2529

2630
envie_m7.upload.tool=dfu-util
2731
envie_m7.upload.protocol=

drivers/portentah7.cat

22.1 KB
Binary file not shown.

drivers/portentah7.inf

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
;
2+
;
3+
; Installs WinUsb
4+
;
5+
6+
[Version]
7+
Signature = "$Windows NT$"
8+
Class = USBDevice
9+
ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6}
10+
Provider = %ManufacturerName%
11+
CatalogFile = portentah7.cat
12+
DriverVer = 03/03/2020,10.48.00.000
13+
14+
; ========== Manufacturer/Models sections ===========
15+
16+
[Manufacturer]
17+
%ManufacturerName% = Standard,NTamd64
18+
19+
[Standard.NTamd64]
20+
%DeviceName% =USB_Install, USB\VID_2341&PID_035B&MI_00
21+
22+
; ========== Class definition ===========
23+
24+
[ClassInstall32]
25+
AddReg = ClassInstall_AddReg
26+
27+
[ClassInstall_AddReg]
28+
HKR,,,,%ClassName%
29+
HKR,,NoInstallClass,,1
30+
HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
31+
HKR,,LowerLogoVersion,,5.2
32+
33+
; =================== Installation ===================
34+
35+
[USB_Install]
36+
Include = winusb.inf
37+
Needs = WINUSB.NT
38+
39+
[USB_Install.Services]
40+
Include = winusb.inf
41+
Needs = WINUSB.NT.Services
42+
43+
[USB_Install.HW]
44+
AddReg=Dev_AddReg
45+
46+
[Dev_AddReg]
47+
HKR,,DeviceInterfaceGUIDs,0x10000,"{51de5bfa-d59d-4f3e-9b36-0b4b210dd53f}"
48+
49+
; [DestinationDirs]
50+
; If your INF needs to copy files, you must not use the DefaultDestDir directive here.
51+
; You must explicitly reference all file-list-section names in this section.
52+
53+
; =================== Strings ===================
54+
55+
[Strings]
56+
ManufacturerName="Arduino"
57+
ClassName="Universal Serial Bus devices"
58+
DeviceName="Portenta H7 Bootloader"
59+
REG_MULTI_SZ = 0x00010000

post_install.bat

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
@echo off
22
set ARGS=/SE /SW /SA
3+
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
4+
drivers\dpinst-amd64.exe %ARGS%
5+
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
6+
drivers\dpinst-amd64.exe %ARGS%
7+
) ELSE (
8+
drivers\dpinst-x86.exe %ARGS%
9+
)
310

411
@echo off
512
setlocal

0 commit comments

Comments
 (0)