Giter Club home page Giter Club logo

stm32-linker-sections-generator's Introduction

STM32 Linker Sections Generator

This is a simple tool to generate linker-script sections.
It can be used for example for the Stm32 Cube IDE.
When defining the sections with this tool, it will also check, if you made any errors, so sections would overlap, or the sections do not fit in the memory.

Check out the Releases page for the compiled binaries, which can be executed on any windows machine.

This tool is written using C# in Visual Studio 2019 using .Net Framework and Windows Forms.

Why would you separate your flash memory or ram into multiple sections?

The most common usage would be, if you have a custom bootloader.
Bootloaders are usually placed at the beginning of the flash memory, and the app begins after that.

You could also have multiple applications in your flash and you decide at boot time, which one to execute.

Another usage would be to have some static data, like images and fonts for a display, stored in some section of the flash, which gets only programmed one single time and then never overridden by the application.

This could be done by hand, but then you have to calculate the correct offsets and length by yourself, which gets tedious when implementing a complicated configuration. Manually calulating these numbers could also lead to errors, which can be checked for by this program.

Examples using the tool

Example layout with an app and a bootloader

The Flash is configured to have 128KB of Memory, of which 16KB are occupied by the bootloader and 112KB by the Application.
app-with-bootloader

Error in the configuration

The app overlaps with the bootloader so the APP section is marked red in the Sections Tree Viewer.
app-with-bootloader-incorrect-configuration

stm32-linker-sections-generator's People

Contributors

nikfinn99 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.