Search found 143 matches

by serg
Wed Dec 27, 2023 6:08 am
Forum: SUB-20 General Discussion
Topic: Looking to determing possible causes of error 2 - Can't open SUB device
Replies: 1
Views: 2353

Re: Looking to determing possible causes of error 2 - Can't open SUB device

Hi John, The source code of the sub20.dll can be found in the lib folder of the Linux SUB-20 package which can be downloaded on the SUB-20 home page http://www.xdimax.com/sub20/sub20.html, look for SUB-20-snap-130926.tgz. Besides the libsub.c, the sub20.dll project contains a resource file to store ...
by serg
Sun Nov 05, 2023 7:09 pm
Forum: SUB-20 General Discussion
Topic: System.BadImageFormatException thrown by C# program using sub20dnc_v4.dll
Replies: 8
Views: 4366

Re: System.BadImageFormatException thrown by C# program using sub20dnc_v4.dll

Hi John, No problems, I am glad that you found the solution and thank you for sharing your findings. This means that I can leave this invincible problem now ;-). I was in the process of analyzing the MSBuild verbose output, hoping to figure out the reason of why it cannot produce a single self-conta...
by serg
Thu Nov 02, 2023 11:46 am
Forum: SUB-20 General Discussion
Topic: System.BadImageFormatException thrown by C# program using sub20dnc_v4.dll
Replies: 8
Views: 4366

Re: System.BadImageFormatException thrown by C# program using sub20dnc_v4.dll

Hi John, I am new to the dotnet/msbuild. I am desperately trying to resolve the following error I am getting while running the "dotnet publish ..." command C:\Users\serg\Desktop\SUB-20\sample\.NET\c#\enum>dotnet publish /p:Configuration=Release /p:Platform="Any CPU" --sc true -p:PublishSingleFile=Tr...
by serg
Thu Oct 26, 2023 9:34 pm
Forum: SUB-20 General Discussion
Topic: System.BadImageFormatException thrown by C# program using sub20dnc_v4.dll
Replies: 8
Views: 4366

Re: System.BadImageFormatException thrown by C# program using sub20dnc_v4.dll

Hi John, Today I tried the Build->Publish option of the MSVC2022 and it seems works properly i.e. the target package contains the correct version(architecture) of the sub20dnc_v4.dll i.e. x64. After installing the package on a fresh Win10x64 VM - I have got the "File not found" exception Unhandled E...
by serg
Thu Oct 19, 2023 8:54 pm
Forum: SUB-20 General Discussion
Topic: System.BadImageFormatException thrown by C# program using sub20dnc_v4.dll
Replies: 8
Views: 4366

Re: System.BadImageFormatException thrown by C# program using sub20dnc_v4.dll

Hello John, I couldn't build the C# project with your snippet due to some syntax errors. Could you please try to build the C:\Program Files\SUB-20\sample\.NET\c#\enum solution on your environment and see if you can run the resulting executable ? Please do the following - Open the solution file in yo...
by serg
Thu Mar 31, 2022 2:54 am
Forum: SUB-20 General Discussion
Topic: Latest SUB-20 RELEASE
Replies: 2
Views: 43410

SUB-20 .NET v1.5

- Added OpenByIndex(int Index) method
sub20dnc_v1.5.zip
(107.08 KiB) Downloaded 1381 times
by serg
Sat May 23, 2020 6:03 am
Forum: SUB-20 General Discussion
Topic: MDIO register access tool (beta)
Replies: 0
Views: 7787

MDIO register access tool (beta)

This MDIO access tool allows reading and writing PHY registers Features: - XML register definition file - Easy Individual bit fields access - Clause 22 and Clause 45 Prerequisites: - Microsoft .NET runtime v3.5 - Latest SUB-20 software support package Use the tm33.xml as a reference to create your o...
by serg
Mon May 25, 2015 1:11 am
Forum: SUB-20 General Discussion
Topic: SUB_20 to SUB_20 through SPI interface transfer issue
Replies: 1
Views: 20971

Re: SUB_20 to SUB_20 through SPI interface transfer issue

Hello Alexander, Sorry for the delay in reply, for some reason I didn't get an email notification to your post. A while ago, one of our customers Ravi MK had prepared a C test application which uses two SUB-20 boards to establish an SPI communication between them. Could you please try this applicati...
by serg
Sat May 23, 2015 4:28 am
Forum: SUB-20 General Discussion
Topic: I2C Master/Slave communication using two SUB-20 boards
Replies: 0
Views: 20908

I2C Master/Slave communication using two SUB-20 boards

This topic explains how to configure two SUB-20 boards as a I2C master and slave and establish communication between them We will use the SUB-20 tool application for this demonstration. All the pictures are attached in an archive, see at the bottom of the post SETUP. Connect boards using 3 wires MAS...
by serg
Mon Apr 13, 2015 5:23 am
Forum: SUB-20 General Discussion
Topic: SUB-20 Python support under Linux and Mac OS
Replies: 0
Views: 20921

SUB-20 Python support under Linux and Mac OS

The SUB-20 can be accessed in a Python script executed under Linux or Mac OS X. To achieve this, makefile which is used to build the libsub.a static library should be modified for building a shared object instead, see below #------------- # Linker Flags #------------- LDFLAGS += -L/usr/local/lib -lu...