GithubHelp home page GithubHelp logo

Comments (3)

jakeammons avatar jakeammons commented on July 19, 2024

Why do you have to reset these struct members? I have not seen this in other bootloaders, but it works for me.

from stm32-bootloader.

akospasztor avatar akospasztor commented on July 19, 2024

Because it's really important to reset every peripheral and their registers to their initial, reset-state. After the jump, the application firmware itself has no knowledge (and should not have) whether it was launched from a bootloader. It assumes it was launched after power-up or reset, thus it expects every peripheral to be in reset state.

As an example referring to your question: when you don't reset the systick registers, thus you don't stop the systick operation, it can cause some nasty issues when there is a tick interrupt just after the moment of jump. Another issue would be when for example the application firmware does not use systick at all, therefore there is no interrupt handler defined for it but the interrupt is coming - since it hasn't been disabled before the jump.

from stm32-bootloader.

jakeammons avatar jakeammons commented on July 19, 2024

That all makes sense. Thanks so much for the help!

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.