florisla / stm32loader

Flash firmware to STM32 microcontrollers using Python.
GNU General Public License v3.0
109 stars 53 forks source link

Retry failed transfers #14

Closed florisla closed 4 years ago

florisla commented 5 years ago

With low-quality UART adapters or connections, a failed read or write is not uncommon. This manifests itself as NACK instead of ACK, or as a checksum mismatch.

It would be nice to automatically retry failed transfers, for a configurable number of retries.

florisla commented 5 years ago

Turns out my communication errors were power-related, so this is not as relevant anymore.

With decent power I have reliable communication even at 115200 baud, a frighteningly cheap UART adapter and a cable setup fit for Reddit /r/techsupportgore/ .

florisla commented 4 years ago

Not implementing this for now.