This repo contains Visual Studio projects for building a driver, library and test application for the Thunderscope using the LitePCIe LiteX core.
Use winget and the provided vsconfig file to install the toolchain.
winget install --id Microsoft.VisualStudio.2022.BuildTools --force --override "--wait --passive --config buildtools.vsconfig"-
Create a Test Signing Certificate
-
Enable loading Test Signed Drivers on your Test PC.
> Bcdedit.exe -set TESTSIGNING ON-
Download and install Visual Studio 2022 Build Tools
-
Open the solution
-
Setup a test certificate for the
thunderscopedrvproject -
Build the solution with the
builddriver.batscript
> builddriver.batThis
-
Download and install the EWDK.
-
Launch the EWDK environment
> <EWDKInstallDir>\LaunchBuildEnv.cmd- From within the EWDK environment, build the solution with
msbuild
<Driver-Repo-Dir> > msbuild ts_litex_driver.sln /p:Configuration=Release /p:Platform=x64- To create a driver with a release version, build the solution with the following properties
<Driver-Repo-Dir> > msbuild ts_litex_driver.sln /p:Configuration=Release /p:Platform=x64 /p:DriverDate=<tag-date> /p:DriverVersion=<tag-version>-
Open a terminal with Admin privileges
-
From the root of the driver project, use
pnputilto install the driver.
<Driver-Repo-Dir> > pnputil /add-driver x64\Debug\thunderscopedrv\thunderscopedrv.inf /install<LitePCIe-Repo-Dir>\build > cmake ..
<LitePCIe-Repo-Dir>\build > cmake --build .See Run CodeQL Analysis on Windows DriverCode for setup instructions. Summarized below:
- Install CodeQL CLI
- Install WHCP Packs
Run the runCodeQL.bat script to run the CodeQL analysis. This should be run within the same environment as a build.