Project logo

STMHelperLibs


Helper Libraries for STM32

These libraries can make it easier for you to work with peripherals on STM32 microcontrollers. The names of functions and methods are the same as in arduino libraries, so you can easily implement libraries designed for arduino. These libraries cannot be used when STM32 HAL libraries are not included. All included libraries use c++ language.

Included libraries

  • Basic arduino functions libary (wirish.h)
  • Hardware Timer
  • Hardware Serial
  • Hardware SPI
  • Hardware CRC

External included libraries

  • RadioHead - Packet Radio library for embedded microprocessors (Mike McCauley, modified for STM32 by Matej Fitoš)
  • nRF24 - NRF24L01 radio module library (J. Coliz, modified for STM32 by Matej Fitoš)
  • GPS - library for NEO-6M controll (PowerBroker2, modified for STM32 by Patrik Cepko)
  • SerialConsole - library for serial console support (Matej Fitoš)

Supported MCU's:

  • STM32F030x6
  • STM32F070x6
  • STM32F070xB
  • STM32F031x6
  • STM32F103xB
  • STM32L031xx
  • STM32L432xx

Integrate with STM32 project

  1. Download or clone this library.
  2. Open/create project in STM32CubeIDE.
  3. Right click to project > Convert to C++.
  4. Right click to project > New > Folder > Advanced and check radio button "Link to alternate location (Linked folder)", then click to Browse and select, where is your downloaded library located. Note that Variables can be used.
  5. Right click to project > Properties > C/C++ General > Paths and symbols > Source Location. Click to "Add Folder..." button and select STMHelperLibs, then click OK.
  6. Right click to project > Properties > C/C++ General > Paths and symbols > Includes. Click to Add button (check "Is a workspace path") and add those paths to GNU C and GNU C++ tab: /${ProjName}/STMHelperLibs/Helpers/RadioHead/Inc /${ProjName}/STMHelperLibs/Helpers/nRF24/Inc /${ProjName}/STMHelperLibs/STM32apl/Drivers/Inc /${ProjName}/STMHelperLibs/STM32apl/Streams/Inc /${ProjName}/STMHelperLibs/Helpers/SerialConsole/Inc /${ProjName}/STMHelperLibs/Helpers/GPS/Inc
  7. Right click to project > Properties > C/C++ General > Paths and symbols > Symbols. Click to Add button and add this symbol to GNU C and GNU C++ tab: STM32 Also check, if there is MCU type in symbols. For example STM32L432kc type is STM32L432xx.
  8. STM helper library can be used.

Authors and Contributors

  • Matej Fitoš
  • Patrik Cepko
  • doc. Ing. Juraj Ďuďák, PhD.

MIT License

Copyright (c) 2021 Matej Fitoš, Patrik Cepko, doc. Ing. Juraj Ďuďák, PhD.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contributors 2

Juraj Ďuďák

Matej Fitoš


Links

Languages

  • C++ 92.78%
  • C 7.21%
  • Batchfile 0%

  • Last update

    11.10.2021 20:26:27

    Created at

    23.05.2021