How can I add a specific CANbus driver version in CodeSys 3.5? - device-driver

I've got a Codesys 3.5 project running on a CCPilot V700 display unit. I've got CodeSys runtime version 3.5.16 installed and it runs my Codesys project just fine.
However, when I want to add a CANbus, I click "Add device" --> Fieldbuses --> CANbus, which shows me a list of available CAN drivers. I can tick the box "Display all versions", which will allow me to see all installed CAN drivers. I'm out of luck: no version 3.5.16. I do have 3.5.15 and 3.5.17 though, but when I try those, I get the error: "a bus error has occurred", and the bus state is "NO DRIVER".
Looking at the Codesys website under the download section, I can't find any driver downloads. How can I install the right version of device drivers?

Those are installed with the codesys installation. So if you want see version 3.5.16 you need to install codesys 3.5.16.

Related

RAD Studio 10.4.2 Community Edition cannot make a new delphi project

Submenu File -> New contains only "Other..." and "Customize" items.
How to correct this?
My OS is Windows 10.0.17763.107.
Old version is 10.2 with same problem.
Installed new version 10.4.2, in process of installation of Delphi Community, I have error at Roboto Font downloading:
[403] Forbidden
I pinged this address of Getit found in the registry: https://getit-104.embarcadero.com
It is not responding! Ok, changing to getit.embarcadero.com, the result is negative.
It seems that your Delphi installation hasn't finished properly. Either it was interrupted or Licence manager didn't manage to verify your Community licence properly.
You could try fixing your licence using Licence Manager that you can find inside Delphi folder. If my memory serves me correctly it is located withing BIN subfolder (don't have access to development machine at the moment to verify).
But if the installation proces itself is getting interrupted you might want to download ISO installation instead of Online installation. When installing latest version of Delphi I had to use ISO installation since Web installation kept loosing connection. I suspect my AV Software (ESET Internet Security) with integrated firewall might be the cause.

How to build a Windows driver development kit 7 on 10

I am trying to build a Windows driver for a piece of hardware I am using. The build notes seem dated as they specify using DDK for Win7. I have Windows kit version 10. Are these the same thing just later version? The instructions then state to open a DDK command window environment then use "build -ceZ" in the dir where the files are located. Does v10 have this console and if so where can I find it? Thanks
https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/wdk-and-visual-studio-build-environment
"The Windows Driver Kit (WDK) 8.1 and WDK 8 introduced a major change
to the environment that you use to build a driver. The WDK no longer
uses Build.exe. The WDK build environment for drivers uses MSBuild.exe
and is fully integrated with the Visual Studio development
environment. This means that source files, makefile.inc, makefile.new
and other related build files present in the previous version of the
WDK are no longer used. The WDK now enables you to create, edit,
build, test, and deploy a driver through Visual Studio. The purpose of
this document is to provide information to help users familiar with
previous WDKs in getting started with the WDK 8.1 and WDK 8."
If you want to build the driver as is then you will need to install the Windows 7.1 DDK and build it using its tools.
https://en.wikipedia.org/wiki/Windows_Driver_Kit
https://www.microsoft.com/en-gb/download/details.aspx?id=11800
You are allowed to install different versions of the DDK on the same machine.
You might find it tricky to install DDK 7.1 on Windows 10 though, try and use this to get around any problem install.
https://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10#:~:text=If%20you%20continue%20with%20Setup,187668%20and%20then%20rerun%20Setup.
Then it's just a case of "choosing the 7.1 ddk environment (32bit or 64bit)" so that it's tools are accessible/used when "building" your driver.
Look in your startmenu at "StartMenu -> Windows Driver Kits -> WDK XXXX -> Build Environments" to find a command prompt to open.
If you can't/don't want to install the DDK 7.1 and a WDK8+ version of your driver project isn't available then it may be possible to convert the driver from using the older "makefile" into new msbuild way of building, but might be fiddly.
https://community.osr.com/discussion/289475/build-exe-to-msbuild-exe-migration-advice
"If you go into VS you should be able to create a WDK driver project.
It will give you a solution with (I think) one C file filled with
everything necessary to make a driver which does nothing. But, most
importantly, it will generate an XML file that MSBuild will accept.
The XML format is not documented. After you have this XML file you
should be able to figure out how to add your files to it by hand, but
you could move the existing driver files to the project using the GUI.
That may be easiest."

Same or higher version of .NET Framework 4 has already been installed on this computer

I want to install Microsoft Windows SDK for Windows 7 .. so i should install .NET Framework 4 But there is an error i can't solve it ..
i tried to uninstall installed .NET frame work from "Program and Features"
But I don't know which one to be uninstall .. and i'm afraid if another program use it
First we need to find the installed package. For that enable Windows Installer logging.
1) In run open gpedit.msc or you can google how to open group policy editor
2) Expand in left panel Computer Configuration -->Administrative Templates --> Windows Components --> Windows Installer
3) On right panel open Logging and Enable it and in option Logging voicewarmupx
4) Restart your PC
Now Windows Installer logging is enabled. Next we need to find and uninstall the conflicting package.
1) Open windows %temp% (can be opened by typing %temp% in run) and delete all files. If something cant be deleted leave it.
2) Run the .NET Framework 4 installer again. After the installer fails, close it.
3) Open windows %temp% again and open the log file (file would be MSIxxxxx.LOG, eg:MSI232f1.LOG)
4) Search for a line saying PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is {xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx}'. Value will be different depending on the package that is already installed.
5) Open command prompt and run msiexec /uninstall {xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx}
6) Now try installing .NET Framework 4 Installer again. This time it will succeed.
Also don't forget to disable Windows Installer logging. Using the same way you enabled it.
You can check if you allready installed .Net 4 in registry
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319

