1/27/2024 0 Comments Stm32 st link driver windows 10The STM32_Programmer_CLI.exe won't even run without the QT5-DLLs and heaps of other stuff. Just install en.stm32cubeprg-win32_v2-7-0.zip, which includes all drivers and libraries. There is not much chance for a small, compact programming package. Behold the subtle changes in the commands since ST-Link CLI v3.6.0.0. Here are some differences between the V2 ST-LINK_CLI.exe and the new STM32_Programmer_CLI.exe. Their favorite hobby is rewriting interfaces for tools and libraries. You can get the same speedup with st-link v2 by simply writing a better flash loader. However none of this has anything to do with the st-link v3. Interrupts can preempt program execution so it is considered a different "thread". My bootloader uses a FIFO, and performs erase-program of pages on the main thread* while accepting of new data happens in an interrupt handler, so the two can happen almost simultaneously. The slowest part of flashing is erasing, so it's important that you can erase and accept new data at the same time. The inefficiency comes from the order that things are done, which is first ALL pages are erased and then all pages are programmed, as well as the fact that the mini-program ("flash loader") is written in assembly and extremely primitive so can not accept data while flashing is happening (there is just a single buffer that is written to and read from). The way st-link flashing works is first a mini-program is loaded into RAM and ran on the MCU, and this program performs the flashing while st-link transfers data one page at a time. I have a custom bootloader for the F303 that takes 4 seconds to flash the same binary that takes st-link 12 seconds. The st-link does flashing in an inefficient way and it's not hard to beat it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |