Giter VIP home page Giter VIP logo

Comments (2)

maz0r avatar maz0r commented on August 17, 2024

Unless I'm misinterpreting your comment it sounds like you are trying to flash klipper onto a board directly rather than using CANboot?

I haven't specifically documented a no bootloader flash as honestly CANboot has been relaible and much more convenient for me and others who have followed this guide (and you are the first to report this specifically being an issue, in several months since I wrote the steps for this board and the v.1.1 which shares the same MCU.)

The steps are written to be used together with the assumption that CANboot is in use.
So as the CANboot bootloader uses an 8KiB application offset. Flashing klipper without a bootloader offset would effectively overwrite CANboot or put the application start in the wrong place?

from klipper_canbus.

DumpsterDave avatar DumpsterDave commented on August 17, 2024

I think you're right. I think what's happening is that STM32 always starts writing at address 0x08000000 which is the start of the flash space. When writing using flash_can to write klipper, it seems to start at the flash address + application offset and does not erase the blocks before that (CanBoot). When you compile klipper without the bootloader offset and flash with STM32, the entry point sits at 0x08000000 and loads since that's the start of the flash. When you compile klipper with the bootloader offset and flash with STM32, it still places the file at 0x08000000, but the entry point is not there so it doesn't load.

from klipper_canbus.

Related Issues (19)

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.