Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

jgonzalezdr/FirmwareFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

FirmwareFile

About

FirmwareFile is a .NET library written in C# to load and access firmware files easily.

Supported firmware file formats:

  • Binary (.bin)
  • Intel HEX (.hex)
  • Motorola S-Record (.srec, .s19, .s28, .s37)

Usage

Use the Load/LoadAsync methods of the firmware file loader classes to load and create a Firmware instance.

Access the firmware memory blocks (FirmwareBlock) though the Blocks property of the Firmware instance.

Firmware File Loader Classes

  • BinaryFileLoader
  • IntelFileLoader
  • MotorolaFileLoader

Example

using FirmwareFile;
using System;
public class Example
{
 void PrintFirmwareFileInfo( string filepath )
 {
 try
 {
 var firmware = IntelFileLoader.Load( filepath );
 foreach( var fwBlock in firmware.Blocks )
 {
 Console.WriteLine( $"Memory block: Address=0x{fwBlock.StartAddress:X8} Size=0x{fwBlock.Size:X}" );
 }
 }
 catch( Exception e )
 {
 Console.WriteLine( $"ERROR: {e.Message}" );
 }
 }
}

About

.NET library written in C# to load and access firmware files easily

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /