BLDFUSettings class

Generate settings file from the provided data

 String settingsFile = BLDFUSettings().generate(
  arch, ///Arch types are 'NRF51','NRF52','NRF52QFAB','NRF52810',or 'NRF52840'
  appFile, //App file 
  appVersion, //application version 
  blVersion, //bootloader version 
  blSettVersion, // Settings version 1 or 2
  customBootSettAddr, // Start settings at this address
  noBackup, // Create a backup at this address 
  backupAddress, //Place the backup at this address
  appValType, //ValidationType.NO_VALIDATION 
  sdValType, //ValidationType.NO_VALIDATION, 
  sdFile, //softdevice file
  signer //Signed whith this
);

Constructors

BLDFUSettings()

Properties

appCrc int
getter/setter pair
appSize int
getter/setter pair
appValType int
getter/setter pair
appVersion int
getter/setter pair
arch NRFArch
getter/setter pair
archStr String
getter/setter pair
bankCode int
getter/setter pair
bankCurrent int
getter/setter pair
bankLayout int
getter/setter pair
blSett51Addr int
final
blSett52810Address int
final
blSett52840Address int
final
blSett52Addr int
final
blSett52QfabAddress int
final
blSettAddr int
getter/setter pair
blSettBackupOffset int
final
blSettVersion int
getter/setter pair
blVersion int
getter/setter pair
bootValidationCrc int
getter/setter pair
crc int
getter/setter pair
flashPage51Sz int
final
flashPage52Sz int
final
flashPageSize int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hexFile String
getter/setter pair
ihex IntelHex
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdSize int
getter/setter pair
sdValType int
getter/setter pair
tempDir String?
getter/setter pair

Methods

calculateCRC32FromHex(IntelHex ihObject, [int? startAddr, int? endAddr]) int
Calculate CRC32 int from hex file
fromHexFile(String stringFile, [NRFArch? arch]) → void
Find the correct Arch for the provided settings file
generate({String arch = 'NRF52', String? appFile, int? appVersion, int blVersion = 0, int blSettVersion = 0, int? customBootSettAddr, bool noBackup = true, int? backupAddress, ValidationType appValType = ValidationType.noValidation, ValidationType sdValType = ValidationType.noValidation, String? sdFile, Signing? signer}) String
Generate settings file from the provided data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
probeSettings(int base) → void
Get settings from the provided file. This is used to check if the generated data was correct.
setArch(String arch) → void
Set the architexture for this application and softdevice
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited