Installing the PSE Driver on Windows 10
To make the PSE on the K400 system work, we will need to install the PSE driver on the system. Before installing the PSE driver, please make sure that the Windows 10 operating system is correctly installed. If not, you can follow the technical support article How to reinstall Windows 10 Home & Pro – OnLogic Support on OnLogic support site to install Windows 10 first.
The K400 series Windows 10 driver is available on OnLogic website, you can download it directly from K400 Series Drivers .
The PSE driver is included in the driver package, you can find the PSE driver in extracted driver files,
Before the PSE driver is installed, you can find a “Base SystemDevice” with exclamation mark in Device Manager
Click the “Update Driver” button in Driver tab,
Then follow the instructions on screen to install the driver.
Select “Browse my computer for drivers”
Click on the “Browse” button and navigate to the PSE driver folder
After clicking on the “OK” button, the driver will be installed.
Then the PSE driver is installed now.
Installing the build tool
We will need to install the VS2022 build tools to compile the PSE sample code. You can install the build tool from https://visualstudio.microsoft.com/downloads/?q=build+tools#build-tools-for-visual-studio-2022
After downloading the installer, install the “Desktop development with C++” option. Then you can build the PSE sample project using cmake from the Visual Studio developer command prompt.
We are ready to compile the PSE sample code. The PSE sample code is available on the OnLogic Support Site. Please download it and unzip to the local driver, then run “x86 Native Tools Command Prompt for VS 2022” as Administrator from the start menu.
In the command prompt, navigate to the PSE source code folder and run the following command to build,
mkdir build && cd build cmake -A Win32 .. cmake --build .
After build finished, you can find the executable file in <work directory>\build\src\Debug\
The PSE sample code provides examples to use the DIO, CAN, and Automotive features on the system.
Using the PSE
This PSE sample code demonstrates how to manipulate the DIO interface from C language in Windows 10 environment.
To integrate the PSE function in your own application, you will need to add pse.c in your project. Then include pse.h in your source code.
pse.c provides APIs to connect and help to communicate to the PSE engine. The basic work flow is very simple as following diagram,
The PSE sample project includes example for both Ubuntu and Windows 10 operation system. In this guide, we show how to run the example program on the Windows environment. For more detail information about how the PSE work please refer to Using the K400 PSE with Ubuntu for Intel IoT on OnLogic support site.