Giter Club home page Giter Club logo

stm32f103_opencm3_hello-world's Introduction

STM32F103 libopencm3 hello world

Basic example of libopencm3 on a STM32F103 "blue pill" board.

Main repository

Requirements

  • ARM toolchain (Debian/Ubuntu: sudo apt install gcc-arm-none-eabi)
  • ARM GDB (Debian/Ubuntu: sudo apt install gdb-multiarch)
  • OpenOCD (Debian/Ubuntu: sudo apt install openocd)
  • Python (for libopencm3)

Usage

Build and flash

  1. Build: make
    • Build with alternate toolchain: make TARGET_PREFIX=arm-something-else-
  2. Flash: make flash
    • Flash with alternate programmer: make OPENOCD_INTERFACE=interface/ftdi/dp_busblaster.cfg flash

Debugging

  1. Start OpenOCD debug server: make run-debug-server
  2. Connect GDB in TUI mode: make run-debug-client
    • Use alternate GDB: make TARGET_GDB=some-other-gdb run-debug-client

Licenses

libopencm3 is licensed under LGPL v3.

All other code is licensed under CC0.

stm32f103_opencm3_hello-world's People

Stargazers

 avatar

Watchers

 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.