QStlink2 icon indicating copy to clipboard operation
QStlink2 copied to clipboard

Upload fails with STLink2 firmware >= 2.28.18

Open FlYnN91 opened this issue 8 years ago • 14 comments

Hi,

I have found that the qstlink2 (v1.2.3) fails to upload binaries if the STLink2-1 version is 2.28.16. I've noticed that there is a closed ticket already and I did use the ppa to install the 1.2.3 but I believe the issue is still there. qstlink2 works fine (with the same binary file) if STLink2-1 version is 2.23.9. Also the STM32-Utility uploads the binary file with no problem if the STLink2-1 version is 2.28.16.

I was able to mitigate the issue by downgrading STLink2-1 to 2.23.9.

For future sake, I've attached my binary (blinky) for STM32F429ZI-Nucleo. Dummy_Blinky.zip

FlYnN91 avatar Dec 07 '16 09:12 FlYnN91

I'll run some tests, they probably changed the protocol somehow.

fpoussin avatar Jan 09 '17 01:01 fpoussin

I come to say the same, for version 2.28.18. An I made used the same 'solution' but with the version 2.27.15, and I saved a copy of this firmware on my github: https://github.com/jano2358/STM32Workout

jano2358 avatar Jan 09 '17 08:01 jano2358

Hi, After flashing an stm32f401-nucleo and stm32f469-disco (resp STLinkv2 and STLink v2-1) with qstlink2 (1.30) the mbed virtual drive functionality appears to be broken, in fact when a file is dragged to the drive, it is not flashed to the board.

The only way I found to restore arm mbed functionality is to flash a binary of choice with the stm32 utility for windows, that while flashing reports a read-protection activated.

f-izzo avatar Jan 14 '17 13:01 f-izzo

1.3.0 is not released yet. Retry with 1.2.3

fpoussin avatar Jan 15 '17 02:01 fpoussin

I moved 1.3.x code to the dev branch since people were assuming it's stable.

fpoussin avatar Jan 15 '17 03:01 fpoussin

Was able to test 2.28.18, seems like the main loader loop does no run.

fpoussin avatar Jan 16 '17 10:01 fpoussin

I can confirm that version 1.2.3 works with both stm32f401-nucleo(2.27.15) and stm32f469-disco(2.27.15). Thanks for moving the unstable code to a new branch, this way the AUR package in Arch Linux installs a working version. Also I found that STLINK firmware upgrade inside stm32 Utility says 2.27.15 is the latest version, while the standalone firmware update written in java says that 2.28.x is the latest.

f-izzo avatar Jan 17 '17 10:01 f-izzo

Still working on it, they might have deprecated some functions from the V1 API.

fpoussin avatar Jan 18 '17 18:01 fpoussin

@fpoussin I confirmed issue with ST-LINK/V2-1 version 2.28.17 on Nucleo64-F091RC. This issues was also found on the Mastering STM32 Forum (link) and provides a link to a downgraded version 2.24.11 of the the ST-LINK/V2-1 firmware (dropbox link).

Downgrading to ST-LINK/V2-1 2.24.11 on Nucleo64-F091RC fixed issue and allowed .bin uploads to Nucleo64-F091RC. It would be nice for others to share links to more recent versions of ST-LINK/V2-1 firmware that are proven to work, until a fix for the most recent firmware is completed, as ST doesn't provide links to older version of ST-LINK/V2-1 firmware on their website.

diond31 avatar Jun 27 '17 15:06 diond31

@jano2358 Thanks for providing (link) to downgraded ST-LINK/V2-1 firmware version 2.27.15. I confirmed that ST-LINK/V2-1 version 2.27.15 works on Nucleo64-F091RC and uploads without issue.

diond31 avatar Jun 27 '17 15:06 diond31

Thanks @diond31.

fpoussin avatar Jun 28 '17 01:06 fpoussin

Thanks @diond31. I was unable to flash an STM32f411 on Ubuntu virtual machine using STLink2-1 version 2.29, although there was not such issue on macOS. Now everything works alright on virtual environment using STLink2-1 2.24.11.

jorgemzz avatar Dec 24 '17 17:12 jorgemzz

Hi, I'm trying to upload a .bin file to my STM32F401 but i'm unable due the fact it stays at 0%. I'm using STLink2-1 2.24.11 and I alse tried to use the QStlink2 from the dev branch. It worked one time only, right after I've downgraded the STLink2-1 firmware to 2.24.11. But after that it returned to the same problem. STlink2-1 Firmware Version 2.24.11 Board: STM32F401RE Nucleo

wencelewski avatar Feb 02 '18 14:02 wencelewski

Hi, freind! I can't help solve this problem, it is better to ask for help to the original source (https://github.com/fpoussin/QStlink2) In my project, I implement the firmware download to Russian microcontrollers MDR32

Пятница, 2 февраля 2018, 23:08 +07:00 от Mauro Wencelewski [email protected]:

Hi, I'm trying to upload a .bin file to my STM32F401 but i'm unable due the fact it stays at 0%. I'm using STLink2-1 2.24.11 and I alse tried to use the QStlink2 from the dev branch. It worked one time only, right after I've downgraded the STLink2-1 firmware to 2.24.11. But after that it returned to the same problem. STlink2-1 Firmware Version 2.24.11 Board: STM32F401RE Nucleo — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .

-- Силиванов Денис

denisn73 avatar Feb 03 '18 10:02 denisn73