DiagnosticTool.Utilities.FlashHexConversion
1.0.0-beta.1
Suggested Alternatives
This is a prerelease version of DiagnosticTool.Utilities.FlashHexConversion.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package DiagnosticTool.Utilities.FlashHexConversion --version 1.0.0-beta.1
NuGet\Install-Package DiagnosticTool.Utilities.FlashHexConversion -Version 1.0.0-beta.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DiagnosticTool.Utilities.FlashHexConversion" Version="1.0.0-beta.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DiagnosticTool.Utilities.FlashHexConversion" Version="1.0.0-beta.1" />
<PackageReference Include="DiagnosticTool.Utilities.FlashHexConversion" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DiagnosticTool.Utilities.FlashHexConversion --version 1.0.0-beta.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DiagnosticTool.Utilities.FlashHexConversion, 1.0.0-beta.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DiagnosticTool.Utilities.FlashHexConversion@1.0.0-beta.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DiagnosticTool.Utilities.FlashHexConversion&version=1.0.0-beta.1&prerelease
#tool nuget:?package=DiagnosticTool.Utilities.FlashHexConversion&version=1.0.0-beta.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HEX 刷写文件转换方法库
高性能解析 .hex、.s19、.s28、.s37 格式的文件,解析后能够通过地址随机获取数据,或通过地址范围获取数据片段,辅助实现刷写流程。
用法示例
创建 FlashDocument 实例
解析文件的数据,将数据合并为数个 FlashBlock 对象保存。
参数:
- filePath: 文件完整路径。支持 .hex、.s19、.s28、.s37。
- dataSize: 每个地址对应的字节数。默认为 1。
- checkValid: 合法性校验,包括 CheckSum 等。默认为 true,当识别到不合法的数据时抛出异常。
var flashDoc = FlashDocument.ParseFlashDocument(filePath, dataSize, checkValid);
获取 FlashPage
每个 FlashPage 包含数据的起始地址和连续的数据。
参数:
- addressCount: 每页容纳的地址数量。
- startAddress: 填充数据的起始地址。
- endAddress: 填充数据的终止地址。
var pages = flashDoc.FillFlashPages(addressCount, startAddress, endAddress).ToArray();
过滤 FlashPage
按照过滤逻辑进行过滤,使用过滤后的 pages 进行刷写。
参数:
- skipLeadingBlank: 跳过首个具有有效数据的 Page 之前的 Pages
- skipMiddleBlank: 跳过具有有效数据的 Page 之间的 Pages
- skipTrailingBlank: 跳过最后具有有效数据的 Page 之后的 Pages
var filter = FlashDocument.FlashPagesFilter(pages, true, true, true).ToArray();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
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 |
|---|