User Manual
© 2017 Inertial Sense, LLC
19
11/30/2017
serial_port_t
serialPort = { 0 };
serialPortPlatformInit(&serialPort);
serialPortSetPort(&serialPort,
"COM4"
);
char
error[128];
enableBootloader(&serialPort, error,
sizeof
(error));
if
(error[0] !=
'\0'
)
{
printf(
"Error enabling boot loader: %s"
, error);
}
else if
(!bootloadFile(bootloadPath, &serialPort, error,
sizeof
(error),
&serialPort, bootloadUploadProgress, bootloadVerifyProgress))
{
printf(
"Bootload error: %s\n"
, error);
}
}
The firmware process takes a few seconds to fully initialize, so you may not see progress right away. In addition,
once the progress reaches 100% there may be some clean-up and final processing that will happen before the
verify step begins.
The SDK supports two file types, a .hex (Intel hex) file or a .bin (Inertial Sense firmware binary) file. The .bin file is
smaller and requires very little memory to upload to the device, so it is ideal for cases where storage and/or
memory is constrained.
5.4
C++ Binding
A higher level, C++ class is provided to simplify the process of communicating with the binary protocol, logging or
updating firmware. Please reference InertialSense.h /.cpp in the
InertialSenseSDK
for more details. The
InertialSenseCLTool is an example source code project that illustrates how to implement the
InertialSenseSDK
.