KSociety.SharpCubeProgrammer
0.0.38
See the version list below for details.
dotnet add package KSociety.SharpCubeProgrammer --version 0.0.38
NuGet\Install-Package KSociety.SharpCubeProgrammer -Version 0.0.38
<PackageReference Include="KSociety.SharpCubeProgrammer" Version="0.0.38" />
paket add KSociety.SharpCubeProgrammer --version 0.0.38
#r "nuget: KSociety.SharpCubeProgrammer, 0.0.38"
// Install KSociety.SharpCubeProgrammer as a Cake Addin #addin nuget:?package=KSociety.SharpCubeProgrammer&version=0.0.38 // Install KSociety.SharpCubeProgrammer as a Cake Tool #tool nuget:?package=KSociety.SharpCubeProgrammer&version=0.0.38
KSociety.SharpCubeProgrammer Home
KSociety.SharpCubeProgrammer
KSociety.SharpCubeProgrammer is a wrapper for CubeProgrammer_API v2.14.0 (x64).
Introduction
This is a C# wrapper for STM32 CubeProgrammer_API v2.14.0 (x64 only). The STM32 CubeProgrammer_API is a C-library, created by ST for ST-Link access to micro-controllers for the purpose of flash downloads or general memory access. The ST-Link drivers is required, and can be downloaded from st.com and installed (STSW-LINK009). This has been tested on Windows 10, you don't need to install cubeprogrammer.
KSociety.SharpCubeProgrammer
CubeProgrammer_API C# wrapper.
Get Packages
You can get KSociety.SharpCubeProgrammer by grabbing the latest NuGet package.
Currently supported features
- GetStLinkList
- ConnectStLink
- Reset
- GetDfuDeviceList
- ConnectDfuBootloader
- CheckDeviceConnection
- GetDeviceGeneralInf
- ReadMemory
- WriteMemory
- DownloadFile
- Execute
- MassErase
- SectorErase
- FileOpen
- Verify
- VerifyMemory
- SaveMemoryToFile
- Disconnect
- DeleteInterfaceList
- GetStorageStructure
- SendOptionBytesCmd
- InitOptionBytesInterface
- ObDisplay
Get Started
- Register SharpCubeProgrammer as service with Autofac IoC:
builder.RegisterModule(new KSociety.SharpCubeProgrammer.Bindings.ProgrammerApi());
- Get ST-Link list and connect:
var stLinkList = _cubeProgrammerApi.GetStLinkList();
var stLink = (KSociety.SharpCubeProgrammer.Struct.DebugConnectParameters)stLinkList.First().Clone();
var connectionResult = _cubeProgrammerApi.ConnectStLink(stLink);
- GeneralInfo:
var generalInfo = _cubeProgrammerApi.GetDeviceGeneralInf();
- Erase:
var massErase = _cubeProgrammerApi.MassErase("");
- Flash:
var downloadFile = _cubeProgrammerApi.DownloadFile(firmwarePath, "0x08000000", 1U, 1U);
- Run:
var execute = _cubeProgrammerApi.Execute("0x08000000");
License
The project is under Microsoft Reciprocal License (MS-RL)
Dependencies
List of technologies, frameworks and libraries used for implementation:
- KSociety.Wmi (WMI)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- KSociety.Wmi (>= 0.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.3.59 | 151 | 11/25/2024 |
0.3.50 | 206 | 10/22/2024 |
0.3.47 | 213 | 10/16/2024 |
0.3.32 | 378 | 8/20/2024 |
0.3.20 | 402 | 5/16/2024 |
0.3.9 | 452 | 3/20/2024 |
0.2.71 | 202 | 2/24/2024 |
0.2.59 | 176 | 2/13/2024 |
0.2.4 | 198 | 1/17/2024 |
0.1.70 | 196 | 1/8/2024 |
0.1.59 | 246 | 12/15/2023 |
0.1.49 | 243 | 11/29/2023 |
0.1.29 | 224 | 11/21/2023 |
0.1.13 | 178 | 11/5/2023 |
0.0.80 | 203 | 10/20/2023 |
0.0.43 | 166 | 10/12/2023 |
0.0.40 | 165 | 10/5/2023 |
0.0.38 | 180 | 10/5/2023 |
0.0.33 | 182 | 10/4/2023 |
0.0.27 | 192 | 10/3/2023 |
0.0.25 | 191 | 10/2/2023 |