Code Docs

BloxOsLite (New Release!)

At-a-glance

Download the latest release (or older releases) here

Updates using MCUmgr

After flashing the firmware and using the device in the field, you will need to perform an update when we make new releases of BloxOsLite.

<aside> 🚨 You can ignore this step if you are already running the latest version.

</aside>

Requirements

Steps

  1. Download the binaries on the release page
    1. Unlike previously, you will only need the app_dfu.bin binary.
  2. Connect the USB-UART converter from your host machine to the UART connector on the BotBlox board.
    1. On UbiSwitch Baseboard, this is connector J18.
    2. On SwitchBlox Industrial, this is connector J8. Refer to the datasheet for exact connections to UART from extension header.
  3. Clone and build the MCUmgr client.
  4. Using mcumgr-client
    1. Power on the board. Notice the LED will turn on to indicate that the device is in firmware loader mode but only for a set amount of time. You will need to make sure that any MCUmgr commands you run occur when the board is in this mode.

    2. mcumgr-client -d /dev/ttyUSB0 list is useful for forcing the board to remain in serial recovery mode. You can use this command to view the current version installed too. Note that /dev/ttyUSB0 is the device name for the USB-UART converter, which may be different on your host machine. Below is a typical readout.

      mcumgr-client 0.0.4, Copyright © 2024 Vouch.io LLC
      
      00:06:54 [INFO] send image list request
      00:06:55 [INFO] response: {
        "images": [
          {
            "hash": [
             ...
            ],
            "slot": 0,
            "version": "0.1.0"
          }
        ]
      }
      
    3. mcumgr-client -d /dev/ttyUSB0 upload app_dfu.bin to actually upload the latest app_dfu.bin to the primary slot. Note that this will erase the previous version permanently so once you reset, you will be booted to the new version.

      mcumgr-client 0.0.4, Copyright © 2024 Vouch.io LLC
      
      00:07:53 [INFO] upload file: app_dfu.bin
      00:07:53 [INFO] flashing to slot 1
      00:07:53 [INFO] 65536 bytes to transfer
        [00:00:13] [==============================================================================] 64.00 KiB/64.00 KiB (0s)00:08:06 [INFO] upload took 13s
      
    4. mcumgr-client -d /dev/ttyUSB0 reset to trigger a reboot

  5. If you notice bugs or missing features, please report them as issues on the BotBlox forum. Note that the process to downgrade versions is the same as upgrade except that you can choose an older version

Table of Contents