FW_Ldr (FirmWare Loader) ver.0.0.0.0, 2020-FEB-26, (Windows comp.)

* Syntax: fw_ldr.exe <d=device> <v=velocity> <f=file> <isp> <L=1>

                       (the order is irrelevant)

  Where:

    device => The device to use for communications.

              Ex.: COM1, COM2, COM3, etc... if Windows;

                  /dev/ttyS0, /dev/ttyUSB0, etc... if Linux.

                  (Or simply put the device you are using)

              Default is COM1 for Windows, /dev/ttyUSB0 if Linux.

    velocity => The velocity for communications.

                Default is 38400 because that's the scale's default velocity.

                Windows: The specified value will be used, but it should be

                         one of these:

                         1200,2400,9600,19200,38400,57600,115200,230400.

                Linux: The specified value will be approximate to one

                       of the following:

                       1200,1800,2400,4800,9600,19200,38400,57600,

                       115200,230400.

    file => The BINARY file to write on scale's flash.

            The program calculates and writes the correct signature.

            Minimum file length is 300hex (768 decimal) bytes.

            Default file name is "p.bin".

    isp => If supplied, means the scale has no firmware, and the

           microcontroller is in "In System Programation",

           so the binary file will be wrotten by dialoging directly

           whith the microcontroller's "Boot Loader".

    L=1 => If supplied, activates the "verbose mode", useful for

           debugging. It is intended for "Laboratory", and is not

           recommended for normal use (l=2 doesn't wait for Intro)



Examples of usage:

    fw_ldr d=COM2 v=38400 f=FIRMW002.BIN          (Windows)

    ./fw_ldr d=/dev/ttyS1 f=FIRMW002.BIN v=38400  (Linux)



The program returns 0 if success; Value (errorcode) if error.





* End with return value 1:

  Finished because Help was shown (due to user request)

