ba_start_update#

Install a firmware image on the connected device.

Function Signature#

function result = ba_start_update(firmware_path)

Usage#

result = ba_start_update(firmware_path)

Inputs#

firmware_path

path of the firmware image (.bin) for this device model.

Outputs#

result

struct returned by the native MEX session command.

Example#

ba_connect('BA HALO 001');
ba_start_update('firmware_HALO.bin');
ba_connect('BA HALO 001');

Notes#

Requires an active device connection and no running stream. Blocks MATLAB until the device has received the whole image and reported whether it accepts it (at most 10 seconds after the last packet); this takes several minutes and cannot be interrupted. On success the device installs the image and restarts, which ends the connection: call ba_connect again. A rejected image raises brainaccess:sdk:updateRejected and the device keeps its current firmware.

The device does not check that the image is meant for its model. Use only the image published for your device (for example firmware_MAXI.bin for a MAXI); a wrong image can leave the device unusable.

Source File#

matlab/ba_start_update.m