Navigation
External Links
Donate
Show your appreciation for OpenBLT
and support future development by
donating.
External Links
Donate
Show your appreciation for OpenBLT
and support future development by
donating.
This is an old revision of the document!
Serialboot is a commandline download utility for the OpenBLT bootloader that supports firmware update via the PC's serial port. It was written in C and supports both Linux and MS Windows.
Serialboot is fully functional and comes with full source code, yet it was developed primarily for demonstration and reference purposes. It is ideal:
The preconditions to using Serialboot are: (1) Your microcontroller system runs the OpenBLT bootloader configured for serial communication. This is typically the default configuration of the demo bootloaders (BOOT_COM_UART_ENABLE is set to 1 in file “blt_conf.h”). (2) Your microcontroller system is connected to your PC's serial port, or through a RS232-USB adapter that is more common nowadays.
When you call the Serialboot utility from the command prompt, it expects 3 command line options:
Example: SerialBoot -d/dev/ttyUSB0 -b57600 firmware.s19
A pre-built binary for MS Windows can be found in the .\Host\ directory of the OpenBLT package. It is quite easy to build to Serialboot program from source code, thanks to the CMake cross-platform and open-source build system. It is assumed that CMake is installed on your system. It can be downloaded for free from http://www.cmake.org/.
Using the terminal, set the working directory to ./Host/Source/SerialBoot/build. Next type the command “cmake ..”. This generates a GCC Makefile. To build the Serialboot, type “make”. Afterwards, the binary file called SerialBoot is available in the ./Host/Source/SerialBoot/build directory.