Git Product home page Git Product logo

stm32sprog's Introduction

= stm32sprog =

stm32sprog is an in-system programming (ISP) utility for STM32
microcontrollers.  It relies on the STM32's built-in bootloader.

All STM32 microcontrollers have a built-in bootloader that can be used for ISP.
To activate it, pull the BOOT0 and BOOT1 pins high and low respectively, and
perform a reset.  The bootloader supports connections to USART1 on all devices.
Some devices also support connections to USART2.  See ST application notes
AN2606 and AN3155 for details.

stm32sprog requires a serial connection to the target device's USART.  A simple
option is to use a USB-to-USART converter.  If the serial hardware supports
modem control signals, the DTR signal can be used to automatically reset the
target device.


                      ### Connection Diagram ###

             Host Serial                      Target STM32
                  ,,,,____                  ____,,,,
                          |                |
                          |                |
                       Tx |>--------------<| USART1 Rx
                          |                |
                       Rx |>--------------<| USART1 Tx
                          |                |
                          |                |
                          |   (optional)   |
                      DTR |>--------------<| NRST
                          |                |
                          |                |
                  ,,,,____|                |____,,,,

stm32sprog's People

Contributors

schult avatar

Watchers

James Cloos avatar

stm32sprog's Issues

Add support for Motorola S-record files.

Allow the user to specify an SREC format file with the `-w` argument.  The 
software should do its best to automatically detect files of this format.  It 
should also be possible to manually specify SREC or other formats.

Original issue reported on code.google.com by [email protected] on 8 Dec 2010 at 12:09

Improve IO error handling

Values returned by `read()` and `write()` are currently ignored.  This has not 
yet been a problem in practice, but it would be nice to do The Right Thing, and 
might prevent problems in untested scenarios.

Original issue reported on code.google.com by [email protected] on 6 Dec 2010 at 2:42

Add support for Intel HEX files.

Allow the user to specify an Intel HEX format file with the `-w` argument.  The 
software should do its best to automatically detect files of this format.  It 
should also be possible to manually specify Intel HEX or other formats.

Original issue reported on code.google.com by [email protected] on 8 Dec 2010 at 12:08

Extra ACK at beginning of first read operation

It looks like I'm forgetting to check for an ACK somewhere, so it's being left 
in the input buffer until the verify operation chokes on it.  I'm currently 
working around this by discarding a byte at the beginning of the first read.

Original issue reported on code.google.com by [email protected] on 7 Dec 2010 at 1:32

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.