Skip to content

BSL430.NET.Console App

Jakub Parez edited this page Sep 19, 2019 · 25 revisions

BSL430.NET.Console App

BSL430.NET.Console is simple .NET console app wrapping BSL430.NET main public methods. It was created because lack of support on Linux platform, WPF GUI app is Windows only, therefore console app was also needed, for making BSL430.NET available also for Linux developers and open-source world. For more details please read docs here at wiki BSL430.NET Library or BSL430.NET.FirmwareTools Library. With few commands (and params) all main public methods of the main and aux package are exposed. Upload, Download, Erase and FwTools commands, described in table below.

Note: This app uses unmanaged libraries for communication, so bitness matters.

Compatibility

BSL430.NET.Console is built using .NET Core 3. Each architecture (x86, amd64) has its own build for Framework Dependent deployment (standard build, correct unmanaged libraries need to be put in correct place) and for Self Contained deployment (.NET Core is packed with app - /p:PublishSingleFile=true and /p:PublishTrimmed=true flags are set for trimming not needed assemblies and packing into single executable). These optimizations makes both apps having similar size, which is interesting.

  • Framework
    • .NET Core 3.0
      • Framework Dependent
      • Self Contained
  • OS
    • Windows 7, 8, 8.1, 10
      • x86
      • amd64
    • Linux
      • amd64

Commands

bla bla bla

Cmd Long Name Main Param Required Params Optional Params
-s scan [all/ftdi/libftdi/usb/serial] ftdi-ignore-unknown, usb-ignore-ti-vid
-u upload device name eg.: FTDI1 file, mcu, inv baud rate, pw, xml
-d download device name eg.: USB2 file, mcu, inv, pw, addrstart, datasize baud rate, xml, fwlinelen, output format
-e erase device name eg.: COM3
---- ------------ -----------------------------
-c convert
-n combine
-v validate
-r get-password
-k compare
---- ------------ -----------------------------
-g force-ascii

Params

blab lba bla..

Param Long Name Type Description
-f file string (path)
-j second-file string (path)
-p password hex string (16/20/32)
-a addrstart int
-z datasize int
-b baudrate enum (BaudRate)
-i invoke enum (InvokeMechanism)
-m mcu enum (MCU)
-l fill-ff bool
-x xml string (path)
-t usb-ignore-ti-vid bool
-w ftdi-ignore-unknow bool
-o output-format enum (FwFormat)
-y fw-line-length int

Examples

BSL430.NET

Scan Devices

Upload to MCU

Download from MCU

Erase MCU

BSL430.NET.FirmwareTools

Convert

Combine

Validate

Get BSL Password

Compare

Clone this wiki locally