stlink-org / stlink

Open source STM32 MCU programming toolset
BSD 3-Clause "New" or "Revised" License
4.32k stars 1.23k forks source link

[feature] Caching and diffing bin/hex #1366

Closed lefebvresam closed 2 weeks ago

lefebvresam commented 6 months ago

In most of the cases when you are programming you only change small pieces of code. It means that the bin/hex is changed only slightly based on the previous one. When you program the device, all blocks are programmed again. It means that even when you change a small string value, all 40 or 50 memory blocks are re-programmed again and you have to wait all the times for 40sec because the max programming speed is 4Mbps. Should it be possible to check which blocks have been changed based on the previous bin/hex and only program those which are different? It could speedup the development cycle a lot. It could be an option to provide --non-caching or something like that to reprogram the whole flash.

Nightwalker-87 commented 6 months ago

Likely a duplicate of #1238.

Nightwalker-87 commented 2 weeks ago

Addressed in #1397.