Arduino Style Library for STM32F0x

An abstraction layer Library for extending StdPeriphLib for the STM32F0x MCU

Similar projects worth following
This is my hello world project with the STM32F0x which i got somewhere in the first week of june '16 and i have come a small way from there .
As soon as i started working with it ,and started to get to know the MCU i understood that there was a significant amount of repetition of code required to work with anything and that kind of code repetition was all across the company provided examples.
there was no generalization and functions that the beautiful and elegant arduino had and so i dug deep within it and started out on this journey to extend all the StdPeriphLib in an Arduino Style API which shall make using these Awesome MCU's a breeze just like with the Arduino

i started with the IAR embedded Workbench IDE and will stick to it for sometime and will focus on porting to other platforms/IDE's when the major peripherals are done.

##Contributors Welcome## since there is a lot that needs to be done, i humbly welcome contributors

  • Obviously the code is portable to your favorite IDE and you can set it up yourself, but in this project the repo works as a standalone plug and play with the IAR EW
  • It is still under development but major features like USART ,ADC, DAC, GPIOS ,PWM etc. are tested and work
  • I am working with the STM32F051x8 so the workspace is configured to that, you can change that in the project 'General options'

  • Added a lot of Examples

    Pranav Gulati08/06/2016 at 13:00 0 comments

    I've added examples for people to get started for different peripherals

    the examples are added in the example directory in the repo and example Group in the IDE

    to use each example one by one you have to follow these steps

    1. highlight the example that you want to use and right-click and go to options for the example.
    2. the options window on the TOP- LEFT corner has a checkbox "Exclude from build" Uncheck that and compile
    3. please make sure to not have more than one active example that is included in the build because that would make the project to have multiple declarations of ' main() '

  • Input Capture - reading a PWM

    Pranav Gulati08/03/2016 at 19:54 0 comments

    i'm currently working on the input Capture feature of the timer to getFrequency and getDuty of an input PWM wave its a WIP but the PWMout or analogWrite works!! so cheers !!

View all 2 project logs

  • 1
    Step 1

    Install the IAR Embedded workbench, free trials are enough but that choice is up to you (!?currentTab=free-trials)

  • 2
    Step 2

    Clone the repo from the github link at any location of your choice
    E.g ( %USER% /Documents/IAR Embedded Workbench/Arduino_STM32)

  • 3
    Step 3

    Open the the IAR embedded Workbench IDE and go to File->Open->Workspace , Now browse to the directory where you saved the repository that contains the following folders [ Arduino_STM32, Libraries ,Utilities ]

View all 6 instructions

Enjoy this project?



Mukesh Kumar wrote 03/07/2018 at 04:59 point

HI, Can you share the repository link. I could not find that in this project page.

  Are you sure? yes | no

Pranav Gulati wrote 03/27/2017 at 03:59 point

yes I know IAR have a lot of custom features, i am not considering porting it to support gcc at the moment only because i dont have the time to do so. Adding features to the existing build is relatively easier and less time consuming for me even though gcc has a wider outreach and community. I'm sorry :-(

  Are you sure? yes | no

Vojtech Vladyka wrote 03/26/2017 at 08:27 point

Hi, I would like to ask if you are planning to support gcc (respectively its arm branch) since IAR have their own compiler with some custom features. Thanks, Vojtech

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates