Code Monkey home page Code Monkey logo

stm32f3discovery-meson-example's Introduction

STM32F3Discovery-meson-example

This is another STM32F3Discovery example Project.

It uses the STM32Cube-F3-meson repo which is optimised for the meson build system.

STM32Cube-f3-meson

Why another build system?

For myself: I hate using eclipse. And also I hate writing Makefiles. So I had to find another build system to program my precious microcontrollers.

I read about the mesonbuild system and though that could be an interesting solution.

Meson is an open source build system meant to be both extremely fast, and, even more importantly, as user friendly as possible.

Meson uses the so called ninja back-end.

Ninja is a small build system with a focus on speed. It differs from other build systems in two major respects: it is designed to have its input files generated by a higher-level build system, and it is designed to run builds as fast as possible.

Both are optimized for speed.

And also I can configure meson to use llvm. Which is also just a personal preference of mine. If I got the time I will also make this script workable with an arm-none-eabi-gcc compiler.

usage (short)

create the build folder, create the meson project and start compilation

  mkdir llvmbuild
  meson --cross-file=cross_file.build
  cd llvmbuild
  ninja

now connect your target and run openocd in a new terminal

  openocd -f interface/stlink-v2.cfg -f target/stm32f3x.cfg

goto your first terminal and start the gdb session

  arm-none-eabi-gdb -q llvmbuild/main.elf

Type the following command into the gdb console

  continue

enjoy!

Toolchain Installation

take a look here : Toochain.md

clone this repo

go to your destination folder and clone the repo in

  git clone https://github.com/hwengineer/STM32F3Discovery-meson-example.git
  cd STM32F3Discovery-meson-example
  git submodule update --init --recursive

And no use the commands above for compilation and testing.

Errata

  • blink frequency is way below what is to be expected. Maybe a configuration problem

License

Of course the STM32Cube Library is under its own license, all other stuff under my chosen MIT License

stm32f3discovery-meson-example's People

Contributors

hwengineer avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.