INSTDRV.EXE for Windows 7

Need to install non-PNP kernel device driver under Windows 7. Old reliable INSTDRV.EXE fails on StartService, claiming "2 -- system cannot find the file specified" although fully qualified path to driver SYS file is absolutely positively accurate. I realize Device Manager has an "install legacy driver" Action menu item, but that requires identifying a specific device, which I don't have. Why doesn't INSTDRV.EXE work under Windows 7? How can I install a non-PNP kernel device driver under Windows 7? Thanks.
As far as I know, on modern Windows you have to write .inf file. Read this short MSDN article.
There is a tool in WDK that helps installing drivers. Just copy it to your driver's folder and run it.
Update:
After submitting this answer I've found another way of installing non-pnp drivers. There is another tool, DevCon. It can be found among other WDK tools (Windows Kits\10\Tools\x64). Just copy DevCon.exe to your driver's folder and execute like this:
devcon.exe install pcscgate.inf Root\pcscgate
Root\pcscgate - device identifier that matches the one in [Model] section of .inf file (yes, you still need that file). DevCon creates an empty device node with this identifier and then installs driver.
I had a similar problem just now, finally solved it by setting Linker/Input/Ignore All Default Libraries to Yes (/NODEFAULTLIB).

Initial mono for android installation quits after first screen with no error message

I downloaded the trial version for Mono for android and tried to install on Windows 7. After the first confirmation page the installer quits with no error message.
I've searched for the net and found nothing. I tried to unblock the file and move it to the desktop and click the box to run with administrator priviledges. I've also tried to download and run and dowload and save.
I'm in China, don't know if the great firewall could effect this???
With no error message I'm lost on how to proceed.
Sometimes this can be caused by network connectivity issues or proxies. You can try to install the components manually:
JDK 1.6: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html
Please choose the jdk-6u31-windows-i586.exe installer from the list above.
Android SDK: http://dl.google.com/android/installer_r21-windows.exe
After the main installer is done, please open the SDK Manager and install the following platform APIs: 7,8,10,12,14
GTK#: http://download.xamarin.com/Installer/gtk-sharp-2.12.10.win32.msi
MonoDevelop: http://download.xamarin.com/monodevelop/Windows/MonoDevelop-3.0.5.msi
Mono for Android SDK: http://download.xamarin.com/MonoforAndroid/Windows/mono-android-4.2.7.15330979.msi
You can skip steps 3 and 4 if you don't need/want to use MonoDevelop and use VisualStudio (2010 Professional or better) instead. In that case you must have VS installed before proceeding with step 5.

Resources