Skip to main content
Gberl.1
Associate
November 23, 2020
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# ?

  • November 23, 2020
  • 6 replies
  • 2916 views

..

This topic has been closed for replies.
Best answer by Houda GHABRI

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.
Super User
November 23, 2020

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

-- pa

Gberl.1
Gberl.1Author
Associate
November 24, 2020

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
November 27, 2020

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
November 28, 2020
Gberl.1
Gberl.1Author
Associate
November 29, 2020

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
October 3, 2023

Hi @Gberl.1,

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

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

Regards