Git Product home page Git Product logo

stm32flash's People

Stargazers

 avatar  avatar Андрей avatar  avatar  avatar Jessy Diamond Exum avatar Juri Grabowski avatar

Watchers

James Cloos avatar Juri Grabowski avatar Oleg Artamonov avatar  avatar

stm32flash's Issues

stm32_init bug

The updated (and not consistently indented) code in stm32_init sends the autobaud 0x7F twice. The second gets misinterpreted as a command, throwing off the init sequence, and adding an unnecessary delay of the serial read timeout.
https://github.com/unwireddevices/stm32flash/blob/master/stm32.c#L420
Since the commands are sent in byte pairs, the bootloader receives the 2nd 0x7F as a start of a command pair, and stm32flash times out waiting for a response. When it times out, it sends another 0x7F, which results in a NAK response from the bootloader, and then stm32flash finally continues.

I've reverted to the version of stm32_init from the stm32duino fork, which fixes the bug.
https://github.com/nerdralph/stm32flash

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.