Skip to main content
Gberl.1
Associate
Nov 23, 2020 4:20 PM UTC
Solved

hi, I am new with the CubeProgrammer_API, I saw that there is a C implementation of this API , is there a C# implementation / Wrapper ? are there any examples of using the CubeProgrammer from dotnet C# ?

..

This topic has been closed for replies.
Houda GHABRI
Houda GHABRIBest answer
ST Employee
Nov 27, 2020 12:48 PM UTC

Hi @Gberl.1​ 

The only examples we provide are C/C++.

in addition to C++, the API is used by STM32CubeProgrammer GUI throw a JNA wrapper, only thoses implementations are tested.

Houda

6 replies

Pavel A.
Nov 23, 2020 6:03 PM UTC

If you googled, and found nothing, you can be sure that it does not exist.

-- pa

Gberl.1
Gberl.1Author
Associate
Nov 24, 2020 6:55 AM UTC

Pavel, if I googled something and it's not found it doesn't mean it is not somewhere else, maybe someone implemented it and care to share?

Houda GHABRI
Houda GHABRIBest answer
ST Employee
Nov 27, 2020 12:48 PM UTC

Hi @Gberl.1​ 

The only examples we provide are C/C++.

in addition to C++, the API is used by STM32CubeProgrammer GUI throw a JNA wrapper, only thoses implementations are tested.

Houda

Piranha
Principal III
Nov 28, 2020 8:31 AM UTC
Gberl.1
Gberl.1Author
Associate
Nov 29, 2020 11:20 AM UTC

the PInvoke method is known and common, the problem is that this code has many structures and pointer that should be marshaled, I wonder if any one has done it for this code and cares to share or should I do that work myself.

Mipoter
Visitor II
Oct 3, 2023 10:27 AM UTC

Hi @Gberl.1,

Recently, you can find a C# wrapper on nuget.

I think it's still in preview, this is the link.

Regards