Giter Site home page Giter Site logo

stm32-modbus-bootloader's Introduction

stm32-modbus-bootloader

Simple Modbus RTU bootloader for STM32F103 (blue pill).

The code is somewhat messy but good enough for POC.

Inspired by this series of articles by SLR:

Structure

  • stm32f103-bootloader -- bootloader
  • stm32f103-app -- example application (blink LED)

Protocol

You can use it with mbloader. There's an explanation of the protocol.

License

  • FreeMODBUS -- BSD-3-Clause
  • STM32 LL -- BSD-3-Clause
  • CMSIS -- Apache-2.0

Import

STM32CubeIDE -> File -> Import -> Existing Projects into Workspace -> Select root directory

How it works

  1. After reset, the MCU waits 5 seconds for the command to start programming. This is indicated by a rapidly blinking LED.
  2. If the MCU received the command, programming sequence will be executed.
  3. If the MCU didn't receive the command, it will jump to the app.

Usage

You can use it with the mbloader.

There's an example app. Check the linker file and the system_stm32f1xx.c file (USER_VECT_TAB_ADDRESS and VECT_TAB_OFFSET).

Bootloader occupies the first 16 KB of flash.

stm32-modbus-bootloader's People

Contributors

ilya-sotnikov 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.