GlobLib
HAL and API libraries for MCUs and hardware.
|
This library contains low level modules designed to interface with STM32F103 perihperals. These modules are designed to be compatible with other low level common libraries and microcontroller modules as demonstrated on the mainpage.
There are two options for flashing binaries onto the target MCU, using a USB bootloader or with the ST-LinkV2 programmer. A template for each options is location in the template directories. Note that the bootloader has to be flashed to the MCU at least one with the ST-LinkV2 programmer before it can be used.
Development has been tested on Ubuntu 16.04LTS and 18.04LTS.
The GNU arm embedded tool chain https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads is used to develop this library. It can be installed with
Installation can be checked with
Which should print something like this (or newer)
Open OCD http://openocd.org/ is used to flash binaries to the target and debug.
To install:
Check the installation with
Which should print
STLINK V2 http://www.st.com/en/development-tools/st-link-v2.html provides a hardware interface between the PC and MCU.
To use STLINK V2, the following needs to be done:
Make a new file
Add the following:
Reload the rules
Plug in the programmer (STLINK) and ensure it is working by using
The list should include
A DFU (device firmware update) programmer is used to communicate with the USB bootloader on the device.
dfu-util http://dfu-util.sourceforge.net/ can be installed with:
Udev should be configured to change file permissions for STM devices in DFU mode. Create a new file with
Add the following
Reload the rules:
The user needs to be a member of group "dialout" to access the tty ports. This can be done with
This assumes a complete copy of glob_lib is available locally.
There are two project templates located in the templates directory. Each of these templates contain instructions specific for their usage.