GithubHelp home page GithubHelp logo

Comments (2)

akospasztor avatar akospasztor commented on July 19, 2024

Hi there,

In your bootloader project, you should set up the .ld file (or .sct if you're using Keil, or .icf if you're using IAR) so that it reflects only the bootloader image only and does not include the application image (or any other region that is not used by the bootloader). The bootloader and the application should know ideally "nothing" about the existence of each other. Specifically, the bootloader should not know anything about the application itself (except where to jump, which is the application starting address).

Within the application project, the only thing that you should adjust is the starting address of the application. This means you should configure your .ld file so that the starting address is the actual address (within your MCU flash) where your application starts. Additionally, either of the bootloader or the application itself should set the vector table location of the application so that the interrupts within your application would work. Please refer to the README (https://github.com/akospasztor/stm32-bootloader#how-to-use) for detailed description.

In conclusion, you should perform the followings:

  1. Configure the .ld file of the bootloader to reflect only the bootloader region in your flash (e.g. starting from 0x0800 0000 with a size of 0x8000).
  2. Configure the .ld file of your application so that it reflects your application region (e.g. starting from 0x0800 8000 with a size of e.g. 0x10000).
  3. For the update cache and your configuration region, you can reserve an empty region within your application's .ld file, but it is actually not necessary.

I hope this helps.

Best,
Akos

from stm32-bootloader.

stale avatar stale commented on July 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from stm32-bootloader.

Related Issues (20)

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.